/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --accent-color: #FF9800;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Mobile First */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fb 0%, #e8ecf1 50%, #dde5ed 100%);
    min-height: auto;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(76, 175, 80, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    text-align: center;
    order: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-image {
    order: 2;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 650px;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover img {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(0, 0, 0, 0.08);
}

.hero-text {
    order: 3;
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
    text-align: center;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    padding-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    width: auto;
    min-width: 200px;
    padding: 14px 32px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-bottom: 1rem;
}

.hero-buttons .btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-danger {
    background-color: #f44336;
    color: var(--white);
}

.btn-danger:hover {
    background-color: #da190b;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Page Sections */
.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    text-align: center;
}

.about-section,
.download-section,
.contacts-section {
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Download Section */
.download-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.download-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.download-box {
    background-color: var(--light-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.download-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.download-box p {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Contacts Section */
.contacts-simple {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contacts-simple p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

.contacts-simple strong {
    color: var(--dark-color);
    font-weight: 600;
    margin-right: 0.5rem;
}

.contacts-simple a {
    color: var(--primary-color);
    text-decoration: none;
}

.contacts-simple a:hover {
    text-decoration: underline;
}

/* Privacy Section */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.privacy-content h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.privacy-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.privacy-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.privacy-content strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 0;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-link {
    color: var(--white);
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 1;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: scale(0.8);
    padding: 0;
}

.scroll-to-top::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid var(--white);
    margin-top: -3px;
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.scroll-to-top:hover {
    background-color: #45a049;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
    transform: scale(0.95);
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #f44336;
    margin-top: 1rem;
    text-align: center;
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.status-message.success {
    background-color: #4CAF50;
    color: var(--white);
}

.status-message.error {
    background-color: #f44336;
    color: var(--white);
}

/* Admin Page */
.admin-page {
    background-color: var(--light-color);
    min-height: 100vh;
}

.admin-nav {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 1rem 0;
}

.admin-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav h2 {
    color: var(--white);
}

.admin-nav .btn {
    margin-left: 1rem;
}

.admin-main {
    padding: 2rem 0;
}

.admin-section {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.admin-section h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.admin-section h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.file-upload-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 10px;
}

.file-upload-section input[type="file"] {
    margin-bottom: 1rem;
    width: 100%;
    padding: 10px;
}

.upload-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
}

.upload-status.success {
    background-color: #4CAF50;
    color: var(--white);
}

.upload-status.error {
    background-color: #f44336;
    color: var(--white);
}

.admin-section input[type="radio"] {
    margin-right: 0.5rem;
    margin-left: 1rem;
}

/* About Short Section - Mobile First */
.about-short-section {
    padding: 1rem 0;
    background-color: var(--white);
}

.about-short-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-short-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: bold;
}

.about-short-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.about-short-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
    align-items: stretch;
}

.stat-item {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--white);
    white-space: nowrap;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* Workouts Section */
.workouts-section {
    padding: 2rem 0;
    background-color: var(--light-color);
}

.workout-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.workout-item:last-child {
    margin-bottom: 0;
}

.workout-text {
    flex: 1;
    width: 100%;
    padding: 1rem 0;
}

.workout-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.workout-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.workout-image {
    flex: 1;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.workout-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 250px;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 700;
}

.cta-section .btn:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-section .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design - Desktop */
@media (min-width: 769px) {
    .hero {
        padding: 5rem 0;
        min-height: auto;
    }

    .hero-content {
        max-width: 1000px;
        margin: 0 auto;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
        font-weight: 800;
        letter-spacing: -0.04em;
        margin-bottom: 2rem;
        line-height: 1.15;
    }

    .hero-image {
        margin-bottom: 2rem;
        animation: fadeIn 0.8s ease-out;
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image img {
        border-radius: 30px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.06);
    }

    .hero-subtitle {
        font-size: 1.75rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.3rem;
        line-height: 1.85;
        max-width: 750px;
        font-weight: 400;
    }

    .hero-buttons {
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        min-width: 220px;
        padding: 16px 36px;
        font-size: 1.1rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .hero-buttons .btn:hover {
        background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    }

    .about-short-content {
        text-align: center;
    }

    .about-short-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .about-short-text p {
        font-size: 1.1rem;
    }

    .workout-item {
        flex-direction: row;
        gap: 3rem;
    }

    .workout-item.reverse {
        flex-direction: row-reverse;
    }

    .workout-text {
        width: auto;
    }

    .workout-image {
        width: auto;
        min-width: 400px;
        max-width: 500px;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }


    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .workouts-section {
        padding: 2rem 0;
    }

    .workout-item {
        margin-bottom: 2.5rem;
        gap: 1.5rem;
    }

    .workout-text {
        padding: 0.5rem 0;
    }

    .workout-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .workout-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .workout-image img {
        min-height: 200px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-section .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .admin-nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-nav .btn {
        margin: 0.5rem 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-image {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        min-width: 180px;
        padding: 13px 28px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .stats-section {
        padding: 2.5rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .about-short-section {
        padding: 1rem 0;
    }

    .about-short-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .about-short-text p {
        font-size: 1.1rem;
    }

    .features {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .workouts-section {
        padding: 1.5rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .cta-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}
