/* Base styles */
:root {
    --primary-color: #2A7B50;
    --primary-light: #3D8C61;
    --primary-dark: #1A472A;
    --secondary-color: #2A6B50;
    --dark-color: #1a1a1a;
    --light-color: #fafafa;
    --grey-color: #f2f2f2;
    --grey-dark: #666;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 8px;
    --max-width: 1200px;
    --heading-font: 'Spectral', serif;
    --body-font: 'IBM Plex Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(odd) {
    background-color: var(--light-color);
}

section:nth-child(even) {
    background-color: var(--grey-color);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider.reverse {
    transform: rotate(180deg);
    top: 0;
    bottom: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 3px 10px rgba(42, 123, 80, 0.3);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 123, 80, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

.wide-btn {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 100;
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--light-color);
    z-index: 101;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-close {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.mobile-close span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    position: absolute;
    top: 50%;
}

.mobile-close span:first-child {
    transform: rotate(45deg);
}

.mobile-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

/* Hero section */
.hero {
    padding: 150px 0 100px;
    background-color: var(--light-color);
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-image:hover {
    transform: rotate(0);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Welcome section */
.welcome-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.welcome-image {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(-2deg);
}

.welcome-text {
    flex: 1;
}

/* Programs section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background-color: var(--light-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.program-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.program-features {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.program-features li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.program-features li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 8px;
}

/* Benefits section */
.benefits-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.benefits-text {
    flex: 1;
    min-width: 300px;
}

.benefits-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.benefits-list {
    margin-top: 20px;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.benefit-icon {
    margin-top: 3px;
}

.expert-opinion {
    background-color: rgba(42, 123, 80, 0.05);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.expert-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.expert-quote {
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -15px;
    left: -15px;
    opacity: 0.1;
}

.quote-icon.small {
    width: 20px;
    height: 20px;
    top: -10px;
    left: -10px;
}

blockquote {
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    font-style: normal;
    color: var(--primary-color);
}

/* Trainers section */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.trainer-card {
    background-color: var(--light-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.trainer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.trainer-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.05);
}

.trainer-info {
    padding: 20px;
}

.trainer-specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.trainer-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.trainer-certification {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--grey-dark);
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Gallery section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 200px;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.testimonial-content {
    position: relative;
}

/* Contact section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper {
    background-color: var(--light-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 123, 80, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-block {
    display: flex;
    gap: 15px;
    background-color: var(--light-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
    flex-shrink: 0;
}

.info-text h3 {
    margin-bottom: 5px;
}

.info-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    color: var(--light-color);
    margin-bottom: 0;
}

.footer-slogan {
    opacity: 0.7;
}

.footer-nav-block h4 {
    color: var(--light-color);
    margin-bottom: 20px;
    position: relative;
}

.footer-nav-block h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #bbb;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--light-color);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1100px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-info {
        grid-column: span 3;
        margin-bottom: 20px;
    }
}

@media (max-width: 900px) {
    .hero-content,
    .welcome-content {
        flex-direction: column-reverse;
    }
    
    .benefits-content {
        flex-direction: column;
    }
    
    .expert-opinion {
        flex-direction: column;
        text-align: center;
    }
    
    .quote-icon {
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-icon {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-info {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        grid-column: span 1;
    }
    
    .testimonial-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}