/* ======================================================
   ZMIENNE
====================================================== */
:root {
  --font-main: "Inter", sans-serif;
  --font-display: "Anton", sans-serif;

  --yellow: #f5cf0a;
  --black: #000;
  --dark: #1a1a1a;
  --line: #e0e0e0;
  --white: #fff;
}

/* ======================================================
   RESET
====================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

/* ======================================================
   HEADER + NAWIGACJA
====================================================== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header__content {
  min-height: 90px;
  display: flex;
  align-items: center;
}

.header__logo { margin-right: 2.5rem; }

.header__logo img {
  height: 56px;
  display: block;
}

.header__nav { margin-left: auto; }

.header__list {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__list-item--link {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
  white-space: nowrap;
}

.header__list-item--link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  transition: width .2s ease;
}

.header__list-item--link:hover::after,
.header__list-item--link.active::after {
  width: 100%;
}

/* WYJĄTEK: dropdown – BEZ kreski */
.nav-dropdown__menu .header__list-item--link::after { display: none; }

/* ======================================================
   DROPDOWN
====================================================== */
.nav-dropdown { position: relative; }

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: .6rem 0;
  min-width: 220px;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown__menu { display: block; }

.nav-dropdown__menu .header__list-item--link {
  display: block;
  padding: .6rem 1.2rem;
  font-size: .7rem;
  font-weight: 400;
  white-space: nowrap;
}

/* hover / active – TYLKO pogrubienie, BEZ kreski */
.nav-dropdown__menu .header__list-item--link:hover,
.nav-dropdown__menu .header__list-item--link.active {
  font-weight: 700;
}

/* ======================================================
   HERO
====================================================== */
.hero__slider-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

/* ======================================================
   ŻÓŁTY PASEK
====================================================== */
.hero__links { background: var(--yellow); }

.hero__links-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  height: 75px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-main);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}

.hero__link img {
  width: 42px;
  flex-shrink: 0;
}

/* ======================================================
   NAGŁÓWEK STRONY
====================================================== */
.hero__heading {
  background: #ededed;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__heading h1 {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0;
}

/* ======================================================
   NEWSY – SEKCJA
====================================================== */
.news { padding: 2.2rem 0 0.5rem; }

.news__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ======================================================
   NEWSY – DESKTOP (OPŁYWANIE TEKSTU)
====================================================== */
.news-item {
  display: block;
  margin-bottom: 2.8rem;
}

.news-item__image { margin: 0; }

.news-item--image-left .news-item__image {
  float: left;
  margin: 0 3rem 1.4rem 0;
}

.news-item--image-right .news-item__image {
  float: right;
  margin: 0 0 1.4rem 3rem;
}

.news-item::after {
  content: "";
  display: block;
  clear: both;
}

/* ZDJĘCIE Z KOŁEM */
.news-item__image img {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 8px solid var(--yellow);
  object-fit: cover;
  display: block;
}

/* ZDJĘCIE PROSTE (BEZ KOŁA) */
.news-item__image.news-item__image-brak img {
  width: 360px;
  height: 360px;
  border-radius: 0;
  border: 8px solid var(--yellow);
  object-fit: cover;
  display: block;
}

/* ======================================================
   NEWSY – TEKSTY
====================================================== */
.news-item__date {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.6rem;
  display: block;
}

.news-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  color: var(--black);
}

.news-item__content p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
  color: #222;
}

/* ======================================================
   NEWS – AKCJE
====================================================== */
.news__actions {
  margin-top: 1.8rem;
  margin-bottom: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.news__button {
  align-self: flex-start;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  background: transparent;
  border: 2px solid var(--yellow);
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
}

.news__button:hover {
  background: var(--yellow);
  color: var(--black);
}

.news-signup {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--black);
}

.news-signup__link {
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.news-signup__link:hover { background: var(--yellow); }

/* ================================
   LISTY – BIOGRAFIA (ŻÓŁTE KROPKI)
================================ */
.news-item__content ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.news-item__content ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.news-item__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: #f2c300;
  border-radius: 50%;
}

/* ======================================================
   KONTAKT
====================================================== */
.contact {
  background: #0b0b0b;
  color: #ffffff;
  padding: 4rem 0;
  border-top: 4px solid var(--yellow);
}

.contact__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4.5rem;
  row-gap: 0.4rem;
}

.contact__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
}

.contact__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--yellow);
  margin-top: 0.8rem;
}

.contact__info {
  max-width: 520px;
}

.contact__info p {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d0d0d0;
}

.contact__info a {
  color: var(--yellow);
  text-decoration: none;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #333;
  color: #ffffff;
  padding: 0.9rem 1rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-main);
}

.contact__rodo {
  grid-column: 1 / -1;
  margin-top: 2.0rem;
  padding: 0 1.5rem;
  text-align: left;
}

.rodo-checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 0.8rem;
  align-items: start;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #d0d0d0;
}

.rodo-checkbox input {
  margin-top: 0.25rem;
  accent-color: var(--yellow);
}

.contact__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

.contact__actions button {
  background: var(--yellow);
  color: #000;
  border: none;
  padding: 1rem 3rem;
  border-radius: 40px;
  font-family: var(--font-main);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ======================================================
   GRID PRODUKTÓW – CEGIEŁKI
====================================================== */
.projects {
  padding: 1.5rem 0 3rem;
  background: #fffdf4;
}

.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.project-card {
  background: #ffffff;
  border: 1.5px solid #f2c200;
  border-radius: 14px;
  padding: 1.4rem 1.3rem 1.6rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.07);
}

.project-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  margin: 0.5rem 0 1rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  background: #ffe48a;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.2rem 0 0.3rem;
}

.project-card .muted {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.4rem;
}

.project-btn {
  display: block;
  margin-top: 0.9rem;
  padding: 0.65rem 1rem;
  background: #ffd800;
  color: #111;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}

/* ======================================================
   GALERIA – SKWER
====================================================== */
.gallery {
  padding: 10px 0 20px;
  background: #ffffff;
}

.gallery__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  line-height: 0;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ======================================================
   STOPKA
====================================================== */
footer {
  background: #111;
  color: #fff;
  padding: 1.3rem;
  text-align: center;
  font-size: .85rem;
}

footer * { color: #fff; }
footer .footer-nav { margin-bottom: 1.8rem; }

/* ======================================================
   TABLET + TELEFON — 1:1 JAK DESKTOP (NAPRAWA OSTATECZNA)
====================================================== */
@media (max-width: 900px) {

  body {
    min-width: 1200px;
    overflow-x: auto;
  }

  /* ===== NAWIGACJA ===== */
  .header__content { flex-wrap: nowrap; }
  .header__nav { width: auto; overflow: visible; }
  .header__list {
    flex-wrap: nowrap;
    justify-content: flex-end;
    white-space: nowrap;
    gap: 1.1rem;
  }

  .nav-dropdown:hover .nav-dropdown__menu { display: none; }
  .nav-dropdown:focus-within .nav-dropdown__menu { display: block; }

  /* ===== SLIDER ===== */
  .hero__slider-image img {
    width: 1200px;
    max-width: none;
  }

  /* ===== ŻÓŁTY PASEK ===== */
  .hero__links { min-width: 1200px; }
  .hero__links-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
  }

  /* ===== NEWSY ===== */
  .news__wrapper { max-width: 1200px; }

  .news-item { display: block; }
  .news-item--image-left .news-item__image {
    float: left;
    margin: 0 3rem 1.4rem 0;
  }
  .news-item--image-right .news-item__image {
    float: right;
    margin: 0 0 1.4rem 3rem;
  }

  /* ===== GALERIA ===== */
  .gallery__wrapper { max-width: 1200px; }
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* ===== PRODUKTY ===== */
  .projects-grid {
    max-width: 1200px;
    grid-template-columns: repeat(3, 1fr);
  }

  /* ===== KONTAKT ===== */
  .contact {
    /* ⬅️ USUNIĘTE min-width */
    width: 100%;
  }

  .contact__wrapper {
    max-width: 1200px;
    margin: 0 auto;              /* ⬅️ TO JEST KLUCZ */
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4.5rem;
    padding: 0 1.5rem;
  }
}

/* ======================================================
   DESKTOP — KONTAKT (JAK BYŁ WCZEŚNIEJ)
====================================================== */
@media (min-width: 901px) {

  .contact {
    width: 100%;
  }

  .contact__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4.5rem;
  }
}
/* === FIX: TEKST NAD KONTAKTEM WRACA DO ŚRODKA (DESKTOP) === */
.contact > *:not(.contact__wrapper) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
