/* Reset i podstawy */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Montserrat',sans-serif; background:#f7f9fc; color:#111; overflow-x:hidden; }

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo {
  font-weight: 700;
  font-size: 22px;
  color: #000;
}

.btn {
  background: linear-gradient(135deg,#0387d8,#36a0e2);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(3,135,216,0.3);
}

/* HEADER MOBILE */
@media (max-width:768px) {
  header {
    flex-direction: column;
    align-items: center;
    position: static;
    padding: 15px 20px;
  }
  header .logo, header div:nth-child(2) {
    justify-content: center;
    flex: 1 1 100%;
    margin-bottom: 10px;
    text-align: center;
  }
  header div:nth-child(2) {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width:768px) {
  header .logo {
    display: flex !important;           /* wymuszamy flex */
    flex-direction: column !important;  /* kolumna */
    align-items: center !important;     /* centrowanie w poziomie */
    text-align: center !important;      /* centrowanie tekstu */
    margin-bottom: 10px;
  }

  header .logo a {
    text-align: center;
  }
}

/* Przycisk menu mobilnego */
.menu .btn {
  padding: 10px 25px;
  background: linear-gradient(135deg, #650082, #9b00b8);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 6px 15px rgba(101,0,130,0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

.menu .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 25px rgba(101,0,130,0.5);
}

.menu .btn:hover::before {
  left: 200%;
}

.menu-toggle {
  display: none; 
  padding: 10px 20px;
  background: #650082;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  width:50%;
}

.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(101,0,130,0.3);
}

/* Mobilne menu */
@media (max-width:768px) {
  .menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.97);
    flex-direction: column;
    gap: 20px;
    padding: 60px 20px;
    text-align: center;
    transition: top 0.4s ease-in-out;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  .menu.active {
    top: 0;
  }

  .menu a {
    font-size: 18px;
    padding: 10px 0;
  }

  .menu .btn {
    margin-top: 15px;
  }

  .menu-toggle {
    display: inline-block;
  }

  body.menu-open {
    overflow: hidden; /* blokuje scroll podczas otwartego menu */
  }
}

/* HERO */
.hero {
  background: url('../img/hero-bckd.png') no-repeat center center/cover;
  padding: 120px 20px;
  text-align: center;
  height:600px;
  position:relative;
  overflow:hidden;
}

.hero h1 { color:#fff; font-size:52px; margin-bottom:20px; }
.hero p { color:#fff; margin-bottom:30px; }

.hero-icons {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:50px;
  margin-top:50px;
  flex-wrap:wrap;
  text-align:center;
}

.hero-icons .icon {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  font-weight:600;
  color:#fff;
  font-size:16px;
}

.hero-icons i {
  font-size:48px;
  transition: transform 0.3s;
}

.hero-icons i:hover {
  transform: scale(1.2);
}

/* Animacje premium */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.hero-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO MOBILE - profesjonalnie */
@media (max-width:768px) {
  .hero {
    padding: 60px 20px;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .btn.hero-anim {
    padding: 10px 20px;
    font-size: 16px;
  }

  /* Sekcja ikon z przewijaniem w mobilce */
  .hero-icons {
    display: flex;
    flex-direction: row; /* poziomo */
    gap: 20px;
    overflow-x: auto;   /* przewijanie w poziomie */
    padding: 10px 0;
    justify-content: center;
    align-items: center;
  }

  .hero-icons::-webkit-scrollbar {
    display: none; /* ukrywa pasek przewijania dla estetyki */
  }

  .hero-icons .icon {
    flex: 0 0 auto;   /* zapobiega rozciąganiu */
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    min-width: 120px; /* stała szerokość dla ikonki */
    background: rgba(255,255,255,0.1); /* delikatne tło dla czytelności */
    border-radius: 12px;
    padding: 10px;
    transition: transform 0.3s;
  }

  .hero-icons .icon i {
    font-size: 36px;
  }

  .hero-icons .icon:hover {
    transform: translateY(-5px);
  }
}

/* SEKCJE I KARTY */
.section { max-width:1100px; margin:auto; padding:80px 20px; }
.grid { margin-top:20px; display:flex; gap:25px; flex-wrap:wrap; justify-content:center; }

.card {
  background:#fff;
  padding:25px;
  border-radius:18px;
  box-shadow:0 20px 40px rgba(0,0,0,0.06);
  opacity:0;
  transform:translateY(40px);
  transition:.6s;
  flex:1 1 200px;
  max-width:250px;
  text-align:center;
}

.card.show { opacity:1; transform:translateY(0); }
.card:hover { transform:translateY(-8px) scale(1.02); }

.price { font-size:32px; font-weight:700; color:#bf1366; }

.contact-box {
  background:#fff;
  padding:40px;
  border-radius:20px;
  box-shadow:0 20px 40px rgba(0,0,0,0.08);
  max-width:600px;
  margin:auto;
}

input,textarea {
  font-family:'Montserrat',sans-serif;
  width:100%;
  padding:14px;
  margin-bottom:15px;
  border-radius:10px;
  border:1px solid #ddd;
}

/* FAQ */
.faq { background:#eef6fc; padding:40px; border-radius:20px; margin-top:50px; margin-bottom:150px; }
.faq h3 { margin-top:10px; cursor:pointer; padding:15px; background:#fff; border-radius:12px; box-shadow:0 5px 15px rgba(0,0,0,0.05); margin-bottom:10px; transition:.3s; }
.faq p { display:none; padding:10px 15px; background:#f7f9fc; border-radius:10px; margin-bottom:15px; }
.faq h3.active + p { display:block; }

/* STOPKA */
.footer {
  padding:50px 20px;
  color:#555;
  font-size:14px;
  line-height:1.5;
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:20px;
  box-shadow:0 -10px 30px rgba(0,0,0,0.05);
  border-top:2px solid #ddd;
  opacity:0;
  transform:translateY(20px);
  transition:all 0.8s ease;
}

.footer.visible { opacity:1; transform:translateY(0); }

.footer a { color:#111; text-decoration:none; }
.footer a:hover { color:#650082; }

@media (min-width:769px) {
  .footer {
    text-align:left;
    display:grid;
    grid-template-columns:1fr 1fr 2fr;
    gap:40px;
    padding:60px 80px;
    font-size:15px;
  }
  .footer-brand { font-weight:700; font-size:16px; }
  .footer-contact { font-size:15px; }
  .footer-seo { font-size:13px; color:#777; }
  .footer-copy { grid-column:1/-1; text-align:center; font-size:12px; color:#999; margin-top:20px; }
}


@media (max-width:768px) {
  .footer { text-align:center; padding:40px 20px; font-size:14px; }
  .footer-brand { font-weight:700; font-size:16px; }
  .footer-contact { font-size:15px; }
  .footer-seo { font-size:12px; max-width:400px; margin:auto; color:#777; }
  .footer-copy { font-size:12px; color:#999; }
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #eee;
  border-top: 6px solid #007BFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* tekst */
.loading-text {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* animowane kropki */
.dots::after {
  content: '';
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%   { content: ''; }
  33%  { content: '.'; }
  66%  { content: '..'; }
  100% { content: '...'; }
}.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #eee;
  border-top: 6px solid #007BFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* tekst */
.loading-text {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* animowane kropki */
.dots::after {
  content: '';
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%   { content: ''; }
  33%  { content: '.'; }
  66%  { content: '..'; }
  100% { content: '...'; }
}

.progress-bar {
  width: 250px;
  height: 10px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #007BFF, #00c6ff);
  transition: width 0.2s ease;
}

.progress-text {
  font-size: 14px;
  color: #555;
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ===== TOGGLE BUTTON ===== */
.chat-toggle {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #00c6ff, #007BFF, #5f2cff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s;
  animation: pulse 2s infinite;
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.1);
}

/* ===== IKONA ===== */
.chat-icon {
  width: 28px;
  height: 28px;
  filter: invert(1);
  pointer-events: none;
}

/* ===== PULSOWANIE ===== */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ===== FALA ===== */
.chat-toggle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.4);
  animation: wave 2s infinite;
  z-index: -1;
}

@keyframes wave {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ===== BADGE ===== */
.chat-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: #ff3b3b;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== OPCJE ===== */
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: 0.3s;
}

.chat-options.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== BUTTONY ===== */
.chat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.chat-btn img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.chat-btn:hover {
  transform: translateX(5px);
}

/* ===== KOLORY ===== */
.messenger {
  background: #0084FF;
}

.whatsapp {
  background: #25D366;
}

/* ===== TOOLTIP ===== */
.chat-tooltip {
  position: absolute;
  bottom: 75px;
  left: 0;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}

.chat-widget.show-tooltip .chat-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {
  .chat-widget {
    bottom: 15px;
    left: 15px;
  }

  .chat-toggle {
    width: 55px;
    height: 55px;
  }

  .chat-icon {
    width: 24px;
    height: 24px;
  }

  .chat-btn {
    font-size: 13px;
    padding: 9px 12px;
  }
}

.chat-icon {
  width: 28px;
  height: 28px;
  filter: invert(1); /* biała ikonka */
  pointer-events: none;
}