/* Глобальні стилі */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #3d8b40;
    --primary-light: #A5D6A7;
    --secondary-color: #FFA000;
    --dark-color: #333333;
    --light-color: #f9f9f9;
    --white-color: #ffffff;
    --light-gray: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Pacifico', cursive;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 4rem 0;
    position: relative;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
    z-index: 0;
}

.btn:hover::before {
    width: 200px;
    height: 200px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--dark-color);
    border-color: var(--primary-light);
}

/* Заголовок сайту */
.header {
    position: sticky;
    top: 0;
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
}

.logo-svg {
    margin-right: 0.5rem;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Герой-секція */
.hero {
    padding: 6rem 0 8rem;
    background-color: var(--light-color);
    overflow: hidden;
    position: relative;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    position: relative;
}

.image-collage {
    position: relative;
    width: 100%;
    height: 400px;
}

.collage-img {
    position: absolute;
    border-radius: 20px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.img1 {
    width: 65%;
    height: 65%;
    top: 0;
    left: 0;
    z-index: 3;
    border: 5px solid var(--white-color);
}

.img2 {
    width: 50%;
    height: 50%;
    bottom: 0;
    left: 10%;
    z-index: 2;
    border: 5px solid var(--white-color);
}

.img3 {
    width: 60%;
    height: 60%;
    top: 20%;
    right: 0;
    z-index: 1;
    border: 5px solid var(--white-color);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider.inverted {
    transform: rotate(180deg);
    bottom: auto;
    top: 0;
}

/* Переваги */
.benefits {
    background-color: var(--white-color);
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    margin: 0 auto 1.5rem;
    width: 64px;
    height: 64px;
}

/* Програми */
.programs {
    background-color: var(--light-color);
    position: relative;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background-color: var(--white-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.program-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-content {
    padding: 1.5rem;
}

.program-level {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.program-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Харчування */
.nutrition {
    background-color: var(--white-color);
    position: relative;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.nutrition-card {
    background-color: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nutrition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.nutrition-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.nutrition-content {
    padding: 1.5rem;
}

.calorie-info {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.nutrition-guide {
    margin-top: 3rem;
}

.nutrition-guide h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.weekly-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.day-menu {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.day-menu h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.day-menu ul {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.day-menu li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.label-guide {
    margin-top: 4rem;
}

.label-guide h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.label-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.label-tip {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tip-icon {
    flex-shrink: 0;
}

/* Відгуки */
.testimonials {
    background-color: var(--light-color);
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.testimonial-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.testimonial-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 700;
    text-align: right;
    color: var(--primary-color);
}

/* Контакт */
.contact {
    background-color: var(--white-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    flex-shrink: 0;
}

.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-container input {
    width: auto;
    margin-right: 8px;
}

/* Футер */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-item {
    flex: 1 1 200px;
}

.footer-item h3 {
    color: var(--white-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: var(--white-color);
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-svg {
    margin-right: 0.5rem;
}

.footer-logo span {
    color: var(--white-color);
}

.footer-nav, .diet-links, .legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a, .diet-links a, .legal-links a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-nav a:hover, .diet-links a:hover, .legal-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.scroll-top a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white-color);
}

.scroll-top a:hover {
    color: var(--primary-light);
}

/* Адаптивність */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .image-collage {
        height: 350px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-container {
        justify-content: center;
    }
    
    .image-collage {
        height: 300px;
    }
    
    .img1, .img2, .img3 {
        border-width: 3px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .image-collage {
        height: 250px;
    }
    
    .benefits-grid, .program-cards, .nutrition-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .weekly-menu {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 375px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .weekly-menu {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 4rem 0 6rem;
    }
    
    .image-collage {
        height: 220px;
    }
}