/* ----------------------
   GLOBAL / RESET
----------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 100%;
}
body {
  font-family: "Montserrat", sans-serif;
  color: #595959;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

:root {
  --yellow: #f9d352;
  --black: #2a2929;
  --grey-light: #ebebeb;
  --white: #ffffff;
  --container: 1200px;
}

/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: .3s ease;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--yellow);
  color: var(--black);
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-ghost {
  background: transparent;
  border-color: var(--yellow);
  color: var(--black);
}
.btn-ghost:hover {
  background: var(--yellow);
  color: var(--black);
}

h1,
h2,
h3,
h4 {
  color: var(--black);
  font-weight: 700;
}
h1 {
  font-size: 4rem;
  line-height: 1.1;
}
h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
  text-align: center;
}

/* ----------------------
   TOP BAR
----------------------*/
.top-bar {
  font-size: .875rem;
  font-weight: 600;
  height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar span {
  margin-left: .5rem;
}

/* ----------------------
   MAIN NAV
----------------------*/
.custom-header {
  display: flex;
  height: 64px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-family: "Montserrat", sans-serif;
  position: relative;
}

.logo-box {
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: #2a2929;
}

.main-menu {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 40px;
}

.main-menu ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.main-menu a {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #2a2929;
  transition: color 0.3s;
}

.main-menu a:hover {
  color: var(--yellow);
}

/* ----------------------
   HERO
----------------------*/
.hero-v2 {
  background-image: url("../images/main.jpg?height=1080&width=1920");
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
  color: #2a2929;
}

.hero-v2 .overlay {
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 8%;
}

.hero-box {
  max-width: 600px;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-left: 8px solid var(--yellow);
}

.hero-box h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.hero-box p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn-yellow {
  background: var(--yellow);
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  text-transform: uppercase;
}

.btn-dark {
  background: #2a2929;
  color: white;
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  text-transform: uppercase;
}

/* ----------------------
   SERVICES - ULEPSZONE
----------------------*/
#services {
  padding: 96px 0;
  background: #f8f9fa;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  margin-top: 48px;
}
.service-card {
  background: white;
  padding: 48px 24px;
  text-align: center;
  border-bottom: 4px solid transparent;
  transition: .3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.service-card:hover {
  border-color: var(--black);
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-8px);
}
.service-icon {
  font-size: 3rem;
  margin: 0 auto 24px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border-radius: 50%;
}
.service-card p {
  font-size: 1rem;
}

/* ----------------------
   ABOUT COMPANY
----------------------*/
/* Zaktualizuj sekcję ABOUT COMPANY w pliku style.css */
#about-company {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 96px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center; /* Wyśrodkowanie tekstu */
}

#about-company .img-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#about-company .img-wrap img {
  height: 450px;
  width: auto;
  object-fit: contain;
  margin: 0 auto; /* Wyśrodkowanie obrazka */
}

#about-company .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Wyśrodkowanie zawartości */
  text-align: center; /* Wyśrodkowanie tekstu */
}

#about-company h2 {
  text-align: center; /* Wyśrodkowanie tytułu */
  margin-bottom: 2rem;
}

#about-company p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  text-align: center; /* Wyśrodkowanie paragrafów */
  margin-left: auto;
  margin-right: auto;
}

/* Wyśrodkowanie statystyk */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  justify-content: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
}

/* Responsive - mobile */
@media (max-width: 899px) {
  #about-company {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  #about-company .img-wrap,
  #about-company .content {
    flex: 100%;
    width: 100%;
  }

  .stats-grid {
    gap: 30px;
    max-width: 350px;
  }
}

.section-divider {
  border: none;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.15);
  margin: 60px auto;
  width: 80%;
}

/* ----------------------
   CTA RIBBON
----------------------*/
.cta-ribbon {
  background: var(--yellow);
  padding: 45px 20px;
  text-align: center;
}
.cta-ribbon h2 {
  color: var(--black);
  margin-bottom: 1rem;
}
.cta-ribbon p {
  color: var(--black);
  font-size: 1.25rem;
  max-width: 680px;
  margin: 0 auto 2rem;
}
.cta-ribbon .btn {
  background: var(--white);
  color: var(--black);
  margin-top: 16px;
}

/* ----------------------
   PORTFOLIO
----------------------*/
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 260px;
  gap: 34px;
}
#portfolio {
  padding-bottom: 1px;
}

.section-header {
  text-align: left;
  margin-bottom: 45px;
  margin-top: 45px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header .black {
  color: #2a2929;
}

.section-header .yellow {
  color: var(--yellow);
}

.yellow {
  color: var(--yellow);
}

.section-header p {
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.6;
  color: #2a2929;
}

.section-header.horizontal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.section-header.horizontal h2 {
  margin: 0;
  white-space: nowrap;
}

.section-header.horizontal p {
  flex: 1;
  margin: 0;
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.6;
}
/* Dodaj to do sekcji PORTFOLIO w pliku CSS */
.portfolio-grid .wide {
  grid-column: span 2;
  grid-row: span 1;
}

/* Opcjonalnie - lepsze rozmieszczenie na mobile */
@media (max-width: 768px) {
  .portfolio-grid .big,
  .portfolio-grid .wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .portfolio-grid .tall {
    grid-row: span 1;
  }
}
.portfolio-grid .big {
  grid-column: span 2;
  grid-row: span 2;
}
.portfolio-grid .tall {
  grid-row: span 2;
}
.portfolio-grid a {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.portfolio-grid a:hover img {
  transform: scale(1.08);
}

.portfolio-grid a::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 3rem;
  opacity: 0;
  transition: .3s;
}
.portfolio-grid a:hover::after {
  opacity: 1;
}

/* ----------------------
   LIGHTBOX
----------------------*/
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 2000;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.lightbox-overlay .close {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 2.5rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}

/* ----------------------
   NOWA SEKCJA KONTAKTOWA - JAK NA ZDJĘCIU
----------------------*/
.contact-section-new {
  background: linear-gradient(135deg, #f5d020 0%, #f9d352 100%);
  padding: 80px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* Form Card - Left Side */
.contact-form-card {
  background: white;
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-card h2 {
  font-size: 2rem;
  color: #2a2929;
  margin-bottom: 30px;
  text-align: left;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2a2929;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f9d352;
  box-shadow: 0 0 0 3px rgba(249, 211, 82, 0.2);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

.submit-btn {
  width: 100%;
  background: #2a2929;
  color: white;
  border: none;
  padding: 20px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #1a1919;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 41, 41, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loading {
  display: inline;
}

.submit-btn.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

/* Contact Info Cards - Right Side */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card-icon {
  background: #2a2929;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  color: white;
  width: 24px;
  height: 24px;
}

.contact-card-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2a2929;
  margin-bottom: 8px;
  text-align: left;
}

.contact-card-content p {
  color: #666;
  margin: 0;
  font-weight: 500;
}

.contact-link {
  color: #f97316;
  font-weight: 700;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #ea580c;
}

/* Form Messages */
.form-messages {
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 8px;
  display: none;
  font-weight: 500;
}

.form-messages.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-messages.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Form Validation */
.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-group input.success,
.form-group textarea.success {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* ----------------------
   FOOTER
----------------------*/
footer.site-footer {
  background: var(--black);
  color: #9e9e9e;
  padding: 96px 20px 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background: var(--yellow);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}
.footer-contact {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.socials {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.socials a svg {
  fill: var(--white);
  width: 24px;
  height: 24px;
  transition: .3s;
}
.socials a:hover svg {
  fill: var(--yellow);
}
.copyright {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 16px;
  font-size: .875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ----------------------
   ANIMATIONS
----------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#preloader {
  position: fixed;
  z-index: 9999;
  background: white;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--yellow);
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ----------------------
   MOBILE MENU & IMPROVEMENTS
----------------------*/
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--black);
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.mobile-menu a {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-menu .mobile-phone {
  background: var(--yellow);
  color: var(--black);
  font-weight: bold;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--yellow);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--black);
  font-weight: 600;
}

/* ----------------------
   RESPONSIVE
----------------------*/
@media (max-width: 1199px) {
  h1 {
    font-size: 3.4rem;
  }
  h2 {
    font-size: 2.55rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .main-menu ul {
    display: none;
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-box {
    margin: 20px;
    padding: 30px 20px;
  }

  .hero-box h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .stats-grid {
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Contact Section Mobile */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-card {
    padding: 30px 25px;
  }

  .contact-form-card h2 {
    font-size: 1.6rem;
  }

  .contact-info-cards {
    gap: 20px;
  }

  .contact-card {
    padding: 25px;
  }

  .contact-card-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 899px) {
  .top-bar {
    display: none;
  }

  #services .services-grid {
    grid-template-columns: 1fr;
  }

  #about-company {
    flex-direction: column;
  }

  #about-company .img-wrap,
  #about-company .content {
    flex: 100%;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .contact-section-new {
    padding: 60px 15px;
  }

  .contact-form-card {
    padding: 25px 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 15px;
  }

  .submit-btn {
    padding: 18px 25px;
    font-size: 1rem;
  }

  .contact-card {
    padding: 20px;
    gap: 15px;
  }

  .contact-card-icon {
    width: 45px;
    height: 45px;
  }

  .contact-card-content h3 {
    font-size: 1.1rem;
  }

  .contact-link {
    font-size: 1.1rem;
  }
}
