/* =================================================================== */
/* */
/* KOMPLETNY I UPORZĄDKOWANY KOD DLA URZĄDZEŃ MOBILNYCH         */
/* */
/* =================================================================== */


/* === EKRANY PONIŻEJ 1200px === */
@media (max-width: 1200px) {
    .collaboration-content {
        gap: 30px;
    }
    .collaboration-text {
        padding: 40px;
    }
}


/* === EKRANY PONIŻEJ 992px (Tablety i duże telefony) === */
@media (max-width: 992px) {
    /* --- Menu mobilne --- */
    .menu-container {
        display: none;
    }
    .mobile-menu-container {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0a0f1f;
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .mobile-menu-container.active {
        transform: translateX(0);
    }
    .mobile-menu {
        padding: 80px 20px 20px;
        height: 100%;
        box-sizing: border-box;
    }
    .mobile-menu li {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .menu-item {
        display: block;
        padding: 20px 0;
        text-align: center;
        font-size: 1.5rem;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    .menu-item.active {
        color: royalblue;
        font-weight: bold;
    }
    .menu-toggle {
        display: block;
    }
    .highlight,
    .menu-item::before,
    .menu-item::after {
        display: none !important;
    }
    body.menu-open {
        overflow: hidden;
    }

    /* --- Sekcja Hero --- */
    .hero {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 50px;
    }
    .hero-bg {
        opacity: 0.5;
        background-position: 25% center;
        background-size: contain;
    }
    .hero-content {
        max-width: 100%;
        margin-top: 150px;
        padding: 20px;
        background: rgba(10, 15, 30, 0.7);
        border-radius: 10px;
    }
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    .hero-btn,
    .hero-btn-secondary {
        width: 100%;
        margin-left: 0;
    }

    /* --- Sekcja O Mnie (POPRAWIONA) --- */
    .about-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .about-container {
        margin: 0 auto;
        padding: 0 20px;
    }
    .about-text {
        width: 100%;
    }
    .about-gallery-container {
        width: 100%;
        height: 500px; /* Zwiększona wysokość */
        max-height: 500px;
    }

    /* --- Sekcja Usługi --- */
    .coaching-grid {
        grid-template-columns: 1fr;
    }
    .coaching-offer {
        max-width: 600px;
        margin: 0 auto 50px auto;
    }
    .benefits-title {
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }
    .benefits-title::after {
        left: 0;
        transform: none;
    }

    /* --- Sekcja Rezerwacja --- */
    .booking-section {
        padding: 60px 0;
    }
    .booking-container {
        padding: 0 15px;
        max-width: 100%;
    }
    .booking-grid {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }
    .booking-calendar, .booking-form {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 50, 0.3);
        border: 1px solid rgba(65, 105, 225, 0.3);
    }
    .month-year {
        font-size: 1.4rem;
    }
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    .day {
        height: 45px;
        font-size: 16px;
    }
    .time-slot {
        padding: 10px 16px;
        font-size: 16px;
    }

    /* --- Sekcja Współpraca --- */
    .collaboration-section {
        padding: 60px 15px;
    }
    .collaboration-container {
        max-width: 500px;
        margin: 0 auto;
        padding: 0;
    }
    .collaboration-content {
        flex-direction: column;
        min-height: auto;
        gap: 30px;
        width: 100%;
    }
    .collaboration-text {
        width: 100%;
        flex: auto;
        text-align: center;
        background: rgba(16, 22, 46, 0.8);
        border-radius: 15px;
        padding: 25px;
        border: 1px solid rgba(65, 105, 225, 0.3);
        box-shadow: 0 8px 25px rgba(0, 0, 50, 0.3);
        box-sizing: border-box;
    }
    .collaboration-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .collaboration-btn {
        margin: 0 auto;
    }
    .collaboration-image, .collaboration-gallery-container {
        width: 100%;
        flex: auto;
        height: 400px;
        order: -1;
    }
     .collaboration-image img {
        width: 100%;
        border-radius: 15px;
        border: 1px solid rgba(65, 105, 225, 0.3);
        box-shadow: 0 8px 25px rgba(0, 0, 50, 0.3);
        aspect-ratio: 1/1;
        object-fit: cover;
    }
    .collaboration-text h2 {
        font-size: 2rem;
        background: linear-gradient(to right, #ffffff, #a7c7ff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 20px;
        text-align: left;
    }
    .collaboration-text p {
        font-size: 1rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 25px;
        text-align: left;
    }
    .collaboration-btn {
        display: inline-block;
        padding: 12px 30px;
        background: linear-gradient(45deg, #0f0c29, #302b63);
        color: white;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        margin-top: 10px;
        border: none;
    }

    /* --- Sekcja Kontakt --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form-wrapper,
    .contact-info-wrapper {
        max-width: 600px;
        margin: 0 auto;
        padding: 30px;
    }
    .contact-form-wrapper .form-title,
    .contact-info-wrapper .info-title {
        font-size: 1.8rem;
    }
    .contact-form-wrapper .form-subtitle,
    .contact-info-wrapper .info-subtitle {
        font-size: 0.95rem;
    }
    .social-media {
        margin-top: 30px;
    }
    .map-placeholder {
        height: 200px;
    }
}


/* === EKRANY PONIŻEJ 768px (Standardowe telefony) === */
@media (max-width: 768px) {
    /* --- Sekcja O Mnie (POPRAWIONA) --- */
    .about-section {
        padding: 60px 0;
    }
    .about-gallery-container {
        height: 800px; /* Zwiększona wysokość */
        max-height: 800px;
    }
    .about-text {
        padding: 25px;
    }
    .achievements {
        margin-top: 20px;
    }
    .slider-button {
        padding: 8px 12px;
        font-size: 1.3rem;
    }

    /* --- Sekcja Rezerwacja --- */
    .booking-section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section-subtitle {
        margin-bottom: 40px;
    }
    .booking-calendar,
    .booking-form {
        padding: 20px;
    }

    /* --- Sekcja Współpraca --- */
    .collaboration-text {
        padding: 30px;
    }
    .collaboration-text h2 {
        font-size: 2rem;
    }
    .collaboration-image, .collaboration-gallery-container {
        height: 350px;
    }
    .photo-grid {
        gap: 15px;
    }
    .photo-overlay h3 {
        font-size: 1.2rem;
    }

    /* --- Sekcja Kontakt --- */
    .contact-section {
        padding: 80px 0;
    }
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 25px;
    }
    .contact-form textarea {
        min-height: 100px;
    }
    .info-item {
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    .info-item .icon {
        font-size: 1.8rem;
    }
    .info-item h4 {
        font-size: 1.2rem;
    }
    .info-item p {
        font-size: 0.95rem;
    }
    .social-icons a {
        font-size: 2rem;
        gap: 20px;
    }
    
    /* --- Popup --- */
    .popup-container {
        padding: 25px 20px;
        max-width: 500px;
        position: relative;
    }
    .popup-content {
        flex-direction: column;
        gap: 20px;
    }
    .popup-image {
        width: 100%;
        min-height: 200px;
    }
    .popup-text {
        text-align: center;
    }
    .popup-btn {
        display: block;
        width: fit-content;
        margin: 0 auto;
    }
    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        color: #a7c7ff;
        background-color: #302b63;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        border: 1px solid #4169E1;
        font-size: 28px;
        line-height: 1;
        padding: 0;
        margin: 0;
        cursor: pointer;
        user-select: none;
    }
}


/* === EKRANY PONIŻEJ 576px (Mniejsze telefony) === */
@media (max-width: 576px) {
    /* --- Sekcja Hero --- */
    .hero-bg {
        background-size: cover;
        background-position: 100% center;
    }
    .hero-content {
        padding: 15px;
    }
    .hero-title {
        font-size: 1.8rem;
    }

    /* --- Sekcja O Mnie (POPRAWIONA) --- */
    .about-container {
        padding: 0 15px;
    }
    .about-text {
        padding: 20px;
        border-radius: 15px;
    }
    .text-content h3 {
        font-size: 1.3rem;
    }
    .text-content p {
        font-size: 0.95rem;
    }
    .achievement-number {
        font-size: 1.3rem;
    }
    .achievement-text {
        font-size: 0.75rem;
    }
    .achievement-item {
        min-width: unset;
        flex-basis: 48%;
        margin-bottom: 10px;
    }
    .about-gallery-container {
        height: 400px; /* Zwiększona wysokość */
        max-height: 400px;
        border-radius: 15px;
    }
    .slider-button {
        padding: 6px 10px;
        font-size: 1.2rem;
    }
    .slider-button.prev {
        left: 8px;
    }
    .slider-button.next {
        right: 8px;
    }
    .dot {
        width: 8px;
        height: 8px;
    }

    /* --- Sekcja Usługi --- */
    .offer-price {
        font-size: 3.5rem;
    }
    .offer-price span {
        font-size: 1.5rem;
    }
    .offer-title {
        font-size: 1.7rem;
    }
    .feature-icon {
        font-size: 1.5rem;
        margin-right: 15px;
    }
    .feature-text {
        font-size: 1rem;
    }
    .offer-cta {
        font-size: 1rem;
        padding: 15px;
    }
    .benefits-title {
        font-size: 2rem;
    }
    .benefit-number {
        font-size: 1.5rem;
    }
    .benefit-content h4 {
        font-size: 1.2rem;
    }
    .benefit-content p {
        font-size: 0.9rem;
    }

    /* --- Sekcja Rezerwacja --- */
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .booking-calendar,
    .booking-form {
        padding: 15px;
        border-radius: 10px;
    }
    .calendar-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    .month-year {
        font-size: 1.2rem;
    }
    .nav-button {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .weekdays {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    .days-grid {
        gap: 5px;
    }
    .day {
        height: 38px;
        font-size: 0.85rem;
    }
    .time-slots h4 {
        font-size: 1.1rem;
    }
    .time-slot {
        padding: 7px 14px;
        font-size: 0.85rem;
        min-width: unset;
    }
    .form-title {
        font-size: 1.5rem;
    }
    .form-subtitle {
        font-size: 0.9rem;
    }
    .form-group label {
        font-size: 0.85rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }
    .form-note {
        font-size: 0.75rem;
    }
    
    /* --- Sekcja Współpraca --- */
    .collaboration-section {
        padding: 60px 0;
    }
    .collaboration-text {
        padding: 25px;
    }
    .collaboration-text h2 {
        font-size: 1.8rem;
    }
    .collaboration-text p {
        font-size: 1rem;
    }
    .collaboration-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .collaboration-image, .collaboration-gallery-container {
        height: 300px;
    }

    /* --- Sekcja Kontakt --- */
    .contact-section {
        padding: 60px 0;
    }
    .contact-grid {
        gap: 30px;
    }
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 20px;
        border-radius: 15px;
    }
    .contact-form-wrapper .form-title,
    .contact-info-wrapper .info-title {
        font-size: 1.6rem;
    }
    .contact-form-wrapper .form-subtitle,
    .contact-info-wrapper .info-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .contact-form .form-group {
        margin-bottom: 15px;
    }
    .contact-form .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }
    .info-item .icon {
        font-size: 1.6rem;
    }
    .info-item h4 {
        font-size: 1.1rem;
    }
    .info-item p {
        font-size: 0.9rem;
    }
    .social-icons a {
        font-size: 1.8rem;
        gap: 15px;
    }
    .map-placeholder {
        height: 180px;
        border-radius: 10px;
    }
}


/* === EKRANY PONIŻEJ 480px (Najmniejsze telefony) === */
@media (max-width: 480px) {
    /* --- Sekcja Współpraca --- */
    .collaboration-container {
        padding: 0 10px;
    }
    .collaboration-text {
        padding: 20px;
    }
    .collaboration-text h2 {
        font-size: 1.8rem;
    }
    
    /* --- Popup --- */
    .popup-container {
        padding: 20px 15px;
    }
    .popup-text h3 {
        font-size: 1.5rem;
    }
    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 8px;
        right: 8px;
    }

    /* --- Sekcja Rezerwacja --- */
     .booking-calendar,
    .booking-form {
        border-radius: 12px;
        padding: 15px;
    }
}