/* =======================================================
   RESPONSIVE STYLES FOR MOBILE DEVICES
   plan-treningowy-mobile.css
   ======================================================= */

/* Media query dla tabletów i mniejszych urządzeń */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .section-title {
        font-size: 2rem;
    }
    
    /* === POPRAWIONY BLOK NAWIGACJI MOBILNEJ === */
    .nav-menu, .social-media {
        display: none;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1003;
    }
    
    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .navbar {
        padding: 15px 30px;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        width: 260px;
        right: -260px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1002;
        transition: right 0.3s ease;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-sidebar.active {
        right: 0;
    }
    
    .mobile-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
    }

    .mobile-logo {
        font-weight: 600;
        font-size: 1.3rem;
        color: #333;
    }
    
    .close-sidebar {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #333;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .close-sidebar:hover {
        background-color: #f0f0f0;
    }

    .close-sidebar i {
        font-size: 1.2rem;
        line-height: 1;
    }
    
    .mobile-menu {
        list-style: none;
        padding: 20px 0;
        flex-grow: 1;
    }
    
    .mobile-nav-item {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .mobile-nav-item:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
        font-weight: 500;
        color: #333;
        transition: background-color 0.3s, color 0.3s;
    }

    .mobile-nav-link:hover {
        background-color: #f8f9fa;
        color: #1F8D4F;
    }

    .mobile-dropdown-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-dropdown-trigger {
        padding: 15px 20px;
        cursor: pointer;
    }

    .dropdown-arrow {
        transition: transform 0.3s ease;
        font-size: 0.8rem;
    }

    .mobile-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .mobile-dropdown-menu {
        list-style: none;
        padding-left: 0;
        max-height: 0;
        overflow: hidden;
        background-color: #f8f9fa;
        transition: max-height 0.4s ease-out;
    }

    .mobile-dropdown.active .mobile-dropdown-menu {
        max-height: 500px;
    }
    
    .mobile-dropdown-menu li a {
        padding: 12px 20px 12px 40px;
        font-size: 0.9rem;
        color: #555;
        display: block;
    }
    
    .mobile-social-media {
        text-align: center;
        padding: 20px;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .mobile-social-media a {
        font-size: 1.3rem;
        margin: 0;
        color: #555;
    }
    
    .mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    /* === KONIEC POPRAWIONEGO BLOKU NAWIGACJI === */


    /* === Inne sekcje dla tabletów === */
    .subpage-hero .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .subpage-hero .hero-image {
        order: -1;
    }
    .subpage-hero .hero-image img {
        margin: 0 auto;
    }
    .subpage-hero .hero-content h1 {
        font-size: 2.5rem;
    }

    .features-container {
        grid-template-columns: 1fr;
    }
}


/* Media query dla smartfonów */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .header {
        padding: 10px 0;
    }
    
    .navbar {
        padding: 10px 20px;
    }

    .subpage-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .plan-details-section, .process-section, .faq-section {
        padding: 60px 0;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .process-timeline::before {
        display: none;
    }
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        height: 30px;
        width: 2px;
        background-color: var(--border-color);
    }

    .contact-section {
        padding: 60px 20px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .newsletter-side h3, .contact-info-side h3 {
        font-size: 1.8rem;
    }

    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
}

/* === FINALNY BLOK WSKAŹNIKA AKTYWNEJ STRONY === */

/* --- Style dla aktywnych linków --- */

/* Delikatne tło dla każdego aktywnego elementu LI */
.mobile-menu li.active-page {
    position: relative;
    background-color: rgba(31, 141, 79, 0.05);
}

/* --- Style dla ZIELONEJ KRESKI --- */

/* 1. Kreska dla ZWYKŁYCH linków (np. "O mnie", "Kontakt") */
.mobile-menu > .mobile-nav-item.active-page:not(.mobile-dropdown)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background-color: #1F8D4F;
    border-radius: 2px;
}

/* 2. Kreska TYLKO dla GŁÓWNEGO linku "Oferta" (gdy jest aktywny) */
.mobile-dropdown-header {
    position: relative;
}
.mobile-dropdown.active-page > .mobile-dropdown-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background-color: #1F8D4F;
    border-radius: 2px;
}

/* 3. Kreska dla elementów WEWNĄTRZ menu rozwijanego */
.mobile-dropdown-menu li.active-page::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background-color: #1F8D4F;
    border-radius: 2px;
}

/* --- Style dla POGRUBIENIA tekstu --- */

/* Pogrubienie dla aktywnych linków głównych (w tym "Oferta") */
.mobile-menu > .mobile-nav-item.active-page > a,
.mobile-dropdown.active-page > .mobile-dropdown-header > .mobile-nav-link {
    color: #1F8D4F;
    font-weight: 600;
}

/* Pogrubienie dla aktywnych linków w menu rozwijanym */
.mobile-dropdown-menu li.active-page > a {
    color: #1F8D4F;
    font-weight: 600;
}

/* Pogrubienie dla "Oferta", gdy podstrona w środku jest aktywna */
.mobile-dropdown.has-active-child > .mobile-dropdown-header > .mobile-nav-link {
    color: #1F8D4F;
    font-weight: 600;
}

@media (max-width: 992px) {
  .subpage-hero .hero-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px; /* opcjonalnie */
  }
}

@media (max-width: 768px) {
  .subpage-hero .hero-image img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto; /* żeby wyśrodkować */
  }
}

/* =======================================================
   POPRAWKI MOBILNE DLA SEKCJI HERO - PLAN TRENINGOWY
   Wzorowane na podstronie "Trening Personalny" - pełne rozmiary obrazu
   ======================================================= */

/* Media query dla tabletów i mniejszych urządzeń */
@media (max-width: 992px) {
    /* HERO SECTION - dostosowanie do wzorca */
    .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; /* Obraz na górze */
    }
    
    .subpage-hero .hero-image img {
        width: 100%;
        max-width: 358px;
        height: auto;
        object-fit: cover;
        object-position: center;
        display: block;
        margin: 0 auto;
        border-radius: 15px;
    }
    
    .subpage-hero .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    
    
}

/* Media query dla smartfonów */
@media (max-width: 768px) {
    /* HERO SECTION - identyczne jak wzorzec */
    .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-image img {
        width: 100%;
        max-width: 358px;
        height: auto;
        object-fit: cover;
        object-position: center;
        display: block;
        margin: 0 auto;
        border-radius: 15px;
    }
    
    .subpage-hero .btn {
        margin-top: 20px;
        padding: 12px 35px;
        font-size: 1rem;
    }
}

/* Media query dla bardzo małych telefonów */
@media (max-width: 480px) {
    .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 .hero-image img {
        width: 100%;
        max-width: 358px;
        height: auto;
        object-fit: cover;
        object-position: center;
        display: block;
        margin: 0 auto;
        border-radius: 15px;
    }
    
    .subpage-hero .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
}

/* =======================================================
   DODATKOWE MEDIA QUERIES DLA KONKRETNYCH ROZMIARÓW ZDJĘĆ
   ======================================================= */

/* Do 375px szerokości - zdjęcie 280x280px */
@media (max-width: 375px) {
    .subpage-hero .hero-image img {
        width: 280px !important;
        height: 280px !important;
        max-width: 280px !important;
        object-fit: cover;
        object-position: center;
        display: block;
        margin: 0 auto;
        border-radius: 15px;
    }
}

/* Od 376px do 400px - zdjęcie 320x320px */
@media (min-width: 376px) and (max-width: 400px) {
    .subpage-hero .hero-image img {
        width: 320px !important;
        height: 320px !important;
        max-width: 320px !important;
        object-fit: cover;
        object-position: center;
        display: block;
        margin: 0 auto;
        border-radius: 15px;
    }
}

/* Od 401px do 450px - zdjęcie 360x360px */
@media (min-width: 401px) and (max-width: 450px) {
    .subpage-hero .hero-image img {
        width: 360px !important;
        height: 360px !important;
        max-width: 360px !important;
        object-fit: cover;
        object-position: center;
        display: block;
        margin: 0 auto;
        border-radius: 15px;
    }
}

/* =======================================================
   HERO SECTION - PLAN TRENINGOWY (dopasowane do wzorca)
   ======================================================= */

/* TABLETY ≤ 992px */
@media (max-width: 992px) {
  .subpage-hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 30px 40px;
  }

  .subpage-hero .hero-container {
    grid-template-columns: 1fr; /* obraz nad tekstem */
    gap: 40px;
    text-align: center;
  }

  .subpage-hero .hero-image { order: -1; }

  .subpage-hero .hero-image img {
    width: 100%;
    max-width: 358px;
    height: auto;
    border-radius: 15px;
    margin: 0 auto;
  }

  .subpage-hero .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
  }

  
}

/* SMARTFONY ≤ 768px */
@media (max-width: 768px) {
  .subpage-hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 20px 40px;
  }

  .subpage-hero .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .subpage-hero .hero-content p {
    margin: 0 auto 12px;
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .subpage-hero .btn {
    margin-top: 20px;
    padding: 12px 35px;
    font-size: 1rem;
  }
}

/* TELEFONY ≤ 480px */
@media (max-width: 480px) {
  .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;
  }
}

/* STOPNIOWE ZMNIEJSZANIE OBRAZU */
@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; }
}

/* HERO SECTION - poprawione spacingi jak w "Prowadzenie Online" */

/* TABLETY ≤ 992px */
@media (max-width: 992px) {
  .subpage-hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 30px 40px; /* więcej od boków */
  }

  .subpage-hero .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .subpage-hero .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
  }

  
}

/* SMARTFONY ≤ 768px */
@media (max-width: 768px) {
  .subpage-hero {
    padding: 100px 20px 40px;
  }

  .subpage-hero .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  
}

/* TELEFONY ≤ 480px */
@media (max-width: 480px) {
  .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;
  }

  
}
/* HERO CONTENT - zwarty tekst jak we wzorcu */

/* TABLETY ≤ 992px */
@media (max-width: 992px) {
  .subpage-hero .hero-content p {
    max-width: 500px;
    margin: 0 auto 15px;
    font-size: 1rem;
    line-height: 1.6;   /* ciaśniej niż 1.8 */
    padding: 0 10px;    /* lekki wewnętrzny margines */
  }
}

/* SMARTFONY ≤ 768px */
@media (max-width: 768px) {
  
}

/* TELEFONY ≤ 480px */
@media (max-width: 480px) {
  .subpage-hero .hero-content p {
    max-width: 400px;
    margin: 0 auto 10px;
    font-size: 0.9rem;
    line-height: 1.5;   /* jeszcze ciaśniej */
    padding: 0 6px;
  }
}

/* BARDZO MAŁE TELEFONY ≤ 375px */
@media (max-width: 375px) {
  .subpage-hero .hero-content p {
    max-width: 340px;
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

/* =======================================================
   HERO CONTENT PARAGRAPH - identyczny jak we wzorcu
   ======================================================= */

/* TABLETY ≤ 992px */
@media (max-width: 992px) {
  .subpage-hero .hero-content p {
    max-width: 500px;
    margin: 0 auto 15px;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 10px;
  }
}

/* SMARTFONY ≤ 768px */
@media (max-width: 768px) {
  .subpage-hero .hero-content p {
    max-width: 460px !important;
    margin: 0 auto 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 8px;
  }
}

/* TELEFONY ≤ 480px */
@media (max-width: 481px) {
  .subpage-hero .hero-content p {
    max-width: 360px !important;
    margin: 0 auto 0;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 6px;
  }
}

/* BARDZO MAŁE TELEFONY ≤ 375px */
@media (max-width: 376px) {
  .subpage-hero .hero-content p {
    max-width: 320px !important;
    margin: 0 auto 8px;
    font-size: 0.88rem;
    line-height: 1.5;
    padding: 0 5px;
  }
}

/* =========================
   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;
    }
}