/* Загальні стилі */
:root {
    --color-primary: #259C3C;
    --color-secondary: #B52D6C;
    --color-accent: #7BB518;
    --color-light: #FFC857;
    --color-dark: #333333;
    --color-white: #FFFFFF;
    --color-bg-light: #F7F7F7;
    --font-heading: 'Rufina', serif;
    --font-body: 'PT Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

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: 5rem 0;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-dark);
}

.logo svg {
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--color-primary);
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    border-color: var(--color-primary);
    transform: scale(1.1);
}

/* Герой-секція */
.hero {
    padding: 8rem 0 5rem;
    position: relative;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.hero-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: rotate(0);
}

/* Про нас */
.about {
    background-color: var(--color-white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--color-bg-light);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin: 0 auto 1.5rem;
    width: 60px;
    height: 60px;
}

/* Послуги */
.services {
    background-color: var(--color-bg-light);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3, .service-card p {
    padding: 0 1.5rem;
}

.service-card h3 {
    margin-top: 1.5rem;
}

.service-card p {
    margin-bottom: 2rem;
}

.service-card .btn {
    margin: auto auto 1.5rem;
}

/* Меню */
.menu-examples {
    background-color: var(--color-white);
}

.weekly-menu {
    margin-bottom: 4rem;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.day-menu {
    background-color: var(--color-bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.day-menu:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.day-header {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-align: center;
}

.day-menu ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ddd;
}

.day-menu ul li:last-child {
    border-bottom: none;
}

/* Тарілка харчування */
.nutrition-info {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
}

.nutrition-info h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.nutrition-plate {
    max-width: 300px;
    margin: 0 auto 2rem;
}

.nutrition-text {
    max-width: 800px;
    margin: 0 auto;
}

.nutrition-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

/* Перекуси */
.healthy-snacks {
    margin-bottom: 4rem;
}

.healthy-snacks h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.snacks-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.snack-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.snack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.snack-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.snack-card h4 {
    padding: 1rem 1rem 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.calories {
    display: block;
    padding: 0 1rem 1rem;
    color: var(--color-secondary);
    font-weight: 700;
}

/* Режими харчування */
.diet-types {
    margin-bottom: 4rem;
}

.diet-types h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.diet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.diet-card {
    background-color: var(--color-bg-light);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.diet-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.diet-icon {
    margin: 0 auto 1.5rem;
    width: 50px;
    height: 50px;
}

/* Калорійна діаграма */
.calorie-chart h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.chart-content {
    max-width: 800px;
    margin: 0 auto;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 300px;
}

.chart-bar {
    width: 18%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(to top, var(--color-primary), var(--color-secondary));
    border-radius: 5px 5px 0 0;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    font-weight: 700;
    transition: all 0.5s ease;
}

.chart-bar:hover .bar-fill {
    filter: brightness(1.1);
}

.bar-label {
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

/* Контакти */
.contact {
    background-color: var(--color-bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37, 156, 60, 0.2);
}

/* Футер */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-logo svg {
    margin-right: 10px;
}

.footer-item h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-item h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-secondary);
}

.footer-item ul li {
    margin-bottom: 0.8rem;
}

.footer-item ul li a {
    color: #ddd;
    transition: all 0.3s ease;
}

.footer-item ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #ddd;
}

/* Адаптивний дизайн */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .nutrition-info {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .main-nav {
        width: 100%;
        overflow-x: auto;
    }
    
    .main-nav ul {
        width: max-content;
        padding-bottom: 5px;
    }
    
    .hero {
        padding-top: 10rem;
    }
    
    .chart-bars {
        overflow-x: auto;
        padding-bottom: 20px;
        justify-content: flex-start;
    }
    
    .chart-bar {
        min-width: 100px;
        margin-right: 20px;
    }
    
    .chart-bar:last-child {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .nav-item span {
        font-size: 0.8rem;
    }
    
    .nav-icon {
        width: 35px;
        height: 35px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-item h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Сторінка подяки */
.thank-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 2rem;
}

.thank-you h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.thank-you p {
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Сторінки політик */
.policy-page {
    padding: 8rem 0 5rem;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h1 {
    margin-bottom: 2rem;
}

.policy-content h2 {
    text-align: left;
    margin-top: 2.5rem;
}

.policy-content h2::after {
    left: 0;
    transform: none;
}

.policy-content p {
    margin-bottom: 1.5rem;
}

.policy-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.back-button {
    margin-top: 3rem;
}