/* 
* Kelvarina Shop - Makroravinteet
* Kaikki oikeudet pidätetään
*/

/* ================ Загальні стилі ================ */
:root {
    /* Головні кольори */
    --color-bg: #f9f9f6;
    --color-text: #333;
    --color-text-light: #666;
    --color-primary: #2a9d8f;
    --color-secondary: #264653;
    --color-accent: #e76f51;
    
    /* Кольори макроелементів */
    --color-protein: #3b82f6;
    --color-fat: #10b981;
    --color-carb: #facc15;
    
    /* Інші кольори */
    --color-light: #f8f9fa;
    --color-dark: #212529;
    --color-gray: #6c757d;
    --color-success: #198754;
    --color-info: #0dcaf0;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    
    /* Тіні */
    --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);
    
    /* Переходи */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-fast: all 0.15s ease;
    
    /* Радіуси */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;
    --radius-circle: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--color-secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* ================ Хедер і навігація ================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: white;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

.menu {
    display: flex;
    gap: 1.5rem;
}

.menu li a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.menu li a:hover::after,
.menu li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

/* ================ Вступний блок ================ */
.intro-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f9f9f6 0%, #edf2f7 100%);
}

.intro-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding-top: 80px;
}

.intro-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    animation: fadeInUp 1s ease;
}

.intro-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.scroll-down-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-primary);
    font-weight: 600;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.arrow-down {
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.molecule {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(50px);
    animation: float 15s infinite ease-in-out;
}

.molecule-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(59, 130, 246, 0.2);
    top: 30%;
    left: 15%;
    animation-delay: 0s;
}

.molecule-2 {
    width: 250px;
    height: 250px;
    background-color: rgba(16, 185, 129, 0.2);
    top: 20%;
    right: 20%;
    animation-delay: 2s;
}

.molecule-3 {
    width: 200px;
    height: 200px;
    background-color: rgba(250, 204, 21, 0.2);
    bottom: 20%;
    right: 30%;
    animation-delay: 4s;
}

/* ================ Секція макроелементів ================ */
.macro-section {
    background-color: white;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tab-icon {
    font-size: 2rem;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 0;
    height: 3px;
    transition: var(--transition);
}

.tab-btn[data-tab="proteins"]::after {
    background-color: var(--color-protein);
}

.tab-btn[data-tab="fats"]::after {
    background-color: var(--color-fat);
}

.tab-btn[data-tab="carbs"]::after {
    background-color: var(--color-carb);
}

.tab-btn:hover {
    color: var(--color-text);
}

.tab-btn:hover::after {
    width: 50%;
}

.tab-btn.active {
    color: var(--color-text);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-pane {
    display: none;
    padding: 2rem;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.content-flex {
    display: flex;
    gap: 2rem;
}

.info-block {
    flex: 1;
}

.info-block h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.info-block h4 {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.info-block ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.info-block ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.info-block ul li::before {
    content: '•';
    position: absolute;
    left: -1rem;
    color: var(--color-primary);
}

.visual-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sources h5 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.source-items {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.source-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    text-align: center;
}

.source-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.source-item:hover img {
    transform: scale(1.1);
}

.source-item span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Protein Tab */
.protein-animation {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.protein-structure {
    max-width: 80%;
    max-height: 80%;
    transition: var(--transition);
}

.protein-animation:hover .protein-structure {
    transform: scale(1.1) rotate(5deg);
}

/* Fat Tab */
.fat-types {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.fat-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.fat-circle {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-circle);
    transition: var(--transition);
}

.fat-circle.red {
    background-color: #ef4444;
}

.fat-circle.green {
    background-color: #10b981;
}

.fat-circle.yellow {
    background-color: #f59e0b;
}

.fat-type:hover .fat-circle {
    transform: scale(1.1);
}

.fat-type span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.fat-type-info {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.fat-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius);
    max-width: 90%;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow);
    text-align: center;
}

.fat-info.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.fat-info h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* Carbs Tab */
.carb-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.carb-btn {
    padding: 0.75rem 1rem;
    background-color: #f1f5f9;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.carb-btn:hover {
    background-color: #e2e8f0;
}

.carb-btn.active {
    background-color: var(--color-primary);
    color: white;
}

.energy-timeline {
    width: 100%;
    padding: 2rem;
}

.energy-timeline h4 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.timeline-container {
    margin-bottom: 2rem;
}

.timeline-graph {
    height: 200px;
    position: relative;
    background-color: #f8f9fa;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.timeline-line {
    position: absolute;
    height: 3px;
    left: 0;
    bottom: 50%;
    width: 100%;
    display: none;
}

.timeline-line.active {
    display: block;
}

.taysjyva-line {
    background: linear-gradient(to right, 
        rgba(16, 185, 129, 0.5) 0%, 
        rgba(16, 185, 129, 0.8) 20%, 
        rgba(16, 185, 129, 0.9) 40%, 
        rgba(16, 185, 129, 1) 60%, 
        rgba(16, 185, 129, 0.9) 80%, 
        rgba(16, 185, 129, 0.8) 100%);
    height: 80px;
    bottom: 40px;
    border-radius: 100px;
    transform: scaleX(0);
    transform-origin: left;
    animation: growLine 1s forwards;
}

.sokeri-line {
    background: linear-gradient(to right, 
        rgba(239, 68, 68, 0.5) 0%, 
        rgba(239, 68, 68, 1) 20%, 
        rgba(239, 68, 68, 0.8) 30%, 
        rgba(239, 68, 68, 0.5) 60%, 
        rgba(239, 68, 68, 0.3) 80%, 
        rgba(239, 68, 68, 0.2) 100%);
    height: 150px;
    bottom: 25px;
    border-radius: 100px;
    transform: scaleX(0);
    transform-origin: left;
    animation: growLine 1s forwards;
}

.kasvikset-line {
    background: linear-gradient(to right, 
        rgba(16, 185, 129, 0.5) 0%, 
        rgba(16, 185, 129, 0.6) 20%, 
        rgba(16, 185, 129, 0.7) 40%, 
        rgba(16, 185, 129, 0.8) 60%, 
        rgba(16, 185, 129, 0.7) 80%, 
        rgba(16, 185, 129, 0.6) 100%);
    height: 50px;
    bottom: 55px;
    border-radius: 100px;
    transform: scaleX(0);
    transform-origin: left;
    animation: growLine 1s forwards;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.carb-descriptions {
    position: relative;
    min-height: 150px;
}

.carb-desc {
    display: none;
    animation: fadeIn 0.3s ease;
}

.carb-desc.active {
    display: block;
}

.carb-desc h5 {
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

/* ================ Секція тарілки ================ */
.plate-section {
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.plate-visualization {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.plate-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

.plate-circle {
    width: 400px;
    height: 400px;
    background-color: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.plate-segment {
    position: absolute;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.plate-segment:hover {
    transform: scale(1.05);
    z-index: 5;
}

.protein-segment {
    width: 25%;
    height: 50%;
    background-color: rgba(59, 130, 246, 0.7);
    top: 0;
    left: 25%;
    border-radius: 0 0 50% 50%;
}

.carb-segment {
    width: 25%;
    height: 50%;
    background-color: rgba(250, 204, 21, 0.7);
    top: 0;
    right: 25%;
    border-radius: 0 0 50% 50%;
}

.veggies-segment {
    width: 50%;
    height: 50%;
    background-color: rgba(16, 185, 129, 0.5);
    bottom: 0;
    left: 0;
    border-radius: 0 50% 0 0;
}

.fat-segment {
    width: 50%;
    height: 50%;
    background-color: rgba(5, 150, 105, 0.4);
    bottom: 0;
    right: 0;
    border-radius: 50% 0 0 0;
}

.segment-label {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
}

.plate-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.plate-info-content {
    display: none;
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: fadeIn 0.3s ease;
}

.plate-info-content.active {
    display: block;
}

.plate-info-content h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
}

.blue-box {
    background-color: var(--color-protein);
}

.yellow-box {
    background-color: var(--color-carb);
}

.green-box {
    background-color: var(--color-fat);
}

.light-green-box {
    background-color: rgba(5, 150, 105, 0.7);
}

/* ================ Секція прикладів ================ */
.examples-section {
    background-color: white;
}

.meal-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.meal-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.meal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.meal-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.meal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.meal-card:hover .meal-image img {
    transform: scale(1.05);
}

.meal-time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.meal-content {
    padding: 1.5rem;
}

.meal-content h3 {
    margin-bottom: 0.5rem;
}

.meal-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.macro-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.macro-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.macro-icon .icon {
    font-size: 1.5rem;
}

.macro-icon .label {
    font-size: 0.7rem;
    color: var(--color-text-light);
}

.macro-chart {
    height: 10px;
    background-color: #f1f5f9;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
}

.chart-bar {
    height: 100%;
}

.protein-bar {
    background-color: var(--color-protein);
}

.fat-bar {
    background-color: var(--color-fat);
}

.carb-bar {
    background-color: var(--color-carb);
}

.macro-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.macro-value {
    font-size: 0.85rem;
}

.value-label {
    color: var(--color-text-light);
    margin-right: 0.25rem;
}

.value-amount {
    font-weight: 600;
}

/* ================ Секція вікторини ================ */
.quiz-section {
    background: linear-gradient(135deg, #edf2f7 0%, #f9f9f6 100%);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.quiz-progress {
    padding: 1.5rem;
    background-color: var(--color-secondary);
    color: white;
}

.progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 20%;
    background-color: white;
    border-radius: 10px;
    transition: var(--transition);
}

.progress-text {
    font-size: 0.9rem;
}

.quiz-content {
    padding: 2rem;
    min-height: 400px;
}

.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.quiz-question h3 {
    margin-bottom: 2rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option:hover {
    background-color: #e2e8f0;
}

.quiz-option input {
    margin-right: 1rem;
}

.quiz-results {
    display: none;
    animation: fadeIn 0.3s ease;
}

.results-content {
    margin-bottom: 2rem;
}

.result-message {
    display: none;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-primary);
}

.result-message.active {
    display: block;
}

.download-guide {
    background-color: #f1f5f9;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
}

.download-guide h4 {
    margin-bottom: 1rem;
}

.guide-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 1.5rem auto 0;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

.quiz-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.quiz-btn:hover {
    background-color: var(--color-secondary);
}

.quiz-btn:disabled {
    background-color: var(--color-gray);
    cursor: not-allowed;
}

/* ================ Секція тарифів ================ */
.pricing-section {
    background-color: white;
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid #e2e8f0;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--color-primary);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.card-highlight {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.card-header {
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h3 {
    margin-bottom: 1rem;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.period {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.card-features {
    padding: 2rem;
}

.card-features ul {
    margin-bottom: 2rem;
}

.card-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-features li i {
    margin-right: 0.75rem;
    width: 1.5rem;
    text-align: center;
}

.card-features li.not-included {
    color: var(--color-gray);
}

.card-features li i.fa-check {
    color: var(--color-success);
}

.card-features li i.fa-times {
    color: var(--color-gray);
}

.card-btn {
    display: block;
    margin: 0 2rem 2rem;
}

/* ================ Секція підписки ================ */
.subscribe-section {
    background: url('images/subs.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    color: white;
}

.subscribe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 70, 83, 0.8);
}

.subscribe-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
}

.subscribe-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.subscribe-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.form-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ================ Секція контактів ================ */
.contact-section {
    background-color: white;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 1rem;
}

.map-container {
    flex: 1;
    min-width: 300px;
}

.map-info {
    background-color: var(--color-primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
}

.map-info h3 {
    margin-bottom: 1rem;
}

.map-info address {
    font-style: normal;
}

.map-info address p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.map-info address p i {
    margin-right: 0.75rem;
    width: 1.5rem;
    text-align: center;
}

.google-map {
    height: 350px;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

.google-map iframe {
    border: none;
}

/* ================ Футер ================ */
.footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ================ Анімації ================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes growLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ================ Медіа-запити ================ */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .intro-section h1 {
        font-size: 3rem;
    }
    
    .plate-circle {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .content-flex {
        flex-direction: column;
    }
    
    .plate-visualization {
        flex-direction: column;
    }
    
    .intro-section h1 {
        font-size: 2.5rem;
    }
    
    .intro-section h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .plate-info {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        background-color: white;
        box-shadow: var(--shadow);
        z-index: 999;
        transition: var(--transition);
        padding: 0;
        gap: 0;
    }
    
    .menu.active {
        height: auto;
        padding: 1rem 0;
    }
    
    .menu li {
        width: 100%;
        text-align: center;
    }
    
    .menu li a {
        display: block;
        padding: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .intro-section h1 {
        font-size: 2rem;
    }
    
    .intro-section h2 {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
    }
    
    .plate-circle {
        width: 300px;
        height: 300px;
    }
    
    .segment-label {
        font-size: 0.8rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input,
    .form-group button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .intro-section h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .plate-circle {
        width: 250px;
        height: 250px;
    }
    
    .segment-label {
        display: none;
    }
    
    .pricing-card {
        min-width: 100%;
    }
    
    .meal-card {
        min-width: 100%;
    }
}

/* Specific styles for the policy pages */
.policy-page {
    padding-top: 100px;
    padding-bottom: 50px;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.policy-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.policy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.policy-content p {
    margin-bottom: 1rem;
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.back-btn {
    display: inline-block;
    margin-top: 2rem;
}