/* 
* Dignified Dining Planners - Main Stylesheet
* Адаптивный современный сайт на украинском языке для услуг планирования питания пенсионерам
*/

/* Основные настройки */
:root {
    --primary-color: #008042;
    --secondary-color: #5e1224;
    --dark-color: #1a1a1a;
    --light-color: #f8f8f8;
    --coconut-white: #fbfbf7;
    --text-color: #333333;
    --light-green: #e8f5e9;
    --dark-green: #006030;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
    --footer-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--coconut-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Caveat', cursive;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--dark-color);
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
}

h2 {
    font-size: 2.6rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-green);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
    position: relative;
}

/* Общие компоненты */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 128, 66, 0.25);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 128, 66, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-green);
    color: var(--dark-green);
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 16px;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
}

.btn-tertiary:hover {
    background-color: var(--light-green);
    color: var(--dark-green);
    padding-left: 24px;
}

/* Header */
.site-header {
    background-color: var(--coconut-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-icon {
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover:after {
    width: 100%;
}

.nav-icon {
    margin-right: 8px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 85vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--dark-color);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.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: 90px;
    transform: rotateY(180deg);
}

.wave-divider path {
    fill: var(--light-color);
}

/* About Section */
.about {
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Services Section */
.services {
    background-color: var(--coconut-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 25px;
}

/* Portion Guide Section */
.portion-guide {
    background-color: var(--light-color);
}

.portion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.portion-list {
    list-style: none;
    margin: 25px 0;
}

.portion-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.portion-list svg {
    flex-shrink: 0;
    margin-right: 15px;
    margin-top: 3px;
}

/* Recipes Section */
.recipes {
    background-color: var(--coconut-white);
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.recipe-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.recipe-image {
    position: relative;
}

.recipe-difficulty {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.recipe-difficulty.easy {
    color: #4CAF50;
}

.recipe-difficulty.medium {
    color: #FF9800;
}

.recipe-difficulty.hard {
    color: #F44336;
}

.recipe-difficulty svg {
    margin-right: 5px;
}

.recipe-content {
    padding: 25px;
}

.recipe-description {
    margin-bottom: 15px;
    color: #666;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.recipe-time, .recipe-calories {
    display: flex;
    align-items: center;
}

.recipe-time svg, .recipe-calories svg {
    margin-right: 5px;
}

/* Nutrition Plate Section */
.nutrition-plate {
    background-color: var(--light-color);
}

.plate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.plate-list {
    list-style: none;
    margin: 25px 0;
}

.plate-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.plate-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.plate-item-icon.green {
    background-color: #e8f5e9;
    color: #4CAF50;
}

.plate-item-icon.orange {
    background-color: #FFF3E0;
    color: #FF9800;
}

.plate-item-icon.red {
    background-color: #FFEBEE;
    color: #F44336;
}

.plate-item-icon.yellow {
    background-color: #FFFDE7;
    color: #FFD600;
}

/* Myths Section */
.myths {
    background-color: var(--coconut-white);
}

.myths-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.myth-item {
    margin-bottom: 30px;
}

.myth-item h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.myth-item h3 svg {
    margin-right: 10px;
}

/* Labels Guide Section */
.labels-guide {
    background-color: var(--light-color);
}

.labels-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.labels-list {
    counter-reset: labels-counter;
    list-style: none;
    margin: 25px 0;
}

.labels-list li {
    counter-increment: labels-counter;
    margin-bottom: 20px;
}

.labels-list h3 {
    position: relative;
    padding-left: 40px;
    margin-bottom: 10px;
}

.labels-list h3:before {
    content: counter(labels-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    background-color: var(--coconut-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-details {
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item svg {
    margin-right: 15px;
}

.contact-schedule {
    margin-top: 25px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
}

.testimonial-text:before,
.testimonial-text:after {
    content: '"';
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo p {
    margin-top: 15px;
}

.footer-links,
.footer-education,
.footer-policies {
    margin-left: 0;
}

.footer-links h3,
.footer-education h3,
.footer-policies h3 {
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3:after,
.footer-education h3:after,
.footer-policies h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul,
.footer-education ul,
.footer-policies ul {
    list-style: none;
    margin: 0;
}

.footer-links li,
.footer-education li,
.footer-policies li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-education a,
.footer-policies a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-education a:hover,
.footer-policies a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* Policy Pages Styles */
.policy-header {
    background-color: var(--light-green);
    text-align: center;
    padding: 80px 0 120px;
}

.policy-updated {
    font-style: italic;
    color: #666;
}

.policy-content {
    background-color: var(--coconut-white);
    padding: 60px 0;
}

.policy-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

.policy-nav {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 100px;
}

.policy-nav h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.policy-nav ul {
    list-style: none;
    margin: 0 0 30px 0;
}

.policy-nav li {
    margin-bottom: 8px;
}

.policy-nav a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.policy-nav a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.policy-section {
    margin-bottom: 50px;
}

.policy-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.policy-section p {
    margin-bottom: 20px;
}

.policy-list {
    margin-bottom: 20px;
}

.policy-list li {
    margin-bottom: 10px;
}

/* Cookies Policy Specific Styles */
.cookies-header {
    background-color: #e3f2fd;
}

.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.cookie-type {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cookie-type h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.cookie-uses,
.third-party-cookies,
.browser-instructions {
    margin-bottom: 25px;
}

.cookie-uses li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.cookie-uses svg {
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 3px;
}

/* Terms Page Specific Styles */
.terms-header {
    background-color: #f3e5f5;
}

.terms-list {
    margin-bottom: 20px;
}

.terms-list li {
    margin-bottom: 10px;
}

/* Thank You Page Styles */
.thankyou {
    background-color: var(--light-green);
    text-align: center;
    padding: 80px 0 120px;
}

.thankyou-content {
    max-width: 800px;
    margin: 0 auto;
}

.thankyou-icon {
    margin: 0 auto 30px;
    width: 120px;
    height: 120px;
}

.thankyou-message {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.thankyou-details {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
    text-align: left;
}

.thankyou-steps {
    list-style: none;
    margin: 30px 0 0 0;
}

.thankyou-steps li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 5px;
}

.thankyou-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.newsletter {
    background-color: var(--coconut-white);
    padding: 60px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    margin-top: 30px;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Media Queries */
@media (max-width: 1024px) {
    .about-content,
    .portion-content,
    .plate-content,
    .myths-content,
    .labels-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .policy-grid {
        grid-template-columns: 1fr;
    }
    
    .policy-nav {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .thankyou-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .recipe-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-types {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
}