/* ================================================
   АДАПТИВНІ СТИЛІ ДЛЯ СТОРІНОК КЛУБУ
   Файл: responsive-club.css
   Основний CSS: styles-club.css

   Підключати в HTML ПІСЛЯ styles-club.css:
   <link rel="stylesheet" href="css/responsive.css">
   <link rel="stylesheet" href="css/responsive-club.css">

   Охоплює сторінки:
   - club.html
   - club-payment.html
   - club-dashboard.html
   - club-consent.html
   ================================================ */


/* ================================================
   ПЛАНШЕТИ — до 1024px
   ================================================ */
@media (max-width: 1024px) {

    .courses-hero {
        padding: 110px 4% 25px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .payment-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
    }

    .before-after-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}


/* ================================================
   ТЕЛЕФОНИ ТА МАЛЕНЬКІ ПЛАНШЕТИ — до 768px
   ================================================ */
@media (max-width: 768px) {
	
	
    /* --- ФУТЕР: іконки оплати переносяться на новий рядок, якщо не влазять --- */
    .footer-bottom .payment-icons {
        flex-wrap: wrap;           /* дозволяє перенос іконок на наступний рядок */
        justify-content: center;   /* іконки по центру */
    }

    /* --- HERO --- */
    .courses-hero {
        padding: 130px 5% 20px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    /* --- ТАРИФИ --- */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-price {
        font-size: 2rem;
    }

    /* --- ФОРМА ОПЛАТИ --- */
    .payment-container {
        padding: 120px 4% 30px;
    }

    .payment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Підсумок іде першим */
    .order-summary {
        order: -1;
    }

    .payment-form {
        padding: 1.2rem;
    }

    /* --- ДО/ПІСЛЯ --- */
    .before-after-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .before-after-section h2 {
        font-size: 1.4rem;
    }

    /* --- КАРУСЕЛЬ ФОТО --- */
    .photo-item {
        flex: 0 0 200px;
    }

    .photo-placeholder.square {
        height: 180px;
    }

    .carousel-btn-left {
        left: -10px;
    }

    .carousel-btn-right {
        right: -10px;
    }

    /* --- ДАШБОРД КЛУБУ --- */
    .dashboard-layout,
    .club-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        order: 2;
    }

    /* Тренування */
    .workout-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1;
        min-width: 80px;
    }

    /* Зворотній зв'язок */
    .feedback-section {
        padding: 1.2rem;
    }

    .feedback-form {
        max-width: 100%;
    }

    /* Методи оплати */
    .payment-form .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Значки безпеки */
    .security-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ================================================
   СМАРТФОНИ — до 480px
   ================================================ */
@media (max-width: 480px) {

    .courses-hero {
        padding: 140px 4% 20px;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    /* Тарифи */
    .pricing-card {
        padding: 1.2rem;
    }

    .pricing-price {
        font-size: 1.8rem;
    }

    .pricing-duration {
        font-size: 1rem;
    }

    /* Кнопка оплати */
    .payment-btn {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    /* Методи оплати */
    .payment-form .payment-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .payment-method {
        padding: 0.6rem;
        font-size: 0.75rem;
    }

    /* Тренування */
    .workout-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .workout-title {
        font-size: 1rem;
    }

    .workout-content {
        padding: 1rem;
    }

    .workout-actions {
        gap: 0.5rem;
    }

    .action-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Зірочки рейтингу */
    .star {
        font-size: 1.4rem;
    }

    /* Карусель */
    .photo-item {
        flex: 0 0 170px;
    }

    .photo-placeholder.square {
        height: 155px;
    }
}


/* ================================================
   ДУЖЕ МАЛЕНЬКІ ЕКРАНИ — до 360px
   ================================================ */
@media (max-width: 360px) {

    .hero-content h1 {
        font-size: 1.1rem;
    }

    .pricing-price {
        font-size: 1.6rem;
    }

     .payment-form .payment-methods {
        grid-template-columns: 1fr 1fr;
    }

    .action-btn {
        font-size: 0.8rem;
        min-width: 70px;
    }
}