/* Base Styles and Reset */
:root {
    --container-width: 1200px;
    --container-padding: 20px;
    --section-spacing: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent);
}

ul, ol {
    list-style-position: inside;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--foreground);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--muted-foreground);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--muted);
    transform: translateY(-2px);
}

.btn-cta {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.dark header {
    background-color: rgba(15, 23, 42, 0.9);
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--background);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

#main-menu {
    display: none;
}

#main-menu.active {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--background);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

#main-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

#main-menu li {
    margin: 0.5rem 0;
    text-align: center;
}

#main-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--foreground);
    font-weight: 500;
}

#main-menu a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--foreground);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.header-cta {
    display: none;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.theme-toggle:hover {
    background-color: var(--muted);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

.dark .theme-toggle .sun-icon {
    display: block;
}

.dark .theme-toggle .moon-icon {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.static-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d207258714124020.webp');
    background-size: cover;
    background-position: center;
}

.hero-content {
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content .subheadline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.benefits-list {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.benefits-list svg {
    color: var(--accent);
}

/* Programs Section */
.programs-section {
    background-color: var(--background);
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.program-card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.fitness-image {
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d2dbaca926143313.webp');
}

.yoga-image {
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d39cfd8095607700.webp');
}

.mindfulness-image {
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d476068336056293.webp');
}

.nutrizione-image {
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d5382fc280101390.webp');
}

.program-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
}

.program-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted-foreground);
}

.program-card .btn {
    margin: 0 1.5rem 1.5rem;
}

.program-details {
    display: none;
    padding: 0 1.5rem 1.5rem;
}

.program-details.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.program-details ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.program-details li {
    margin-bottom: 0.5rem;
}

/* Features Section */
.features-section {
    background-color: var(--muted);
}

.features-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    background-color: var(--card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1rem;
    color: var(--primary);
}

.testimonial-highlight {
    background-color: var(--card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-highlight::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-highlight blockquote {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-highlight cite {
    display: block;
    text-align: right;
    font-weight: 600;
    font-style: normal;
}

/* Success Stories Section */
.success-stories-section {
    background-color: var(--background);
}

.stories-carousel {
    position: relative;
    margin-bottom: 3rem;
}

.carousel-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
}

.success-story {
    background-color: var(--card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.story-images {
    height: 250px;
    position: relative;
}

.before-after-container {
    display: flex;
    height: 100%;
}

.before-image, .after-image {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.before-image {
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d5f0e27519950866.webp');
}

.after-image {
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d6b9bd4878942147.webp');
}

.story-content {
    padding: 2rem;
}

.story-content h3 {
    margin-bottom: 1rem;
}

.story-content blockquote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
}

.story-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.carousel-prev, .carousel-next {
    background: var(--card);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--foreground);
    box-shadow: var(--box-shadow);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--muted);
    cursor: pointer;
}

.carousel-dot.active {
    background-color: var(--primary);
}

/* CTA Section */
.cta-section {
    position: relative;
    color: white;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://placehold.co/1600x900/000000/FFFFFF.webp');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -1;
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

.cta-content h2, .cta-content .subheadline {
    text-align: center;
    color: white;
}

.cta-columns {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.form-column {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 2rem;
    color: var(--foreground);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background-color: var(--input);
    color: var(--foreground);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
}

.trust-column {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.trust-signals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-mini {
    font-style: italic;
    margin-top: 2rem;
}

.testimonial-mini cite {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-style: normal;
}

/* Blog Section */
.blog-section {
    background-color: var(--background);
}

.blog-header {
    margin-bottom: 2rem;
}

.search-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background-color: var(--input);
    color: var(--foreground);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-button {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-button:hover, .filter-button.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.fitness-blog-image {
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d7786e1393495290.webp');
}

.nutrizione-blog-image {
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d8281d5246720027.webp');
}

.mindfulness-blog-image {
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d8dc310027222834.webp');
}

.yoga-blog-image {
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/3/683dc5d97363d935746397.webp');
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.blog-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

.blog-meta {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.blog-content-seo {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.blog-content-seo h3, .blog-content-seo h4 {
    margin-top: 1.5rem;
}

.blog-content-seo ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-content-seo li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--card);
    color: var(--card-foreground);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--muted-foreground);
}

.footer-column a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--muted);
    color: var(--foreground);
    transition: all var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-3px);
}

address {
    font-style: normal;
    line-height: 1.8;
}

.newsletter-form .form-group {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    border-right: none;
    background-color: var(--input);
    color: var(--foreground);
}

.newsletter-form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Media Queries */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    #main-menu {
        display: block;
    }
    
    #main-menu ul {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    #main-menu li {
        margin: 0;
    }
    
    .header-cta {
        display: block;
    }
    
    .benefits-list {
        flex-direction: row;
        justify-content: center;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-columns {
        flex-direction: row;
    }
    
    .form-column, .trust-column {
        flex: 1;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-column {
        grid-column: span 2;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    }
    
    .about-column {
        grid-column: span 1;
    }
    
    .search-filter {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .search-container {
        margin: 0;
    }
}