/* ----- Подключение шрифтов ----- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Playfair+Display:ital@0;1&display=swap');

/* ----- Сброс и переменные ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Основная палитра - более насыщенная, но сохраняющая уют */
    --cream: #fff9f0;           /* Теплый сливочный */
    --latte: #f3e9de;           /* Кофе с молоком */
    --terracotta: #d49b8c;      /* Терракотовый - основной акцент */
    --terracotta-light: #e8bcb2; /* Светлая терракота */
    --sage: #9b9b7a;            /* Шалфей - дополнительный акцент */
    --charcoal: #5c5552;        /* Темный для текста (мягче черного) */
    --warm-gray: #8f8b89;       /* Теплый серый */

    /* Фоны и эффекты */
    --bg-main: var(--cream);
    --bg-glass: rgba(255, 249, 240, 0.7);
    --border-warm: #e8dcd2;

    /* Тени - более выраженные, но мягкие */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
    --shadow-inner: inset 0 2px 8px rgba(0, 0, 0, 0.02);

    /* Скругления - разные, для интереса */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --radius-full: 999px;

    /* Анимации */
    --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: all 0.2s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--charcoal);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
    /* ===== МОБИЛЬНОЕ МЕНЮ (ВЫЕЗЖАЕТ СНИЗУ) ===== */

/* Затемнение фона */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Панель меню */
.mobile-menu-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    z-index: 99;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    transform: translateY(0);
}

/* Полоска-индикатор сверху (как в iOS) */
.mobile-menu-panel::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

/* Контейнер меню */
.mobile-menu-container {
    padding: 40px 20px 30px;
}

/* Список меню */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-panel.active .mobile-menu-list li {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация с задержкой для каждого пункта */
.mobile-menu-panel.active .mobile-menu-list li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-panel.active .mobile-menu-list li:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-panel.active .mobile-menu-list li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-panel.active .mobile-menu-list li:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-panel.active .mobile-menu-list li:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu-panel.active .mobile-menu-list li:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu-panel.active .mobile-menu-list li:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu-panel.active .mobile-menu-list li:nth-child(8) { transition-delay: 0.4s; }
.mobile-menu-panel.active .mobile-menu-list li:nth-child(9) { transition-delay: 0.45s; }
.mobile-menu-panel.active .mobile-menu-list li:nth-child(10) { transition-delay: 0.5s; }

/* Ссылки меню */
.mobile-menu-list a {
    display: block;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background: #f8f6f4;
    border-radius: 16px;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid rgba(212, 155, 140, 0.1);
}

.mobile-menu-list a:hover {
    background: var(--terracotta);
    color: white;
    transform: translateY(-2px);
}

/* Кнопка закрытия (опционально) */
.mobile-menu-close {
    position: absolute;
    top: 12px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.mobile-menu-close:hover {
    background: var(--terracotta);
    color: white;
    transform: rotate(90deg);
}

/* Адаптивность */
@media (min-width: 769px) {
    .mobile-menu-panel,
    .mobile-menu-overlay {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu-container {
        padding: 40px 15px 20px;
    }

    .mobile-menu-list a {
        padding: 16px 15px;
        font-size: 16px;
    }
}

/* Затемнение фона (опционально) */
body.menu-open {
    overflow: hidden;
}

body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    z-index: 98;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Адаптивность */
@media (min-width: 1025px) {
    .mobile-menu-dropdown {
        display: none; /* Не показываем на десктопе */
    }
}

@media (max-width: 480px) {
    .mobile-menu-container {
        padding: 20px 15px;
    }

    .mobile-menu a {
        padding: 12px 20px;
        font-size: 16px;
    }

    .mobile-social-link {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
/* ----- Утилиты ----- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ----- ШАПКА — с характером ----- */
.site-header {
    position: sticky;
    top: 0; /* Отступ сверху для эффекта "парящей" шапки */
    z-index: 100;
    margin: 24px 40px 0; /* Чтобы не прилипала к краям */
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-full); /* Овальная шапка — смело! */
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.site-header:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--terracotta-light);
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
}
/* ----- AJAX SEARCH RESULTS ----- */

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--border-warm);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-inner {
    padding: 15px 0;
}

/* Элемент результата */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f6f4;
}

/* Картинка */
.search-result-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #f8f6f4, #e8e0d8);
}

/* Информация */
.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-type {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-result-type .post-type {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
}

.search-result-type .match-info {
    color: var(--sage);
}

/* Состояния */
.search-loading {
    padding: 20px;
    text-align: center;
    color: #888;
}

.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #888;
}

.search-no-results span {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Выделение совпадений */
.search-result-title mark {
    background: rgba(212, 155, 140, 0.2);
    color: var(--terracotta);
    font-weight: 600;
    padding: 0 2px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-results {
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        max-height: 60vh;
    }
}
/* ----- Логотип с изюминкой ----- */
.logo-wrapper {
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 4px 8px rgba(212, 155, 140, 0.2));
    transition: var(--transition-bounce);
}

.logo-link:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #fffdfc;
}

.logo-accent {
    color: var(--terracotta);
    font-style: italic;
    margin-left: 2px;
}

/* ----- Навигация (десктоп) ----- */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

/* Эффект "пузырька" при наведении */
.nav-menu > li > a:hover {
    background: rgba(212, 155, 140, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* Активный пункт меню */
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-page-ancestor > a {
    background: var(--terracotta);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 155, 140, 0.3);
}

/* ----- Выпадающие меню (если появятся) ----- */
.nav-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-elevated);
    list-style: none;
}

.nav-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu ul a {
    padding: 10px 24px;
    width: 100%;
    border-radius: 0;
    white-space: normal;
}

.nav-menu ul a:hover {
    background: rgba(212, 155, 140, 0.1);
    transform: none;
    padding-left: 32px; /* Легкий сдвиг при наведении */
}

/* ----- Правая часть с иконками ----- */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button {
    position: relative;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    cursor: pointer;
    transition: var(--transition-bounce);
    background: rgba(255, 255, 255, 0.3);
}

.action-button:hover {
    background: var(--terracotta);
    color: white;
    transform: scale(1.05);
}

.action-button svg {
    width: 20px;
    height: 20px;
}

/* Счетчик избранного */
.favorites-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--sage);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-glass);
}

/* ----- Бургер-меню (стилизованный) ----- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.menu-toggle-line {
    width: 22px;
    height: 2px;
    background-color: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition-bounce);
    transform-origin: center;
}

/* Анимация бургера в крестик */
.menu-toggle.active .menu-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    width: 20px;
}

.menu-toggle.active .menu-toggle-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active .menu-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    width: 21px;
}

/* ----- Поиск (выпадающий) ----- */
.header-search {
    position: absolute;
    top: calc(100% + 12px);
    left: 24px;
    right: 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-full);
    opacity: 0;
    visibility: hidden;
    padding: 8px 14px;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-elevated);
}

.header-search.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: var(--radius-full);
    padding: 8px 8px 8px 24px;
    border: 1px solid var(--border-warm);
}

.search-field {
    flex: 1;
    border: none;
    background: none;
    font-size: 16px;
    color: var(--charcoal);
    outline: none;
    height: 30px;
}

.search-field::placeholder {
    color: var(--warm-gray);
    font-style: italic;
}

.search-submit {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--terracotta);
    color: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: var(--sage);
    transform: scale(1.05);
}

.search-close {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    color: var(--charcoal);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition-smooth);
    margin-right: 20px;
}

.search-close:hover {
    background: var(--charcoal);
    color: white;
}

/* ----- Мобильное меню (на весь экран) ----- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 100px 40px 40px;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 8px;
}

.mobile-menu a {
    display: block;
    padding: 16px 24px;
    font-size: 24px;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    text-align: center;
}

.mobile-menu a:hover {
    background: var(--terracotta);
    color: white;
}

/* ----- Адаптивность ----- */
@media (max-width: 1024px) {
    .site-header {
        margin: 16px 20px 0;
    }

    .header-nav {
        display: none; /* Прячем обычное меню */
    }

    .menu-toggle {
        display: flex; /* Показываем бургер */
    }

    .header-grid {
        padding: 8px 16px;
    }

    .logo-text {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    .site-header {
        margin: 12px 12px 0;
        border-radius: var(--radius-lg); /* Чуть меньше скругление на мобилках */
    }

    .header-actions {
        display: none; /* Прячем иконки на маленьких экранах, освобождая место */
    }

    .logo-icon {
        font-size: 24px;
    }

    .logo-text {
        font-size: 18px;
    }

    .search-container {
        flex-direction: column;
    }

    .search-close {
        width: 100%;
    }
}

/* ----- ФУТЕР — с атмосферой ----- */

.site-footer {
    position: relative;
    background: linear-gradient(135deg, #faf1e7 0%, #f5e8dd 100%);
    color: var(--charcoal);
    margin-top: 100px;
    overflow: hidden;
}

/* Декоративная волна сверху */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
    color: var(--bg-main);
    z-index: 1;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Основной контент футера */
.footer-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 30px;
}

/* Верхняя часть */
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

/* Брендовая часть */
.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 36px;
    filter: drop-shadow(0 6px 12px rgba(212, 155, 140, 0.3));
}

.footer-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--charcoal);
}

.footer-logo .logo-accent {
    color: var(--terracotta);
    font-style: italic;
}

.footer-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 30px;
    max-width: 320px;
}

/* Форма подписки */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
}

.newsletter-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.newsletter-text {
    font-size: 14px;
    color: var(--warm-gray);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-full);
    background: white;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(212, 155, 140, 0.2);
}

.newsletter-button {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--terracotta);
    color: white;
    border-radius: var(--radius-full);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-button:hover {
    background: var(--sage);
    transform: scale(1.1) rotate(5deg);
}

/* Сетка ссылок */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--sage));
    border-radius: 3px;
}

/* Стили для меню в футере */
.footer-menu,
.footer-categories,
.footer-info,
.footer-contact {
    list-style: none;
}

.footer-menu li,
.footer-categories li,
.footer-info li {
    margin-bottom: 12px;
}

.footer-menu a,
.footer-categories a,
.footer-info a {
    color: var(--warm-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    font-size: 15px;
}

.footer-menu a:hover,
.footer-categories a:hover,
.footer-info a:hover {
    color: var(--terracotta);
    transform: translateX(5px);
}

/* Контакты */
.footer-contact li {
    color: var(--warm-gray);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Социальные иконки */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.footer-social .social-icon {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 16px;
}
.social-icon {
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    text-decoration: none;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-soft);
    font-family: 'Playfair Display', serif;
}

/* Нижняя часть футера */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(92, 85, 82, 0.1);
    color: var(--warm-gray);
    font-size: 14px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot-separator {
    opacity: 0.5;
}

.heart {
    color: #e8a2a2;
    display: inline-block;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-payment {
    display: flex;
    gap: 12px;
}

.payment-icon {
    font-size: 20px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.payment-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-elevated);
    transition: var(--transition-bounce);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--sage);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(212, 155, 140, 0.4);
}

.back-to-top-icon {
    font-size: 20px;
}

.back-to-top-text {
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        padding-right: 0;
        max-width: 100%;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 40px 0 20px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-copyright {
        flex-wrap: wrap;
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
    }

    .back-to-top-text {
        display: none; /* Только иконка на мобилках */
    }
}

@media (max-width: 480px) {
    .footer-wave svg {
        height: 30px;
    }

    .footer-logo .logo-text {
        font-size: 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }

    .footer-column-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}


/* ----- HERO СЛАЙДЕР (полный экран) ----- */

.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh; /* На всю высоту экрана */
    max-height: -webkit-fill-available; /* Для мобильных */
    overflow: hidden;
    margin-top: -100px; /* Чтобы шапка была поверх слайдера (если нужно) */
    z-index: 1;
}

/* Если шапка должна быть поверх, добавляем прозрачность шапке */
.site-header {
    background: #00000021;
    border-color: rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
}

.site-header:hover {
    background: rgb(219 219 219 / 70%);
}

/* Контейнер свайпера */
.hero-swiper {
    width: 100%;
    height: 100%;
}

/* Слайд */
.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

/* Изображение */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Активный слайд - зум эффект */
.hero-swiper .swiper-slide-active .slide-image img {
    transform: scale(1.05);
}

/* Затемнение (градиент, а не просто черный) */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1717178a;
    z-index: 2;
}

/* Контент на слайде */
.slide-content {
    position: absolute;
    bottom: 35%;
    left: 10%;
    max-width: 70%;
    color: white;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.hero-swiper .swiper-slide-active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Тег */
.slide-tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Заголовок */
.slide-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 8vw, 3rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Текст */
.slide-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 80%;
}

/* Кнопки */
.slide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--terracotta);
    color: white;
    box-shadow: 0 10px 25px -8px var(--terracotta);
}

.btn-primary:hover {
    background: var(--sage);
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px var(--sage);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    color: #171717cb;
}

/* Стрелки навигации (кастомные) */
.hero-prev,
.hero-next {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    font-size: 14px;
    transition: var(--transition-bounce);
}

.hero-prev::after,
.hero-next::after {
    display: none; /* Убираем стандартные иконки */
}

.arrow-icon {
    font-size: 24px;
    line-height: 1;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--terracotta);
    transform: scale(1.1);
    border-color: transparent;
}

/* Пагинация (точки) */
.hero-pagination {
    bottom: 30px !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0.5;
    margin: 0 8px !important;
    transition: var(--transition-smooth);
}

.hero-pagination .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: var(--radius-full);
    background: var(--terracotta);
    opacity: 1;
}

/* Прогресс-бар (для анимации времени) */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.hero-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--terracotta), var(--sage));
    transition: width 5s linear;
}

/* Активный прогресс-бар */
.hero-swiper .swiper-slide-active ~ .hero-progress .hero-progress-bar {
    width: 100%;
}

/* Адаптивность */
@media (max-width: 768px) {
    .slide-content {
        bottom: 20%;
        left: 5%;
        right: 5%;
        max-width: 100%;
    }

    .slide-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .slide-buttons {
        flex-direction: column;
    }

    .btn {
        width: 50%;
        text-align: center;
        padding: 6px 24px;
    }

    .hero-prev,
    .hero-next {
        display: none; /* Прячем стрелки на мобилках */
    }

    .hero-progress {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 90vh; /* Чуть меньше на маленьких экранах */
    }

    .slide-tag {
        font-size: 12px;
        padding: 6px 14px;
    }
    .slide-title {
        font-size: 24px;
    }
    .slide-text {
        font-size: 16px;
    }
}



/* Акцентная линия под бейджем (если хотите) */
.swiper-slide[data-accent] .slide-tag {
    border-color: currentColor;
}

/* Кнопка outline при наведении может использовать акцентный цвет */
.swiper-slide[data-accent] .btn-outline:hover {
    background: transparent;
    border-color: #fff;
    color: white;
}

/* Прогресс-бар подстраивается под первый слайд (JS будет менять) */
.hero-progress-bar {
    background: linear-gradient(90deg, var(--terracotta), var(--sage));
    transition: background 0.3s;
}


/* ----- СЕКЦИЯ С ЗАПИСЯМИ ----- */

.posts-section {
    padding: 80px 0;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

/* Декоративный фон (для уюта) */
.posts-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--terracotta-light);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.posts-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--sage);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 2;
}

/* Заголовок секции */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terracotta);
    background: rgba(212, 155, 140, 0.1);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--charcoal);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-description {
    color: var(--warm-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Сетка постов */
.posts-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: minmax(300px, auto);
    gap: 24px;
    margin-bottom: 50px;
}

/* Главная карточка (занимает две ячейки) */
.post-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* Обычные карточки */
.post-card.regular {
    grid-column: span 1;
}

/* Базовая карточка */
.post-card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.5);
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--terracotta-light);
}

.post-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Медиа-часть */
.post-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.featured .post-media {
    aspect-ratio: 16 / 9;
}

.post-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

/* Placeholder для картинки */
.post-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--latte), var(--cream));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--terracotta-light);
}

/* Категория */
.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--charcoal);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 15px;
    border-radius: var(--radius-full);
    z-index: 3;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.featured-category {
    background: var(--terracotta);
    color: white;
}

.post-category:hover {
    background: var(--terracotta);
    color: white;
    transform: scale(1.05);
}

/* Контент */
.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured .post-content {
    padding: 30px;
}

/* Мета-информация */
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--warm-gray);
    flex-wrap: wrap;
}

.post-date {
    position: relative;
}

.post-date::after {
    content: '•';
    margin-left: 15px;
    color: var(--terracotta-light);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Заголовок */
.post-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 600;
}

.featured .post-title {
    font-size: 1.8rem;
}

.post-title a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: var(--terracotta);
}

/* Текст */
.post-excerpt {
    color: var(--warm-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.featured .post-excerpt {
    font-size: 1rem;
}

/* Ссылка "Читать" */
.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.post-read-more span {
    transition: transform 0.2s;
}

.post-read-more:hover {
    color: var(--sage);
    gap: 12px;
}

.post-read-more:hover .read-more-arrow {
    transform: translateX(5px);
}

/* Кнопка внизу секции */
.section-footer {
    text-align: center;
    margin-top: 30px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--border-warm);
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-bounce);
}

.btn-secondary:hover {
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
    gap: 16px;
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.2s;
}

.btn-secondary:hover .btn-arrow {
    transform: translateX(5px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .post-card.featured {
        grid-column: span 2;
    }

    .featured .post-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .posts-section {
        padding: 60px 0;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-card.featured {
        grid-column: span 1;
    }

    .featured .post-media {
        aspect-ratio: 16 / 10;
    }

    .featured .post-content {
        padding: 20px;
    }

    .post-meta {
        gap: 10px;
    }

    .post-date::after {
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .post-media {
        aspect-ratio: 16 / 9;
    }

    .post-content {
        padding: 18px;
    }

    .post-title {
        font-size: 1.2rem;
    }

    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ----- МЕТКИ (ТЕГИ) ----- */

.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--sage);
    background: rgba(155, 155, 122, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.post-tag:hover {
    background: var(--sage);
    color: white;
    transform: translateY(-2px);
}

/* Для главной карточки теги чуть крупнее */
.featured .post-tag {
    font-size: 13px;
    padding: 5px 12px;
}

/* Индикатор "еще" */
.post-tags-more {
    display: inline-block;
    font-size: 12px;
    color: var(--warm-gray);
    background: var(--bg-white);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-warm);
}

/* Обновляем post-meta для правильного отображения */
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--warm-gray);
    flex-wrap: wrap;
}

.post-date {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.post-date::after {
    content: '•';
    margin-left: 15px;
    color: var(--terracotta-light);
    display: inline-block;
}

/* Если после даты идут теги, разделитель работает */
.post-date:has(+ .post-tags)::after {
    content: '•';
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .post-meta {
        gap: 10px;
    }

    .post-date::after {
        margin-left: 10px;
    }

    .post-tags {
        gap: 5px;
    }

    .post-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .post-date::after {
        display: none; /* Убираем разделитель на совсем маленьких */
    }
}