body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f9f9f9; }
#catalog-page { padding: 20px; max-width: 1200px; margin: 0 auto; }
.grid { display: flex; gap: 20px; flex-wrap: wrap; }
.workout-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.workout-title { font-size: 1.5em; font-weight: bold; margin-bottom: 10px; color: #333; }
.tags { margin-bottom: 15px; }
.tag { 
    background-color: #e2e8f0; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 0.8em; 
    margin-right: 5px;
}
.exercises-list { padding-left: 20px; color: #555; }

/* Стилі для картинок тренувань */
.workout-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Стилі для панелі фільтрів */
.filters-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-btn {
    padding: 8px 16px;
    border: 1px solid #007bff;
    background-color: white;
    color: #007bff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}
.filter-btn:hover { background-color: #f0f8ff; }
.filter-btn.active {
    background-color: #007bff;
    color: white;
}

/* Стилі для зеленої кнопки "Почати" на картках */
.start-workout-btn {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: 0.3s;
}
.start-workout-btn:hover { background-color: #218838; }

/* Стилі для модального вікна таймера */
.modal {
    display: none; /* Приховано за замовчуванням */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 24px; font-weight: bold; color: #888; cursor: pointer; }
.close-btn:hover { color: #333; }
.timer-display { font-size: 4em; font-weight: bold; margin: 20px 0; color: #007bff; font-variant-numeric: tabular-nums; }
.timer-controls { display: flex; gap: 10px; justify-content: center; }

/* ================================
   СТИЛІ ГОЛОВНОЇ СТОРІНКИ (HERO)
   ================================ */
.hero-section {
    position: relative;
    height: 100vh; /* Висота рівно на весь екран */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80'); /* Атмосферне темне фото */
    background-size: cover;
    background-position: center;
    color: white;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65); /* Затемнення, щоб текст гарно читався */
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero-title { font-size: 4em; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px; }
.hero-subtitle { font-size: 1.5em; margin-bottom: 30px; color: #ddd; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-btn {
    background-color: #ff4757;
    color: white;
    padding: 16px 45px;
    font-size: 1.2em;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}
.cta-btn:hover { background-color: #ff6b81; transform: scale(1.05); }