:root {
  --orange: #ff6a00;
  --black: #0a0a0a;
  --light: #ffffff;
  --muted: #f6f6f6;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Open Sans", sans-serif;
  color: #1f1f1f;
  background: #fff;
  scroll-behavior: smooth;
}
@media(max-width: 768px) {
  section {
    scroll-margin-top: 80px; /* więcej miejsca dla mobile */
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* NAVIGATION */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: var(--light);
  border-bottom: 3px solid var(--orange);
}

.nav .wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo-top {
  display: flex;
  flex-wrap: wrap; 
  gap: 8px;
  align-items: center; /* wyrównanie w pionie */
}

.logo .mark {
  display: inline-flex; /* Tło obejmuje tylko tekst */
  background: var(--orange);
  color: var(--black);
  padding: 6px 10px;
  border-radius: 8px;

    font-weight: 800;
  font-size: 18px;
  white-space: nowrap;

}

.logo .slogan {
  font-size: 14px;
  color: var(--light);
  margin-top: 4px;
}

/* Responsywność na małe ekrany */
@media(max-width: 480px) {
  .logo-top {
    flex-direction: column; /* KRÓLIKOWSKI i Elektronarzędzia jeden pod drugim */
    gap: 4px;
    align-items: center;
  }

  .logo .mark {
    font-size: 16px;
    padding: 4px 8px;
	font-weight: 800;
  }

  .logo .slogan {
    text-align: center;
  }
}

.menu {
  display: flex;
  gap: 10px;
}

.menu a {
  padding: 8px 12px;
  border-radius: 10px;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;   /* usuwa domyślne tło */
  border: none;       /* usuwa domyślną ramkę */
  padding: 0;         /* usuwa padding */
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--light);
  border-radius: 2px;
}

.hamburger:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media(max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--black);
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--orange);
  }
  .menu.show {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* HERO */
.hero {
  background: var(--black);
  color: var(--light);
  padding: 64px 20px;
}

.hero .wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
}

@media(max-width: 768px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: 44px;
  margin: 0 0 12px;
  line-height: 1.2;
}

.tag a {
  display: inline-block;
  margin: 4px 8px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
  transition: background 0.3s ease;
}

.tag a {
  background: linear-gradient(to right, #ff6a00 50%, #ff8533 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  transition: background-position 0.4s ease-out;
}

.tag a:hover {
  background-position: right bottom;
}
.cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 2px solid var(--orange);
  text-decoration: none;
}

.btn.primary {
  background: var(--orange);
  color: var(--black);
}

.btn.secondary {
  background: transparent;
  color: var(--orange);
}

/* SLIDER */
.slider {
  flex: 1 1 300px;
  max-width: 400px;
  max-height: 350px;
  overflow: hidden;
  border-radius: 16px;
}

.slides {
  display: flex;
  width: 100%;
  animation: slide 18s infinite ease-in-out;
}

.slides img {
  width: 100%;
  object-fit: cover;
  border-left: 4px solid #0a0a0a;
}

@keyframes slide {
  0%   { transform: translateX(0%); }
  25%  { transform: translateX(-100%); }
  50%  { transform: translateX(-200%); }
  75%  { transform: translateX(-300%); }
  100% { transform: translateX(0%); }
}

/* SECTIONS */
section {
  padding: 56px 20px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-size: 32px;
  margin: 0 0 16px;
}

.lead {
  color: #a7a7a7;
  max-width: 850px;
}

/* GRID */
.grid {
  display: grid;
  gap: 16px;
}

@media(min-width: 800px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 799px) {
  .grid.cols-3,
  .grid.cols-2 { grid-template-columns: 1fr; }
}

.tile {
  background: var(--muted);
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 18px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease-out;
}

.tile.show {
  opacity: 1;
  transform: translateY(0);
}

.tile:nth-child(1) { transition-delay: 0.1s; }
.tile:nth-child(2) { transition-delay: 0.2s; }
.tile:nth-child(3) { transition-delay: 0.3s; }

.tile h3 { margin: 0 0 8px; }

.tile2 {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease-out;
}

.tile2.show {
  opacity: 1;
  transform: translateY(0);
}

.tile2:nth-child(1) { transition-delay: 0.1s; }
.tile2:nth-child(2) { transition-delay: 0.2s; }
.tile2:nth-child(3) { transition-delay: 0.3s; }

.tile2 h3 { margin: 0 0 8px; }

.dot {
  color: var(--orange);
  font-weight: 900;
}

/* CONTACT */
.contact {
  background: var(--black);
  color: var(--light);
}

.contact .card {
  display: grid;
  gap: 16px;
}

.contact a.link {
  color: var(--orange);
  font-weight: 700;
}

/* IFRAME */
iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 16px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease-out;
}

iframe.show {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
footer {
  background: var(--black);
  color: #cfcfcf;
  border-top: 3px solid var(--orange);
  padding: 18px 20px;
  font-size: 14px;
}

footer .wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.site a {
  color: var(--orange);
  font-weight: 800;
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  border: 12px solid #333;
  border-top: 12px solid var(--orange);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.sprzedaz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
  align-items: start;
}

.sprzedaz-grid img {
  width: 100%;    /* wypełnia kolumnę */
  height: auto;   /* zachowuje proporcje, nie przycina */
  border-radius: 8px;
  transition: transform 0.3s;
}

.sprzedaz-grid img:hover {
  transform: scale(1.03); /* lekki efekt powiększenia */
}
.serwis-wrap {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap; /* dla mobile */
}

.serwis-text {
  flex: 1 1 400px;
}

.serwis-image {
  flex: 0 0 300px;
}

.serwis-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.serwis-kontakt p {
  margin: 6px 0;
  font-weight: 600;
}

.serwis-kontakt a.link {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.serwis-kontakt a.link:hover {
  text-decoration: underline;
}

/* responsywność */
@media(max-width: 768px) {
  .serwis-wrap {
    flex-direction: column;
  }

  .serwis-image {
    flex: 1 1 100%;
  }
}
.wypozyczalnia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.wypozyczalnia-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.wypozyczalnia-img {
  width: 100%;
  height: 200px; /* stała wysokość dla wszystkich zdjęć */
  border-radius: 8px;
  object-fit: cover; /* zdjęcie wypełnia ramkę, zachowując proporcje */
  margin-bottom: 12px;
}

.wypozyczalnia-item h3 {
  font-size: 1.2rem;
  margin-top: 0;
  font-weight: 600;
}

.wypozyczalnia-item p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
  flex-grow: 1;
}

/* responsywność */
@media(max-width: 768px) {
  .wypozyczalnia-grid {
    grid-template-columns: 1fr;
  }

  .wypozyczalnia-img {
    height: 220px; /* lekko większe na mobile dla lepszego wrażenia */
  }
}