/* =========================================================
   HERO / HOME - MOBILE OPTIMIZED
   ========================================================= */

/* Reset */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

main {
  margin: 0 !important;
  padding: 0 !important;
}

.home {
  height: 100vh;
  background-image: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), url('../photos/tłohero2.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.home-content {
  padding: 0 0 80px 8vw;
  color: var(--white);
  width: 100%;
  max-width: 600px;
}

.home-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.home-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 300;
  line-height: 1.5;
}

/* Następna sekcja bez przerwy */
.about-me {
  margin-top: 0 !important;
  padding-top: 40px;
}

/* MOBILE */
@media (max-width: 768px) {
  .home {
    height: 110svh !important;
  }
  
  .home-content {
    padding: 0 20px 120px 20px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  
  .home-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0;
  }
  
  .home-content p {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    line-height: 1.4;
    margin-bottom: 25px;
    }
  
  .home-content .btn {
    padding: 12px 30px;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    align-self: flex-start;
  }
}

/* BARDZO MAŁE EKRANY */
@media (max-width: 576px) and (max-height: 700px) {
  .home {
    height: 110svh !important;
  }
  
  .home-content {
    padding: 0 20px 100px 20px;
  }
  
  .home-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 12px;
  }
  
  .home-content p {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    margin-bottom: 20px;
  }
  
  .home-content .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

/* EKRANY POZIOME */
@media (max-width: 992px) and (orientation: landscape) {
  .home {
    height: 110svh !important;
  }
  
  .home-content {
    padding: 0 20px 80px 20px;
  }
  
  .home-content h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 10px;
  }
  
  .home-content p {
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    margin-bottom: 15px;
  }
  
  .home-content .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
  }
}

/* =========================================================
   ABOUT ME SECTION - MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .about-me {
    flex-direction: column;
    padding: 80px 20px 60px;
    gap: 0;
    min-height: auto;
  }
  
  .about-me-image {
    flex-basis: auto;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
  }
  
  .about-me-image img {
    width: 358px;
    height: 358px;
    margin: 0 auto;
    display: block;
  }
  
  .about-me-content {
    flex-basis: auto;
    text-align: center;
    align-items: center;
  }
  
  .about-me-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .about-me-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
  }
  
  .about-me-content .btn {
    margin-top: 10px;
  }
}

/* MNIEJSZE EKRANY - zmniejszenie zdjęcia */
@media (max-width: 450px) {
  .about-me-image img {
    width: 360px !important;
    height: 360px !important;
  }
}

@media (max-width: 400px) {
  .about-me-image img {
    width: 320px !important;
    height: 320px !important;
  }
}

@media (max-width: 375px) {
  .about-me-image img {
    width: 280px !important;
    height: 280px !important;
  }
}

@media (max-width: 480px) {
  .about-me {
    padding: 70px 15px 50px;
  }
  
  .about-me-content h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  .about-me-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* =========================================================
   GOALS SECTION - MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .goals-section {
    padding: 60px 20px 40px;
  }
  
  .goals-section .section-header {
    margin-bottom: 30px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .pre-title {
    position: static;
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .goals-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 358px;
    margin: 0 auto;
  }
  
  .goal-card {
    width: 358px;
    height: 358px;
    aspect-ratio: 1 / 1;
  }
  
  .goal-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .btn-container {
    margin-top: 30px;
  }
}

/* MNIEJSZE EKRANY */
@media (max-width: 450px) {
  .goals-container {
    max-width: 360px;
  }
  
  .goal-card {
    width: 360px;
    height: 360px;
  }
}

@media (max-width: 400px) {
  .goals-container {
    max-width: 320px;
  }
  
  .goal-card {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 375px) {
  .goals-container {
    max-width: 280px;
  }
  
  .goal-card {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .goals-section {
    padding: 70px 15px 50px;
  }
  
  .section-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  .goal-card h3 {
    font-size: 1.2rem;
  }
}

/* Efekt klikania kafli */
@media (max-width: 768px) {
  .goal-card {
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(31, 141, 79, 0.2);
  }
  
  .goal-card:active {
    transform: scale(0.98);
  }
  
  .goal-card:hover {
    transform: none;
  }
  
  .goal-card:hover h3 {
    transform: none;
  }
}

/* =========================================================
   BENEFITS / ROADMAP SECTION - MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .roadmap-section {
    padding: 80px 20px 60px;
    background-image: url('');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
  }
  
  .roadmap-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(249, 249, 249, 0.95);
    z-index: 0;
  }
  
  .roadmap-section > * {
    position: relative;
    z-index: 1;
  }
  
  .roadmap-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 358px;
    margin: 0 auto;
  }
  
  .benefit-item {
    width: 100%;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
  }
  
  .benefit-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }
  
  .benefit-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .benefit-content p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

/* =========================================================
   TESTIMONIALS SECTION - MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .testimonials-section {
    padding: 80px 0 60px;
    overflow: visible;
  }
  
  .testimonials-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-align: center;
    padding: 0 20px;
  }
  
  /* Ukryj drugi kontener */
  .carousel-container:nth-child(3) {
    display: none;
  }
  
  /* Pierwszy kontener - główny slider */
  .carousel-container:nth-child(2) {
    width: 100%;
    overflow: visible !important;
    mask-image: none !important;
    margin-bottom: 0;
    padding: 20px 0;
  }
  
  .carousel-track {
    display: flex;
    gap: 30px;
    animation: none !important;
    transition: transform 0.4s ease-out;
    padding: 0 !important;
  }
  
  .testimonial-card {
    width: 280px !important;
    min-width: 280px !important;
    height: 260px !important; /* ✅ ZMNIEJSZONO Z 320px NA 260px */
    flex-shrink: 0;
    padding: 20px 18px; /* ✅ ZMNIEJSZONO PADDING */
  }
  
  .testimonial-card .card-header {
    gap: 12px; /* ✅ ZMNIEJSZONO GAP */
    margin-bottom: 12px; /* ✅ ZMNIEJSZONO MARGINES */
  }
  
  .testimonial-card .card-header img {
    width: 55px; /* ✅ ZMNIEJSZONO AVATAR */
    height: 55px;
  }
  
  .card-author h4 {
    font-size: 1.05rem; /* ✅ MNIEJSZY FONT */
  }
  
  .card-author span {
    font-size: 0.9rem;
  }
  
  .card-body {
    padding-top: 12px; /* ✅ ZMNIEJSZONO PADDING */
  }
  
  .card-body p {
    font-size: 0.85rem; /* ✅ MNIEJSZY FONT */
    line-height: 1.5; /* ✅ MNIEJSZY LINE-HEIGHT */
    -webkit-line-clamp: 5;
  }
  
  .expand-icon {
    top: 10px;
    right: 10px;
    width: 26px; /* ✅ MNIEJSZA IKONA */
    height: 26px;
    font-size: 11px;
  }
  
  /* MODAL NA MOBILE */
  .testimonial-modal-content {
    max-width: 95%;
    max-height: 85vh;
    padding: 30px 20px;
  }
  
  .testimonial-modal-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
  }
  
  .testimonial-modal-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .testimonial-modal-avatar {
    width: 70px;
    height: 70px;
  }
  
  .testimonial-modal-name {
    font-size: 1.3rem;
  }
  
  .testimonial-modal-surname {
    font-size: 1rem;
  }
  
  .testimonial-modal-text {
    font-size: 0.95rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .testimonials-section {
    padding: 70px 0 50px;
  }
  
  .testimonials-section .section-title {
    font-size: 1.6rem;
    line-height: 1.3;
    padding: 0 15px;
  }
  
  .testimonial-card {
    width: 260px !important;
    min-width: 260px !important;
    height: 240px !important; /* ✅ ZMNIEJSZONO Z 300px NA 240px */
    padding: 18px 15px;
  }
  
  .testimonial-card .card-header img {
    width: 50px;
    height: 50px;
  }
  
  .card-body p {
    font-size: 0.8rem;
    line-height: 1.45;
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 375px) {
  .testimonial-card {
    width: 240px !important;
    min-width: 240px !important;
    height: 230px !important; /* ✅ ZMNIEJSZONO Z 280px NA 230px */
    padding: 16px 12px;
  }
  
  .card-body p {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

/* =========================================================
   TRANSFORMATIONS SECTION - MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .transformations-section {
    padding: 80px 0 60px;
    overflow: visible;
  }
  
  .transformations-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-align: center;
    padding: 0 20px;
  }
  
  .transformations-viewport {
    padding-inline: 0;
    overflow: visible;
  }
  
  .trans-window {
    overflow: visible !important;
  }
  
  .transformations-track {
    gap: 20px;
    padding: 0 !important;
  }
  
  .transformation-card {
    width: 280px !important;
    min-width: 280px !important;
    height: 280px !important;
    flex-shrink: 0;
  }
  
  .transformation-card img {
    border-radius: 15px;
  }
  
  .trans-prev,
  .trans-next {
    display: none;
  }
}

@media (max-width: 480px) {
  .transformations-section {
    padding: 70px 0 50px;
  }
  
  .transformations-section .section-title {
    font-size: 1.6rem;
    line-height: 1.3;
    padding: 0 15px;
  }
  
  .transformation-card {
    width: 260px !important;
    min-width: 260px !important;
    height: 260px !important;
  }
}

@media (max-width: 375px) {
  .transformation-card {
    width: 240px !important;
    min-width: 240px !important;
    height: 240px !important;
  }
}

/* =========================================================
   CONTACT / FOOTER SECTION - MOBILE
   ========================================================= */

@media (max-width: 992px) {
  .contact-section {
    padding: 80px 30px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .newsletter-side h3,
  .contact-info-side h3 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 70px 20px;
  }
  
  .contact-container {
    gap: 40px;
  }
  
  .newsletter-side h3,
  .contact-info-side h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .newsletter-side p,
  .contact-info-side p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
  }
  
  .newsletter-form {
    gap: 12px;
  }
  
  .newsletter-form input {
    padding: 14px;
    font-size: 0.95rem;
  }
  
  .newsletter-form .btn {
    padding: 14px 30px;
    font-size: 0.95rem;
  }
  
  .contact-details {
    margin-bottom: 25px;
  }
  
  .contact-item {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  
  .contact-item i {
    font-size: 1.3rem;
  }
  
  .footer-social-media {
    gap: 20px;
  }
  
  .footer-social-media a {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 60px 15px;
  }
  
  .contact-container {
    gap: 35px;
  }
  
  .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;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .newsletter-form input {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .newsletter-form .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .contact-item {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }
  
  .contact-item i {
    font-size: 1.2rem;
  }
  
  .footer-social-media a {
    font-size: 1.2rem;
  }
}

/* =========================
   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;
    }
}
