/* Основные стили */
:root {
    --primary-color: #4caf50;
    --primary-dark: #388e3c;
    --primary-light: #c8e6c9;
    --accent-color: #ff9800;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
}

/* Основные настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Кнопки */
.btn-primary, .btn-secondary, .btn-text {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #f44336;
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--text-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.btn-text {
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 0;
}

.btn-text:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Навигация */
#header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo img, .logo svg {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style-type: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu li a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Hero Section */
#hero {
    padding: 120px 0 80px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    min-height: 400px;
}

/* О нас */
#o-nas {
    padding: 80px 0;
}

.o-nas-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.o-nas-text {
    flex: 1;
    max-width: 600px;
    padding-right: 40px;
}

.o-nas-image {
    flex: 1;
    text-align: center;
}

.o-nas-image img, .o-nas-image svg {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--bg-white);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Рецепты */
#przepisy {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.przepisy-header {
    text-align: center;
    margin-bottom: 50px;
}

.przepisy-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.przepisy-header p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.recipe-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-10px);
}

.recipe-image {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.recipe-image img, .recipe-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-content {
    padding: 20px;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.recipe-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.recipe-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.recipe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-info {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.time-info i {
    margin-right: 5px;
}

/* Blog Section */
#blog {
    padding: 80px 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-header p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

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

.blog-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-image img, .blog-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-card.featured .blog-image {
    height: 100%;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.pagination-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.pagination-item.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.pagination-dots {
    margin: 0 5px;
}

/* Рассылка */
#newsletter {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-white);
}

.newsletter-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.newsletter-text {
    flex: 1;
    padding-right: 40px;
}

.newsletter-text h2 {
    color: #f44336;
    margin-bottom: 20px;
}

.newsletter-text p {
    color: #f44336;
    opacity: 0.9;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-size: 1rem;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Контакт */
#kontakt {
    padding: 80px 0;
}

.kontakt-header {
    text-align: center;
    margin-bottom: 50px;
}

.kontakt-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.kontakt-info {
    flex: 1;
    min-width: 300px;
}

.kontakt-info h3 {
    margin-bottom: 20px;
}

.kontakt-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.kontakt-item i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.kontakt-details {
    flex: 1;
}

.kontakt-details h4 {
    margin-bottom: 5px;
}

.kontakt-details p {
    color: var(--text-secondary);
}

.kontakt-form {
    flex: 1;
    min-width: 300px;
}

.kontakt-form h3 {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Футер */
#footer {
    background-color: #333;
    color: var(--text-white);
    padding-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-logo a {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h4 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 -5px 15px var(--shadow-color);
    padding: 20px;
    z-index: 1001;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content h3 {
    margin-bottom: 10px;
}

.cookie-content p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie-primary,
.btn-cookie-secondary {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-cookie-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-cookie-primary:hover {
    background-color: var(--primary-dark);
}

.btn-cookie-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-cookie-secondary:hover {
    background-color: var(--bg-light);
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    display: none;
}

.cookie-modal-content {
    background-color: var(--bg-white);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-modal-header h3 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

.cookie-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info {
    flex: 1;
    padding-right: 20px;
}

.cookie-option-info h4 {
    margin-bottom: 5px;
}

.cookie-option-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.cookie-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-switch label::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-switch input:checked + label {
    background-color: var(--primary-color);
}

.cookie-switch input:checked + label::before {
    transform: translateX(26px);
}

.cookie-switch input:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* Статьи блога */
.article-header {
    text-align: center;
    margin-bottom: 30px;
	margin-top: 100px
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.article-featured-image img, .article-featured-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.article-content strong {
    font-weight: 700;
}

.recipe-box {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.recipe-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.recipe-ingredients, .recipe-instructions {
    margin-bottom: 20px;
}

.recipe-ingredients h4, .recipe-instructions h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Blog страница */
#blog-hero {
    padding: 150px 0 80px 0;
    background-color: var(--primary-color);
    color: var(--text-white);
}

.blog-hero-content {
    text-align: center;
}

.blog-hero-content h1 {
    color: var(--text-white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-hero-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

#blog-posts {
    padding: 80px 0;
}

/* Адаптивный дизайн */
@media (max-width: 992px) {
    .hero-text, .o-nas-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-content, .o-nas-content, .newsletter-content {
        flex-direction: column;
    }
    
    .hero-image, .o-nas-image, .newsletter-form {
        width: 100%;
    }
    
    .newsletter-text {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured .blog-image {
        height: 200px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px var(--shadow-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-text h1, .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .feature-grid, .recipe-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}