/* ============================================
   RESPONSIVE STYLES - PROWADZENIE ONLINE
   ============================================ */

/* ============================================
   TABLETY I MAŁE DESKTOPY (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
  .navbar {
    padding: 12px 30px;
    margin: 0 20px;
  }

  .nav-menu {
    gap: 20px;
  }

  .subpage-hero .hero-container {
    gap: 40px;
    padding: 0 20px;
  }

  .subpage-hero .hero-content h1 {
    font-size: 2.5rem;
  }

  .features-grid {
    gap: 40px;
    padding: 30px;
  }

  .contact-container {
    gap: 40px;
  }

  .process-timeline {
    padding-left: 55px;
  }

  .step-icon {
    left: -63px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* ============================================
   TABLETY (≤992px)
   ============================================ */
@media (max-width: 992px) {
  /* Hero Section */
  .subpage-hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 30px 40px;
  }

  .subpage-hero .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .subpage-hero .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .subpage-hero .hero-image img {
    width: 100%;
    max-width: 358px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    margin: 0 auto;
  }

  .subpage-hero .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
  }

  .subpage-hero .hero-content p {
    max-width: 600px;
    margin: 0 auto 15px;
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* ============================================
   SMARTFONY (≤768px)
   ============================================ */
@media (max-width: 768px) {
  /* --- Navigation --- */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .nav-menu,
  .social-media {
    display: none;
  }

  .header {
    padding: 15px 0;
  }

  .navbar {
    padding: 10px 20px;
    margin: 0 15px;
  }

  .nav-logo {
    font-size: 1.3rem;
  }

  /* --- Hero Section --- */
  .subpage-hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 20px 40px;
  }

  .subpage-hero .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .subpage-hero .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .subpage-hero .hero-content p {
    max-width: 600px;
    margin: 0 auto 12px;
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .subpage-hero .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .subpage-hero .hero-image img {
    width: 100%;
    max-width: 358px;
    height: auto;
    border-radius: 15px;
    margin: 0 auto;
  }

  .subpage-hero .btn {
    margin-top: 20px;
    padding: 12px 35px;
    font-size: 1rem;
  }

  /* --- Features Section --- */
  .features-section {
    padding: 80px 20px;
  }

  .features-section .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 25px;
  }

  .features-nav {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .feature-card {
    flex: 0 1 calc(50% - 4px);
    padding: 12px;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 8px;
    min-height: 80px;
  }

  .feature-card h3 {
    font-size: 0.9rem;
  }

  .feature-card i {
    font-size: 1.3rem;
  }

  .features-content {
    order: 1;
    min-height: 200px;
  }

  .feature-description h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .feature-description p {
    font-size: 0.95rem;
  }

  .product-details-box {
    margin-top: 40px;
    padding: 25px;
  }

  .product-details-box h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .product-details-box p {
    font-size: 0.95rem;
  }

  /* --- Process Section --- */
  .process-section {
    padding: 80px 20px;
  }

  .process-section .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .process-timeline {
    padding-left: 0;
  }

  .process-timeline::before {
    left: 20px;
  }

  .step-icon {
    position: relative;
    margin-left: 0;
    left: 0;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-width: 3px;
  }

  .step-content {
    margin-left: 70px;
    padding: 20px;
  }

  .step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .step-content p {
    font-size: 0.95rem;
  }

  /* --- Contact Section --- */
  .contact-section {
    padding: 80px 20px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .newsletter-side h3,
  .contact-info-side h3 {
    font-size: 1.8rem;
  }
}

/* ============================================
   TELEFONY (≤480px)
   ============================================ */
@media (max-width: 480px) {
  /* --- Navigation --- */
  .header {
    padding: 10px 0;
  }

  .navbar {
    padding: 15px 20px;
    margin: 0 10px;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  /* --- Hero Section --- */
  .subpage-hero {
    padding: 140px 15px 30px;
    min-height: auto;
  }

  .subpage-hero .hero-container {
    gap: 30px;
  }

  .subpage-hero .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .subpage-hero .hero-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .subpage-hero .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
    margin-top: 15px;
  }

  /* --- Features Section --- */
  .features-section {
    padding: 60px 15px;
  }

  .features-section .section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    line-height: 1.3;
  }

  .features-grid {
    gap: 25px;
    padding: 20px;
  }

  .features-nav {
    gap: 6px;
  }

  .feature-card {
    flex: 1 1 100%;
    padding: 10px;
    min-height: 70px;
    gap: 6px;
  }

  .feature-card h3 {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .feature-card i {
    font-size: 1.2rem;
  }

  .features-content {
    min-height: 180px;
  }

  .feature-description h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .feature-description p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .product-details-box {
    margin-top: 30px;
    padding: 20px;
  }

  .product-details-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .product-details-box p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* --- Process Section --- */
  .process-section {
    padding: 60px 15px;
  }

  .process-section .section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    line-height: 1.3;
  }

  .process-timeline {
    padding-left: 0;
  }

  .process-timeline::before {
    left: 17.5px;
  }

  .process-step {
    margin-bottom: 40px;
  }

  .step-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    border-width: 2px;
  }

  .step-content {
    margin-left: 65px;
    padding: 15px;
  }

  .step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .step-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* --- Contact Section --- */
  .contact-section {
    padding: 60px 15px;
  }

  .contact-container {
    gap: 40px;
  }

  .newsletter-side h3,
  .contact-info-side h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .newsletter-side p,
  .contact-info-side p {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .newsletter-form input {
    padding: 12px;
    font-size: 0.9rem;
  }

  .contact-item {
    font-size: 1rem;
    gap: 12px;
    margin-bottom: 15px;
  }

  .contact-item i {
    font-size: 1.3rem;
  }

  .footer-social-media {
    gap: 20px;
    justify-content: center;
  }

  .footer-social-media a {
    font-size: 1.3rem;
  }
}

/* ============================================
   STOPNIOWE ZMNIEJSZANIE OBRAZU HERO
   ============================================ */
@media (max-width: 450px) {
  .subpage-hero .hero-image img {
    max-width: 360px;
  }
}

@media (max-width: 400px) {
  .subpage-hero .hero-image img {
    max-width: 320px;
  }
}

@media (max-width: 375px) {
  .subpage-hero .hero-image img {
    max-width: 280px;
  }
}

/* ============================================
   BARDZO MAŁE TELEFONY (≤320px)
   ============================================ */
@media (max-width: 320px) {
  .navbar {
    margin: 0 5px;
    padding: 12px 15px;
  }

  .subpage-hero {
    padding: 130px 10px 25px;
  }

  .subpage-hero .hero-content h1 {
    font-size: 1.6rem;
  }

  .subpage-hero .hero-content p {
    font-size: 0.85rem;
  }

  .features-section,
  .process-section,
  .contact-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .features-section .section-title,
  .process-section .section-title {
    font-size: 1.4rem;
  }

  .features-grid {
    padding: 15px;
  }

  .feature-card h3 {
    font-size: 0.8rem;
  }

  .process-timeline {
    padding-left: 0;
  }

  .process-timeline::before {
    left: 15px;
  }

  .step-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .step-content {
    margin-left: 55px;
  }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .subpage-hero {
    min-height: auto;
    padding: 120px 15px 30px;
  }

  .subpage-hero .hero-content h1 {
    font-size: 1.6rem;
  }

  .navbar {
    padding: 8px 15px;
  }
}

/* ============================================
   TOUCH DEVICES - Poprawki dla urządzeń dotykowych
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  /* Wyłączenie hover efektów */
  .nav-link:hover,
  .social-media a:hover,
  .dropdown-menu li a:hover,
  .footer-social-media a:hover,
  .feature-card:hover {
    background: transparent;
    color: inherit;
    transform: none;
  }

  .btn:hover {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    transform: none;
  }

  /* Active states dla touch */
  .btn:active {
    background: #218838;
    transform: scale(0.98);
  }

  .nav-link:active,
  .social-media a:active,
  .footer-social-media a:active {
    color: #28a745;
  }

  .feature-card:active {
    background: #f0f0f0;
    transform: scale(0.98);
  }

  /* Active state dla wybranej karty - POPRAWIONE */
  .feature-card.active {
    background: #e9f5ec;
  }

  .feature-card.active h3,
  .feature-card.active i {
    color: #28a745;
  }

  /* Większe pola dotykowe (minimum 44x44px) */
  .nav-link,
  .social-media a,
  .footer-social-media a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-media a,
  .footer-social-media a {
    min-width: 44px;
  }

  .feature-card {
    min-height: 60px;
  }
}

/* =========================
   FOOTER - MOBILE
   ========================= */
@media (max-width: 768px) {
    .footer-main {
        padding: 30px 20px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .footer-contact,
    .footer-social,
    .footer-links {
        text-align: center;
    }

    .footer-contact a,
    .footer-social-link,
    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-bottom {
        margin-top: 25px;
        padding-top: 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 25px 15px 12px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 0.95rem;
    }

    .footer-contact a,
    .footer-social-link,
    .footer-links a {
        font-size: 0.85rem;
    }
}