/*
* Hero section
*/

.hero {
  display: grid;
  grid-template-columns: 52% 48%;
  height: 520px;
  position: relative;
}

/* LEWA – ciemna */
.hero-left {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3.5rem 2.5rem 5vw;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-left h1 {
  opacity: 0;
  animation: fadeUp 0.6s ease 0.25s forwards;
}

.hero-sub {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 360px;
  margin-bottom: 32px;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}

.hero-btn {
  opacity: 0;
  animation: fadeUp 0.6s ease 0.55s forwards;
  margin-bottom: 36px;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-values {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.7s forwards;
}

.hero-value {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-value:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.hero-value-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  flex-shrink: 0;
}

.hero-value span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-900);
}

/* PRAWA – zdjęcie */
.hero-right {
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.3s forwards;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* overlay gradient na zdjęcie od lewej */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 26, 26, 0.25) 0%, transparent 35%);
  z-index: 1;
  pointer-events: none;
}

.hero-left .section-label {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.3s forwards;
}

/*
 * About section
 */
.about-section__wrapper {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  min-height: 560px;
  position: relative;
}

/* subtelna siatka całej sekcji */
.about-section__wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════
     LEWA – statystyki
  ══════════════════ */
.about-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 2.5rem 3.5rem 0;
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: var(--white);
}

.stat-row {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.stat-row:first-child {
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--dark);
  margin-bottom: 0.375rem;
}

.stat-num span.highlight {
  font-family: inherit;
  font-size: 1.75rem;
  color: var(--red);
}

.stat-label {
  font-size: 0.813rem;
  color: var(--text);
  font-weight: 500;
}

/* ══════════════════
     ŚRODEK – zdjęcie
  ══════════════════ */
.about-photo {
  position: relative;
  overflow: hidden;
  z-index: 1;
  max-height: 620px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.about-photo:hover img {
  transform: scale(1.03);
}

/* czerwona ramka akcentująca */
.about-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

/* ══════════════════
     PRAWA – tekst
  ══════════════════ */
.about-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0 3.5rem 3.5rem;
  border-left: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: var(--white);
}


.about-desc {
  font-size: 0.938rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/*
  * * Mini services section
  */
.services-section {
  position: relative;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2.25rem 2.75rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.25s;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.35s ease;
}

.card:hover {
  background: var(--light);
}

.card:hover::after {
  width: 100%;
}

/* aktywna / wyróżniona karta */
.card.active {
  background: var(--dark);
}

.card.active:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.card.active::after {
  width: 100%;
}

.card.active .card-num {
  color: var(--red);
}

.card.active .card-title {
  color: var(--white);
}

.card.active .card-desc {
  color: var(--gray-800);
}

.card.active .card-list li {
  color: var(--gray-700);
}

.card.active .card-list li::before {
  color: var(--red);
}

.card.active .card-arrow {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--gray-900);
}

.card.active:hover {
  background: var(--dark);
}

/* numer */
.card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
}

/* ikona */
.card-icon {
  font-size: 1.625rem;
  margin-bottom: 0.875rem;
  display: block;
}

/* tytuł */
.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 0.625rem;
  line-height: 1.2;
}

/* opis */
.card-desc {
  font-size: 0.844rem;
  color: var(--gray-800);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* lista */
.card-list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.313rem;
}

.card-list li {
  font-size: 0.781rem;
  color: var(--gray-950);
  display: flex;
  gap: 0.5rem;
}

.card-list li::before {
  content: '—';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}



/*
  ** Mini gallery
  */

/* ══════════════════
     SEKCJA
  ══════════════════ */
.gallery-section {
  padding: 72px 0 80px;
  position: relative;
}

/* ══════════════════
     SIATKA ZDJĘĆ
  ══════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 3px;
  border: 1px solid var(--border);
}

/* duże zdjęcie – lewa kolumna, oba rzędy */
.photo-main {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* ══════════════════
     KAFELEK ZDJĘCIA
  ══════════════════ */
.photo-item {
  position: relative;
  overflow: hidden;
  background: var(--light);
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.photo-item:hover img {
  transform: scale(1.05);
}

/* overlay przy hoverze */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0);
  transition: background 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  z-index: 2;
}

.photo-item:hover .photo-overlay {
  background: rgba(26, 26, 26, 0.55);
}

.photo-caption {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-caption::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.photo-item:hover .photo-caption {
  opacity: 1;
  transform: translateY(0);
}

/* licznik zdjęć na głównym */
.photo-main .photo-count {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  padding: 5px 12px;
  z-index: 3;
}


/*
  ** Area section
  */

.area-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  position: relative;
}

.area-left {
  padding: 4rem 3.5rem 4rem 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--white);
}

.area-desc {
  font-size: 0.906rem;
  line-height: 1.75;
  color: var(--gray-900);
  margin-bottom: 2.5rem;
  max-width: 400px;
  position: relative;
}

.area-desc strong {
  color: var(--dark);
}

/* ── statystyki ── */
.area-stats {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.area-stat {
  padding: 1.125rem 1.75rem 1.125rem 0;
  margin-right: 1.75rem;
  border-right: 1px solid var(--border);
}

.area-stat:last-child {
  border-right: none;
  margin-right: 0;
}

.area-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.125rem;
  font-weight: 900;
  line-height: 1;
  color: var(--dark);
}

.area-stat-num span {
  color: var(--red);
  font-family: inherit;
}

.area-stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-800);
  margin-top: 3px;
}

/* ── tagi miejscowości ── */
.cities-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
  position: relative;
}

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  position: relative;
}

.city {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border: 1.5px solid var(--border);
  color: var(--gray-700);
  cursor: default;
  transition: all 0.2s;
}

.city.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.city:hover:not(.active) {
  border-color: var(--dark);
  color: var(--dark);
}

.area-right {
  position: relative;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 560px;
}

.map-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.5rem 1.125rem;
  z-index: 999;
  pointer-events: none;
}


.map-info {
  position: absolute;
  bottom: 32px;
  right: 20px;
  background: var(--dark);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 10px 16px;
  z-index: 999;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-info::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--red);
  flex-shrink: 0;
}

.custom-marker {
  width: 16px;
  height: 16px;
  background: var(--red);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media only screen and (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  .about-section__wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .about-left {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    border-right: 0;
    flex-direction: row;
    align-items: center;
    padding: 1rem 0 0 0;
  }

  .stat-row {
    border: none;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 100%;
  }

  .stat-row:first-child {
    border: none;
    border-right: 1px solid var(--border);
  }

  .stat-row:last-child {
    border: none;
  }

  .area-section {
    grid-template-columns: 1fr;
  }

  .area-left {
    border: none;
  }
}

@media only screen and (max-width: 768px) {
  .about-section__wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-photo {
    grid-row-start: 2;
    grid-row-end: 3;
  }

  .about-left {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 4;
    align-items: start;

  }

  .about-right {
    padding: 0 0 1rem 0 !important;
    border: none !important;
    align-items: start;
  }
}

@media only screen and (max-width: 568px) {
  .stat-num {
    font-size: 2rem;
  }

  .stat-num span.highlight {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.5rem;
  }

  .about-right,
  .hero-left,
  .area-left {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-values {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-value {
    border-top: 1px solid var(--border);
    border: none;
    
  }

  .area-stats {
    flex-direction: column;
  }

  .area-stat {
    border-right: none;
    border-top: 1px solid var(--border);
    margin: 0;
  }

  .area-stat:first-child {
    border: none;
  }

}