/* ===============================================
   MAGICZNY BŁYSK - STYLE DLA PODSTRON USŁUG
   Uniwersalne style dla wszystkich stron usług
   =============================================== */

:root {
  --primary-color: #4a8eaa;
  --secondary-color: #5cb5d7;
  --accent-color: #b897d8;
  --dark-color: #2d6b8d;
  --light-color: #e5f0f5;
  --text-color: #446a7c;
  --gradient-bg: linear-gradient(135deg, #40b1e5, #9e71c8);
  --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 15px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --border-radius-small: 8px;
  --transition: all 0.3s ease;
}

/* ===============================================
   RESET I PODSTAWOWE STYLE
   =============================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===============================================
   HEADER I NAWIGACJA
   =============================================== */

header {
  background-color: white;
  box-shadow: var(--shadow-light);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  margin-right: 15px;
  height: 40px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.logo-text span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* ===============================================
   BREADCRUMB
   =============================================== */

.breadcrumb {
  background-color: var(--light-color);
  padding: 15px 0;
  margin-top: 80px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(74, 142, 170, 0.1);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  color: var(--text-color);
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li::after {
  content: " › ";
  margin: 0 10px;
  color: var(--primary-color);
  font-weight: bold;
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.breadcrumb-list a:hover {
  text-decoration: underline;
  color: var(--dark-color);
}

/* ===============================================
   HERO SECTION
   =============================================== */

.hero-section {
  background: var(--gradient-bg);
  color: white;
  text-align: center;
  padding: 100px 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" stop-color="rgba(255,255,255,.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>')
    repeat-x;
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  color: white;
}

.hero-section .lead {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  color: white;
}

/* ===============================================
   CONTAINER ARTYKUŁU
   =============================================== */

.article-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

/* ===============================================
   TYPOGRAFIA
   =============================================== */

h1 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-bg);
  border-radius: 2px;
}

h2 {
  font-size: 2rem;
  color: var(--dark-color);
  margin: 40px 0 20px;
  position: relative;
  padding-left: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 30px;
  background: var(--gradient-bg);
  border-radius: 3px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 30px 0 15px;
  font-weight: 600;
}

h4 {
  font-size: 1.3rem;
  color: var(--dark-color);
  margin: 25px 0 15px;
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 20px 0 10px;
  font-weight: 600;
}

p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
}

strong {
  color: var(--dark-color);
  font-weight: 600;
}

/* ===============================================
   KOMPONENTY SPECJALNE
   =============================================== */

.highlight-box {
  background: linear-gradient(
    135deg,
    rgba(74, 142, 170, 0.1),
    rgba(184, 151, 216, 0.1)
  );
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  margin: 30px 0;
  border-radius: var(--border-radius-small);
  box-shadow: var(--shadow-light);
  position: relative;
}

.highlight-box::before {
  content: "💡";
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  opacity: 0.7;
}

.highlight-box p {
  margin-bottom: 0;
  font-weight: 500;
}

/* ===============================================
   KARTY KORZYŚCI/USŁUG
   =============================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.benefit-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid rgba(74, 142, 170, 0.1);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-bg);
  transform: scaleX(0);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
  display: block;
}

.benefit-card h3 {
  text-align: center;
  margin-bottom: 15px;
}

.benefit-card p {
  text-align: center;
  color: #666;
  font-size: 1rem;
}

/* ===============================================
   LISTY
   =============================================== */

.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.feature-list li:hover {
  padding-left: 30px;
  background-color: rgba(74, 142, 170, 0.02);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* ===============================================
   STATYSTYKI
   =============================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 25px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid rgba(74, 142, 170, 0.1);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===============================================
   CENNIK
   =============================================== */

.pricing-table {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 40px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pricing-card {
  background-color: white;
  border-radius: var(--border-radius-small);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid rgba(74, 142, 170, 0.1);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  position: relative;
  transform: scale(1.02);
}

.pricing-card.featured::before {
  content: "Najpopularniejszy";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-bg);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.pricing-card h4 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.price {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: bold;
  margin: 15px 0;
}

.price-unit {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: normal;
}

/* ===============================================
   FAQ SEKCJA
   =============================================== */

.faq-section {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 40px;
  margin: 50px 0;
}

.faq-section h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark-color);
  font-size: 2rem;
}

.faq-item {
  margin-bottom: 25px;
  background-color: white;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-medium);
}

.faq-question {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.faq-question:hover {
  background-color: var(--dark-color);
}

.faq-question::after {
  content: "▼";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.faq-answer {
  padding: 20px;
  background-color: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-answer p {
  margin-bottom: 0;
  color: #555;
}

/* ===============================================
   TESTIMONIALE
   =============================================== */

.testimonial {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 30px 0;
  box-shadow: var(--shadow-light);
  border-left: 5px solid var(--accent-color);
  position: relative;
  transition: var(--transition);
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: rgba(74, 142, 170, 0.1);
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #555;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
}

/* ===============================================
   LOKALNE SŁOWA KLUCZOWE
   =============================================== */

.local-keywords {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 40px 0;
}

.local-keywords h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.keywords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.keyword-item {
  background: white;
  padding: 15px;
  border-radius: var(--border-radius-small);
  text-align: center;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid rgba(74, 142, 170, 0.1);
}

.keyword-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: var(--primary-color);
  color: white;
}

/* ===============================================
   SEKCJA KONTAKTU
   =============================================== */

.contact-section {
  background: var(--gradient-bg);
  color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  margin: 50px 0;
  position: relative;
  overflow: hidden;
}



.contact-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.contact-section h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.contact-section p {
  margin-bottom: 30px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.contact-item {
  text-align: center;
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.contact-info {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-info a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.contact-info a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ===============================================
   PRZYCISKI
   =============================================== */

.btn {
  display: inline-block;
  background: var(--gradient-bg);
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin: 20px 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 120, 215, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 120, 215, 0.4);
}

.btn:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-color);
}

/* ===============================================
   FOOTER
   =============================================== */

footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  color: #fff;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-bg);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #bbb;
  transition: var(--transition);
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 20px;
}

.footer-contact-item {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.footer-contact-icon {
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact-item a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #bbb;
}

.copyright a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.copyright a:hover {
  color: white;
  text-decoration: underline;
}

/* ===============================================
   RESPONSYWNOŚĆ
   =============================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-section {
    padding: 80px 0;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
    padding-left: 15px;
  }

  h2::before {
    width: 4px;
    height: 25px;
  }

  .article-container {
    padding: 40px 20px;
    margin-top: -20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .keywords-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }

  .breadcrumb-list {
    font-size: 0.9rem;
  }

  .breadcrumb-list li::after {
    margin: 0 5px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 25px;
    margin: 10px 5px;
    font-size: 0.95rem;
  }

  .article-container {
    padding: 30px 15px;
  }

  .benefit-card {
    padding: 20px;
  }

  .stat-item {
    padding: 20px;
  }

  .faq-section {
    padding: 30px 20px;
  }

  .contact-section {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .navbar {
    padding: 15px 0;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .breadcrumb {
    padding: 10px 0;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }

  .hero-section h1 {
    font-size: 1.6rem;
  }

  .article-container {
    padding: 20px 10px;
  }
}

/* ===============================================
   ANIMACJE I EFEKTY
   =============================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-container {
  animation: fadeInUp 0.6s ease-out;
}

.benefit-card,
.stat-item,
.pricing-card,
.testimonial {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.benefit-card:nth-child(1) {
  animation-delay: 0.1s;
}
.benefit-card:nth-child(2) {
  animation-delay: 0.2s;
}
.benefit-card:nth-child(3) {
  animation-delay: 0.3s;
}
.benefit-card:nth-child(4) {
  animation-delay: 0.4s;
}
.benefit-card:nth-child(5) {
  animation-delay: 0.5s;
}
.benefit-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
  header,
  .breadcrumb,
  .contact-section,
  footer {
    display: none;
  }

  .article-container {
    margin-top: 0;
    box-shadow: none;
    padding: 20px 0;
  }

  body {
    background: white;
  }

  .hero-section {
    background: var(--primary-color);
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
}

/* ===============================================
   ACCESSIBILITY
   =============================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
