/*
Theme Name: EpicureanCanvas_329
Theme URI: https://larevolea.com
Author: Смирнова Майя
Author URI: https://larevolea.com
Description: Откройте для себя мир вкуса: от традиционных рецептов до современных кулинарных экспериментов. Советы от шеф-повара с многолетним опытом.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: epicureancanvas
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --ec-truffle: #1A120B;
    --ec-ivory: #FDF8F0;
    --ec-bordo: #922B21;
    --ec-tomato: #C13B1B;
    --ec-olive: #6A7152;
    --ec-bordo-light: rgba(146, 43, 33, 0.12);
    --ec-shadow-soft: 0 2px 12px rgba(26, 18, 11, 0.08);
    --ec-shadow-hover: 0 8px 28px rgba(26, 18, 11, 0.14);
    --ec-radius: 3px;
    --ec-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ec-font-display: 'Playfair Display', Georgia, serif;
    --ec-font-body: 'Inter', 'Segoe UI', sans-serif;
    --ec-font-handwritten: 'Caveat', cursive;
    --ec-max-width: 1240px;
    --ec-content-wide: 85%;
    --ec-content-main: 67%;
    --ec-sidebar-width: 27%;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ec-font-body);
    color: var(--ec-truffle);
    background-color: var(--ec-ivory);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--ec-bordo);
    text-decoration: none;
    transition: color var(--ec-transition);
}

a:hover {
    color: var(--ec-tomato);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ec-font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ec-truffle);
    margin-bottom: 0.6em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.2em;
}

ul, ol {
    margin-bottom: 1.2em;
    padding-left: 1.6em;
}

blockquote {
    border-left: 4px solid var(--ec-bordo);
    padding: 1.2em 1.6em;
    margin: 1.5em 0;
    background: rgba(26, 18, 11, 0.03);
    font-style: italic;
    font-family: var(--ec-font-display);
}

blockquote p:last-child {
    margin-bottom: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

table, th, td {
    border: 1px solid rgba(26, 18, 11, 0.2);
}

th, td {
    padding: 0.7em 1em;
    text-align: left;
}

th {
    background: rgba(26, 18, 11, 0.05);
    font-family: var(--ec-font-display);
    font-weight: 600;
}

/* ============================================
   Layout
   ============================================ */
.ec-wrapper {
    max-width: var(--ec-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.ec-layout-sidebar {
    display: flex;
    gap: 4%;
    align-items: flex-start;
}

.ec-main-content {
    width: var(--ec-content-main);
    min-width: 0;
}

.ec-main-wide {
    width: var(--ec-content-wide);
    margin: 0 auto;
}

.ec-sidebar {
    width: var(--ec-sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}

/* ============================================
   Header
   ============================================ */
.ec-site-header {
    background: var(--ec-truffle);
    color: var(--ec-ivory);
    position: relative;
    z-index: 100;
}

.ec-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: var(--ec-max-width);
    margin: 0 auto;
}

.ec-logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ec-ivory);
    text-decoration: none;
    flex-shrink: 0;
}

.ec-logo-link:hover {
    color: var(--ec-ivory);
    opacity: 0.9;
}

.ec-logo-img {
    height: 48px;
    width: auto;
}

.ec-site-title {
    font-family: var(--ec-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ec-ivory);
    margin-bottom: 0;
}

.ec-site-tagline {
    font-size: 0.72rem;
    opacity: 0.6;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Navigation */
.ec-primary-nav {
    display: flex;
    align-items: center;
}

.ec-primary-nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.ec-primary-nav li {
    margin: 0;
}

.ec-primary-nav a {
    display: block;
    padding: 8px 18px;
    color: var(--ec-ivory);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all var(--ec-transition);
}

.ec-primary-nav a:hover,
.ec-primary-nav .current-menu-item a {
    border-color: var(--ec-bordo);
    color: #fff;
    background: rgba(146, 43, 33, 0.15);
}

/* Mobile toggle */
.ec-menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(253, 248, 240, 0.3);
    color: var(--ec-ivory);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

/* ============================================
   Chef Block (Under Header)
   ============================================ */
.ec-chef-greeting {
    background: linear-gradient(135deg, var(--ec-truffle) 0%, #2C1E12 100%);
    color: var(--ec-ivory);
    padding: 36px 0;
    border-bottom: 3px solid var(--ec-bordo);
}

.ec-chef-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: var(--ec-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.ec-chef-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ec-bordo);
    filter: sepia(0.4) contrast(1.1);
    flex-shrink: 0;
}

.ec-chef-text {
    flex: 1;
}

.ec-chef-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ec-bordo);
    margin-bottom: 6px;
    font-weight: 600;
}

.ec-chef-message {
    font-family: var(--ec-font-handwritten);
    font-size: 1.35rem;
    line-height: 1.5;
    color: rgba(253, 248, 240, 0.88);
}

/* ============================================
   Breadcrumbs
   ============================================ */
.ec-breadcrumbs {
    padding: 16px 0;
    font-size: 0.82rem;
    color: rgba(26, 18, 11, 0.55);
}

.ec-breadcrumbs a {
    color: var(--ec-olive);
}

.ec-breadcrumbs a:hover {
    color: var(--ec-bordo);
}

.ec-breadcrumbs .ec-crumb-sep {
    margin: 0 8px;
    opacity: 0.4;
}

/* ============================================
   Front Page Sections
   ============================================ */
.ec-hero-section {
    padding: 56px 0 40px;
    text-align: center;
}

.ec-hero-section h1 {
    font-size: 2.6rem;
    margin-bottom: 0.4em;
    color: var(--ec-truffle);
}

.ec-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(26, 18, 11, 0.65);
    max-width: 640px;
    margin: 0 auto 2.4em;
    line-height: 1.7;
}

/* Feature blocks */
.ec-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.ec-feature-card {
    background: #fff;
    border: 1px solid rgba(26, 18, 11, 0.07);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--ec-transition);
}

.ec-feature-card:hover {
    box-shadow: var(--ec-shadow-hover);
    transform: translateY(-3px);
}

.ec-feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    color: var(--ec-olive);
}

.ec-feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5em;
}

.ec-feature-card p {
    font-size: 0.9rem;
    color: rgba(26, 18, 11, 0.6);
    margin-bottom: 0;
}

/* Section heading */
.ec-section-heading {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.ec-section-heading h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
}

.ec-section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ec-bordo);
}

/* ============================================
   Post Cards Grid
   ============================================ */
.ec-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.ec-posts-grid .ec-card-article:first-child {
    grid-column: span 2;
}

.ec-card-article {
    background: #fff;
    border: 1px solid rgba(26, 18, 11, 0.06);
    overflow: hidden;
    transition: all var(--ec-transition);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(18px);
    animation: ecFadeUp 0.5s ease forwards;
}

.ec-card-article:nth-child(1) { animation-delay: 0.05s; }
.ec-card-article:nth-child(2) { animation-delay: 0.12s; }
.ec-card-article:nth-child(3) { animation-delay: 0.19s; }
.ec-card-article:nth-child(4) { animation-delay: 0.26s; }
.ec-card-article:nth-child(5) { animation-delay: 0.33s; }
.ec-card-article:nth-child(6) { animation-delay: 0.40s; }
.ec-card-article:nth-child(7) { animation-delay: 0.47s; }
.ec-card-article:nth-child(8) { animation-delay: 0.54s; }
.ec-card-article:nth-child(9) { animation-delay: 0.61s; }

@keyframes ecFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ec-card-article:hover {
    box-shadow: var(--ec-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(146, 43, 33, 0.18);
}

.ec-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.ec-posts-grid .ec-card-article:first-child .ec-card-thumb {
    aspect-ratio: 16/8;
}

.ec-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ec-card-article:hover .ec-card-thumb img {
    transform: scale(1.04);
}

.ec-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ec-bordo);
    color: #fff;
    font-size: 0.68rem;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.ec-card-body {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ec-card-meta {
    font-size: 0.76rem;
    color: var(--ec-olive);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ec-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    line-height: 1.35;
}

.ec-card-body h3 a {
    color: var(--ec-truffle);
}

.ec-card-body h3 a:hover {
    color: var(--ec-bordo);
}

.ec-card-excerpt {
    font-size: 0.88rem;
    color: rgba(26, 18, 11, 0.65);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

.ec-card-excerpt p {
    margin-bottom: 0;
}

.ec-read-more {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ec-bordo);
    border: 1px solid var(--ec-bordo);
    padding: 8px 20px;
    transition: all var(--ec-transition);
    align-self: flex-start;
}

.ec-read-more:hover {
    background: var(--ec-bordo);
    color: #fff;
}

/* Blog list (non-grid) */
.ec-blog-list .ec-card-article {
    flex-direction: row;
    margin-bottom: 24px;
}

.ec-blog-list .ec-card-thumb {
    width: 280px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.ec-blog-list .ec-card-body {
    padding: 24px;
}

/* ============================================
   Single Post / Page Content
   ============================================ */
.ec-single-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(26, 18, 11, 0.1);
}

.ec-single-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.3em;
}

.ec-single-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.84rem;
    color: var(--ec-olive);
}

.ec-single-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ec-entry-content {
    font-size: 1.02rem;
    line-height: 1.8;
}

.ec-entry-content h2 {
    margin-top: 2em;
}

.ec-entry-content h3 {
    margin-top: 1.6em;
}

.ec-entry-content img {
    margin: 1.5em 0;
    border-radius: var(--ec-radius);
}

.ec-post-tags {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 18, 11, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ec-post-tags a {
    font-size: 0.78rem;
    padding: 4px 12px;
    border: 1px solid rgba(26, 18, 11, 0.15);
    color: var(--ec-olive);
    transition: all var(--ec-transition);
}

.ec-post-tags a:hover {
    border-color: var(--ec-bordo);
    color: var(--ec-bordo);
}

/* Post navigation */
.ec-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(26, 18, 11, 0.1);
    gap: 20px;
}

.ec-post-nav a {
    font-size: 0.88rem;
    color: var(--ec-olive);
    max-width: 48%;
}

.ec-post-nav a:hover {
    color: var(--ec-bordo);
}

.ec-post-nav .ec-nav-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    opacity: 0.6;
}

/* ============================================
   Sidebar
   ============================================ */
.ec-sidebar .widget {
    margin-bottom: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(26, 18, 11, 0.06);
}

.ec-sidebar .widget-title,
.ec-sidebar .widgettitle {
    font-family: var(--ec-font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ec-bordo);
}

.ec-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-sidebar .widget li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(26, 18, 11, 0.06);
    font-size: 0.9rem;
}

.ec-sidebar .widget li:last-child {
    border-bottom: none;
}

.ec-sidebar .widget a {
    color: var(--ec-truffle);
}

.ec-sidebar .widget a:hover {
    color: var(--ec-bordo);
}

/* ============================================
   Comments
   ============================================ */
.ec-comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid rgba(26, 18, 11, 0.08);
}

.ec-comments-area h2 {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.ec-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid rgba(26, 18, 11, 0.06);
}

.ec-comment-list .children {
    list-style: none;
    padding-left: 32px;
    margin: 0;
}

.ec-comment-author {
    font-weight: 600;
    font-family: var(--ec-font-display);
    margin-bottom: 4px;
}

.ec-comment-date {
    font-size: 0.78rem;
    color: var(--ec-olive);
    margin-bottom: 10px;
}

.ec-comment-text {
    font-size: 0.94rem;
    line-height: 1.7;
}

.ec-comment-reply a {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Comment form */
.ec-comment-form label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.ec-comment-form input[type="text"],
.ec-comment-form input[type="email"],
.ec-comment-form input[type="url"],
.ec-comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(26, 18, 11, 0.15);
    background: #fff;
    font-family: var(--ec-font-body);
    font-size: 0.92rem;
    transition: border-color var(--ec-transition);
    margin-bottom: 16px;
}

.ec-comment-form input:focus,
.ec-comment-form textarea:focus {
    outline: none;
    border-color: var(--ec-bordo);
}

.ec-comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.ec-comment-form .submit {
    background: var(--ec-bordo);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-family: var(--ec-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background var(--ec-transition);
}

.ec-comment-form .submit:hover {
    background: var(--ec-tomato);
}

/* ============================================
   Pagination
   ============================================ */
.ec-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.ec-pagination a,
.ec-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(26, 18, 11, 0.15);
    color: var(--ec-truffle);
    transition: all var(--ec-transition);
    text-decoration: none;
}

.ec-pagination a:hover {
    border-color: var(--ec-bordo);
    color: var(--ec-bordo);
    transform: scale(1.1);
}

.ec-pagination .current {
    background: var(--ec-bordo);
    border-color: var(--ec-bordo);
    color: #fff;
}

.ec-pagination .dots {
    border: none;
    width: auto;
    padding: 0 4px;
    color: rgba(26, 18, 11, 0.4);
}

.ec-pagination .ec-page-prev,
.ec-pagination .ec-page-next {
    width: auto;
    padding: 0 16px;
    border-radius: 24px;
    font-size: 0.82rem;
}

/* ============================================
   Search Form
   ============================================ */
.ec-search-form {
    display: flex;
    border: 1px solid rgba(26, 18, 11, 0.15);
    overflow: hidden;
}

.ec-search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: none;
    font-family: var(--ec-font-body);
    font-size: 0.92rem;
    background: #fff;
    outline: none;
}

.ec-search-form button {
    padding: 10px 20px;
    background: var(--ec-bordo);
    color: #fff;
    border: none;
    font-family: var(--ec-font-body);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background var(--ec-transition);
}

.ec-search-form button:hover {
    background: var(--ec-tomato);
}

/* ============================================
   Footer
   ============================================ */
.ec-site-footer {
    background: var(--ec-truffle);
    color: rgba(253, 248, 240, 0.75);
    margin-top: 60px;
    padding: 48px 0 0;
}

.ec-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: var(--ec-max-width);
    margin: 0 auto;
    padding: 0 24px 40px;
}

.ec-footer-col .widget-title,
.ec-footer-col .widgettitle {
    font-family: var(--ec-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ec-ivory);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ec-bordo);
}

.ec-footer-col .widget {
    font-size: 0.88rem;
    line-height: 1.7;
}

.ec-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-footer-col li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(253, 248, 240, 0.06);
}

.ec-footer-col li:last-child {
    border-bottom: none;
}

.ec-footer-col a {
    color: rgba(253, 248, 240, 0.7);
    transition: color var(--ec-transition);
}

.ec-footer-col a:hover {
    color: var(--ec-ivory);
}

.ec-footer-bottom {
    border-top: 1px solid rgba(253, 248, 240, 0.08);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(253, 248, 240, 0.45);
    max-width: var(--ec-max-width);
    margin: 0 auto;
}

/* ============================================
   404 Page
   ============================================ */
.ec-error-page {
    text-align: center;
    padding: 60px 0;
}

.ec-error-page h1 {
    font-size: 5rem;
    color: var(--ec-bordo);
    margin-bottom: 0.2em;
}

.ec-error-page p {
    font-size: 1.1rem;
    color: rgba(26, 18, 11, 0.6);
    margin-bottom: 1.5em;
}

.ec-error-page .ec-search-form {
    max-width: 460px;
    margin: 0 auto 28px;
}

.ec-home-link {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--ec-bordo);
    color: var(--ec-bordo);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all var(--ec-transition);
}

.ec-home-link:hover {
    background: var(--ec-bordo);
    color: #fff;
}

/* ============================================
   Cookie Bar
   ============================================ */
.ec-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ec-truffle);
    color: var(--ec-ivory);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    font-size: 0.86rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.ec-cookie-notice.ec-cookie-visible {
    transform: translateY(0);
}

.ec-cookie-notice.ec-cookie-hidden {
    display: none;
}

.ec-cookie-accept {
    background: var(--ec-bordo);
    color: #fff;
    border: none;
    padding: 8px 24px;
    font-family: var(--ec-font-body);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--ec-transition);
}

.ec-cookie-accept:hover {
    background: var(--ec-tomato);
}

/* ============================================
   Quote / Chef Tips
   ============================================ */
.ec-chef-tip {
    border-left: 4px solid var(--ec-bordo);
    padding: 20px 24px;
    margin: 1.8em 0;
    background: rgba(26, 18, 11, 0.04);
    font-style: italic;
    font-family: var(--ec-font-display);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
    .ec-features-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .ec-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ec-posts-grid .ec-card-article:first-child {
        grid-column: span 2;
    }

    .ec-layout-sidebar {
        flex-direction: column;
    }

    .ec-main-content {
        width: 100%;
    }

    .ec-sidebar {
        width: 100%;
        position: static;
    }

    .ec-footer-widgets {
        grid-template-columns: 1fr 1fr;
    }

    .ec-blog-list .ec-card-article {
        flex-direction: column;
    }

    .ec-blog-list .ec-card-thumb {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .ec-chef-inner {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .ec-header-inner {
        flex-wrap: wrap;
    }

    .ec-menu-toggle {
        display: block;
    }

    .ec-primary-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 12px;
    }

    .ec-primary-nav.ec-nav-open {
        display: block;
    }

    .ec-primary-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .ec-primary-nav a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(253, 248, 240, 0.08);
    }

    .ec-features-row {
        grid-template-columns: 1fr;
    }

    .ec-posts-grid {
        grid-template-columns: 1fr;
    }

    .ec-posts-grid .ec-card-article:first-child {
        grid-column: span 1;
    }

    .ec-footer-widgets {
        grid-template-columns: 1fr;
    }

    .ec-chef-inner {
        flex-direction: column;
        text-align: center;
    }

    .ec-post-nav {
        flex-direction: column;
    }

    .ec-post-nav a {
        max-width: 100%;
    }

    .ec-hero-section h1 {
        font-size: 2rem;
    }

    .ec-error-page h1 {
        font-size: 3.5rem;
    }

    .ec-cookie-notice {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .ec-main-wide {
        width: 100%;
    }
}
