/* Подсказки от Ксюши - сине-зелёная тема */

:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --secondary-color: #0891b2;
    --accent-color: #2dd4bf;
    --dark-color: #134e4a;
    --light-bg: #f0fdfa;
    --header-bar-bg: linear-gradient(135deg, var(--primary-dark) 0%, #0c5a6e 100%);
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
    --shadow-hover: 0 8px 25px rgba(13, 148, 136, 0.25);
}

body {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* фактическая высота фиксированного хедера задаётся JS (--site-header-offset) */
    padding-top: var(--site-header-offset, 280px);
}

body.has-recipe-day {
    padding-top: var(--site-header-offset, 360px);
}

/* Двухуровневый хедер */
.site-header-wrap.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== Верхняя полоса (как 02pavtravel2) ===== */
.header-top {
    background: var(--header-bar-bg);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.88rem;
}

.header-top-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-search {
    flex: 0 1 420px;
    max-width: 420px;
    min-width: 160px;
    display: flex;
    align-items: stretch;
    margin: 0;
}

.header-search-input {
    flex: 1;
    border: none;
    border-radius: 6px 0 0 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.88rem;
    color: #1a2e36;
    background: #fff;
    min-width: 0;
}

.header-search-input::placeholder {
    color: #5a7080;
    opacity: 1;
}

.header-search-input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 0;
}

.header-search-btn {
    border: none;
    background: #fff;
    color: var(--primary-color);
    padding: 0 0.85rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.header-search-btn:hover {
    background: #e8f4f8;
    color: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-left: auto;
    flex: 0 0 auto;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    padding: 0;
    cursor: pointer;
    font-size: 1.05rem;
}

.header-icon-btn:hover,
.header-icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0.15rem;
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.header-user-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.1rem;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.header-user-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.header-user-role {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

a.header-user-role:hover {
    color: #fff;
}

.header-top .btn-header-light {
    background: #fff;
    color: #134e4a;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 650;
    text-decoration: none;
    line-height: 1.25;
    white-space: nowrap;
}

.header-top .btn-header-light:hover {
    background: #f0fdfa;
    color: #0f766e;
}

.header-top .btn-header-accent {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 650;
    text-decoration: none;
    line-height: 1.25;
    white-space: nowrap;
}

.header-top .btn-header-accent:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* Полоса с логотипом */
.header-brand-bar {
    background: #fff;
    border-bottom: 1px solid #e3ebe9;
    padding: 0.65rem 0;
    overflow: visible;
}
.header-brand-bar-inner {
    display: flex;
    align-items: center;
    overflow: visible;
}
.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}
.header-logo:hover { color: inherit; }
.header-logo-img {
    height: calc(78px * var(--header-logo-img-scale, 1));
    width: auto;
    max-height: none;
    object-fit: contain;
}

.header-brand-bar .site-name-handwriting {
    color: var(--dark-color);
}

/* Вторая полоса — меню навигации */
.header-nav.navbar-teal-dark {
    background: var(--header-bar-bg) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.header-nav .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 0.7rem 1.05rem;
    font-size: 1.12rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.header-nav .nav-link i {
    font-size: 1.2rem;
    line-height: 1;
}

.header-nav .nav-link:hover {
    color: #fff;
}

.header-nav .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.9);
}

.header-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Навбар сине-зелёный (legacy) */
.navbar-teal {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: var(--shadow);
}

@media (max-width: 991.98px) {
    body { padding-top: var(--site-header-offset, 300px); }
    body.has-recipe-day { padding-top: var(--site-header-offset, 420px); }
    .header-search {
        order: 0;
        max-width: 100%;
        flex: 1 1 100%;
    }
    .header-actions {
        order: 1;
        width: 100%;
        justify-content: flex-end;
    }
    .header-user-name { max-width: 100px; }
    .header-user-role { display: none; }
    .header-logo-img { height: calc(64px * var(--header-logo-img-scale, 1)); }
    .header-brand-bar .site-name-handwriting { font-size: 2.7rem; }
}

@media (max-width: 575.98px) {
    .header-top .btn-header-light,
    .header-top .btn-header-accent {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    .header-logo-img { height: calc(52px * var(--header-logo-img-scale, 1)); }
    .header-brand-bar .site-name-handwriting { font-size: 2rem; }
}

/* ========== ГЛАВНАЯ СТРАНИЦА (как index0000, сине-зелёная) ========== */
.main-home { padding: 0; }

/* Герой */
.home-hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
    padding: 1.75rem 0 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(8, 145, 178, 0.12) 100%);
    color: var(--dark-color);
}

.home-hero .hero-inner {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5% 1.25rem;
    text-align: center;
}

/* Слева: аватар · справа: заголовок, цитата и контент */
.hero-top {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem 2.25rem;
    margin-bottom: 0;
    text-align: left;
}

.hero-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-top-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding-top: 0.35rem;
}

.hero-top-main .hero-title {
    margin: 0 0 1.25rem;
    text-align: center;
}

.hero-top-main .hero-quote-card {
    max-width: 36rem;
    margin: 0 auto 1.35rem;
    text-align: center;
}

.hero-top-main .hero-quote-text {
    text-align: center;
}

.hero-top-main .hero-quote-author {
    display: block;
    text-align: center;
}

/* Круглая рамка с фото — крупный аватар слева */
.hero-photo-frame {
    flex-shrink: 0;
    width: 300px;
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow), 0 8px 28px rgba(13, 148, 136, 0.28);
    overflow: hidden;
}

.hero-photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-quote-card {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(13, 148, 136, 0.18);
    border-radius: 16px;
    padding: 1rem 1.25rem 1.1rem;
    box-shadow: var(--shadow);
    text-align: left;
}

.hero-quote-mark {
    display: inline;
    font-size: 1.15em;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.55;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: normal;
    font-weight: 700;
}

.hero-quote-mark--open {
    margin-right: 0.15em;
}

.hero-quote-mark--close {
    margin-left: 0.15em;
}

.hero-quote-text {
    display: block;
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--dark-color);
    quotes: none;
}

.hero-quote-author {
    display: block;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-text { text-align: center; width: 100%; }
.home-hero h1,
.home-hero .hero-title {
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    color: var(--dark-color);
}
.home-hero h1 span,
.home-hero .hero-title span { color: var(--primary-color); }
.home-hero .hero-lead {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.home-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.home-hero .hero-stat-num { font-size: 2.25rem; font-weight: 700; color: var(--primary-color); }
.home-hero .hero-stat-label { font-size: 0.95rem; color: #64748b; }
.home-hero .cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.home-hero .cta-btn {
    padding: 0.9rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.home-hero .cta-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}
.home-hero .cta-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.home-hero .cta-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

@media (max-width: 991.98px) {
    .hero-top {
        grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
        gap: 1.25rem 1.5rem;
    }
    .hero-top-main .hero-title {
        font-size: clamp(1.55rem, 4vw, 2.2rem);
    }
}

@media (max-width: 767.98px) {
    .home-hero { padding-top: 1rem; }
    .hero-top {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .hero-aside { max-width: 320px; width: 100%; }
    .hero-quote-card { text-align: center; }
    .hero-top-main .hero-title { text-align: center; }
}

/* Полноширинный баннер внизу героя (прозрачность = фон секции) */
.home-banner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    background: transparent;
}

.home-banner-img {
    display: block;
    width: 100%;
    height: clamp(120px, 14vw, 180px);
    object-fit: cover;
    object-position: center;
    background: transparent;
}

@media (max-width: 575.98px) {
    .home-banner-img {
        height: clamp(100px, 22vw, 130px);
    }
}

/* Быстрый доступ (legacy) */
.quick-access { padding: 4rem 5%; background: #fff; }
.section-title {
    font-size: 2rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.quick-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}
.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(45, 212, 191, 0.08) 100%);
}
.quick-card .quick-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.quick-card .quick-title { font-size: 1.2rem; font-weight: 600; color: var(--dark-color); margin-bottom: 0.5rem; }
.quick-card .quick-desc { font-size: 0.9rem; color: #64748b; margin-bottom: 1rem; }
.quick-card .promo-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.quick-card .promo-link:hover { color: var(--primary-dark); }

/* Классификация рецептов (главная + каталог) */
.classify-section {
    padding: 4rem 5%;
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(45, 212, 191, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(13, 148, 136, 0.1), transparent 50%),
        #fff;
}
.classify-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.classify-group {
    margin-bottom: 2.75rem;
}
.classify-group-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.4rem;
}
.classify-group-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}
.classify-group-desc {
    color: #64748b;
    margin: 0 0 1.25rem;
    font-size: 0.98rem;
}
.classify-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.classify-grid-wide {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.classify-grid-preserves,
.classify-grid-tips {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.classify-card {
    background: #fff;
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: 18px;
    padding: 1.15rem 0.9rem 1.1rem;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.06);
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    cursor: pointer;
}
.classify-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.14);
    border-color: var(--primary-color);
    color: inherit;
    background: linear-gradient(180deg, #fff 0%, rgba(240, 253, 250, 0.9) 100%);
}
.classify-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    transition: transform 0.25s ease;
}
.classify-card-icon .bi {
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
}
.classify-card:hover .classify-card-icon {
    transform: scale(1.06);
}
.classify-card-title {
    font-weight: 650;
    font-size: 0.98rem;
    color: var(--dark-color);
    line-height: 1.25;
}
.classify-card-sub {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}
.classify-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}
.classify-chevron {
    transition: transform 0.25s ease;
    font-size: 0.85rem;
}
.classify-card-btn {
    width: 100%;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.classify-card-btn.is-active {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, rgba(240, 253, 250, 1) 0%, rgba(204, 251, 241, 0.55) 100%);
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.16);
}
.classify-card-btn.is-active .classify-chevron {
    transform: rotate(180deg);
}
.classify-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(13, 148, 136, 0.12);
}
.classify-extra-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--light-bg);
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid rgba(13, 148, 136, 0.15);
    transition: all 0.2s ease;
}
.classify-extra-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Главная: компактная классификация */
.classify-home {
    padding: 2.5rem 5% 2.25rem;
    background:
        radial-gradient(ellipse 70% 55% at 0% 0%, rgba(45, 212, 191, 0.16), transparent 55%),
        radial-gradient(ellipse 55% 45% at 100% 10%, rgba(8, 145, 178, 0.12), transparent 50%),
        linear-gradient(180deg, #f8fffd 0%, #ffffff 55%, #f0fdfa 100%);
}
.classify-home-shell {
    position: relative;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 253, 250, 0.88) 100%);
    border: 1px solid rgba(13, 148, 136, 0.14);
    border-radius: 24px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 18px 40px rgba(13, 148, 136, 0.08);
    padding: 1.35rem 1.35rem 1.15rem;
    overflow: hidden;
}
.classify-home-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
}
.classify-home-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.classify-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.classify-home-eyebrow i { font-size: 0.7rem; }
.classify-home-title {
    font-size: 1.5rem;
    font-weight: 750;
    color: var(--dark-color);
    margin: 0 0 0.2rem;
    text-align: left;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.classify-home-sub {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    max-width: 36rem;
}
.classify-home-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(13, 148, 136, 0.22);
    color: var(--primary-color);
    font-weight: 650;
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.classify-home-all i {
    transition: transform 0.2s ease;
}
.classify-home-all:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.22);
}
.classify-home-all:hover i { transform: translateX(3px); }
.classify-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.35rem;
    margin-bottom: 0.95rem;
    border-radius: 16px;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.08);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.classify-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.classify-tab i {
    color: var(--primary-color);
    font-size: 0.86rem;
    opacity: 0.9;
}
.classify-tab:hover {
    background: rgba(255, 255, 255, 0.75);
    color: var(--dark-color);
}
.classify-tab.is-active {
    background: #fff;
    border-color: rgba(13, 148, 136, 0.16);
    color: var(--dark-color);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
    transform: translateY(-1px);
}
.classify-tab.is-active i { color: var(--primary-color); opacity: 1; }
.classify-home-body {
    min-height: 11.5rem;
}
.classify-home-panel {
    animation: classifyHomeFade 0.28s ease;
}
@keyframes classifyHomeFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.classify-home-panel-desc {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.9rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.05);
    color: #5b6b75;
    font-size: 0.88rem;
    line-height: 1.4;
}
.classify-home-panel-desc i {
    color: var(--primary-color);
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.classify-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.7rem;
    align-items: stretch;
}
.classify-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem 0.75rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(13, 148, 136, 0.1);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.04);
    text-decoration: none;
    color: inherit;
    min-height: 62px;
    height: 100%;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.classify-chip.has-history {
    min-height: 168px;
}
.classify-chip-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.classify-chip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.22s ease;
}
.classify-chip-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.12), rgba(45, 212, 191, 0.18));
    color: var(--primary-dark);
    font-size: 0.95rem;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.classify-chip-icon .bi {
    font-size: 0.95rem;
    line-height: 1;
}
.classify-chip-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.classify-chip-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.classify-chip-sub {
    font-size: 0.72rem;
    color: #708090;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.classify-chip-history {
    margin-top: auto;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(13, 148, 136, 0.16);
    font-size: 0.72rem;
    line-height: 1.4;
    color: #5f6f7a;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.classify-chip-go {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(13, 148, 136, 0.08);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    font-size: 0.75rem;
}
.classify-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.12);
    background: linear-gradient(180deg, #fff 0%, #f0fdfa 100%);
    color: inherit;
}
.classify-chip:hover::before { opacity: 1; }
.classify-chip:hover .classify-chip-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: scale(1.05);
}
.classify-chip:hover .classify-chip-go {
    opacity: 1;
    transform: translateX(0);
    background: var(--primary-color);
    color: #fff;
}
.classify-home-extra {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
    margin-top: 1.1rem;
    padding-top: 0.95rem;
    border-top: 1px dashed rgba(13, 148, 136, 0.18);
}
.classify-home-extra-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a8a94;
}
.classify-home-extra-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.classify-home-extra .classify-extra-link {
    padding: 0.38rem 0.8rem;
    font-size: 0.82rem;
    background: #fff;
}
@media (max-width: 700px) {
    .classify-home { padding: 1.75rem 4% 1.5rem; }
    .classify-home-shell { padding: 1.05rem 0.95rem 0.95rem; border-radius: 20px; }
    .classify-home-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .classify-home-title { font-size: 1.3rem; }
    .classify-home-all { align-self: stretch; justify-content: center; }
    .classify-home-body { min-height: 0; }
    .classify-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }
    .classify-chip {
        min-height: 54px;
        padding: 0.5rem 0.55rem 0.6rem;
        gap: 0.4rem;
    }
    .classify-chip.has-history {
        min-height: 0;
    }
    .classify-chip-sub,
    .classify-chip-go { display: none; }
    .classify-chip-history {
        -webkit-line-clamp: 3;
        font-size: 0.68rem;
    }
    .classify-home-extra {
        flex-direction: column;
        align-items: flex-start;
    }
}

.classify-panel {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 1.25rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.95) 0%, #fff 100%);
    border: 1px solid rgba(13, 148, 136, 0.18);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.08);
    animation: classifyPanelIn 0.28s ease;
}
@keyframes classifyPanelIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.classify-panel-head {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1rem;
}
.classify-panel-footer {
    margin-top: 1rem;
    text-align: right;
}
.classify-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
}
.classify-recipe-card {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(13, 148, 136, 0.1);
    border-radius: 14px;
    padding: 0.55rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.classify-recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.12);
    border-color: var(--primary-color);
    color: inherit;
}
.classify-recipe-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--light-bg);
}
.classify-recipe-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.classify-recipe-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.classify-recipe-title {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--dark-color);
    margin: 0 0 0.2rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.classify-recipe-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.classify-recipe-meta {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}
.catalog-classify .classify-group-title {
    font-size: 1.25rem;
}
.catalog-filter-back {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.12);
}
.catalog-filter-back-label {
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 600;
}
#catalog-recipes {
    scroll-margin-top: calc(var(--site-header-offset, 280px) + 12px);
}
@media (max-width: 700px) {
    .classify-section { padding: 2.5rem 4%; }
    .classify-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    .classify-recipes-grid {
        grid-template-columns: 1fr;
    }
}

/* Личный кабинет: компактные блоки */
.cabinet-quick-cards .cabinet-block {
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cabinet-quick-cards .cabinet-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cabinet-block-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.cabinet-block .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.cabinet-block-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Слайдер */
.slider-section { padding: 4rem 5%; background: var(--light-bg); }
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.slider-wrap { display: flex; transition: transform 0.5s ease; }
.slider-slide {
    min-width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
}
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-slide .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 1.5rem 2rem;
}
.slider-slide .slide-cat {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.slider-slide .slide-title { font-size: 1.4rem; margin-bottom: 0.25rem; }
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: var(--dark-color);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
}
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-prev:hover, .slider-next:hover { background: #fff; box-shadow: var(--shadow); }
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(13, 148, 136, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-dot.active { background: var(--primary-color); transform: scale(1.2); }

/* Промо-карточки (полезные материалы) */
.promo-blocks { padding: 0 5% 4rem; background: var(--light-bg); }
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.promo-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.promo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.promo-card img { width: 100%; height: var(--promo-img-height, 200px); object-fit: cover; }
.promo-card .promo-body { padding: 1.25rem; }
.promo-card .promo-cat {
    display: inline-block;
    background: rgba(13, 148, 136, 0.12);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.promo-card .promo-title { font-size: 1.1rem; font-weight: 600; color: var(--dark-color); margin-bottom: 0.5rem; }
.promo-card .promo-text { font-size: 0.9rem; color: #64748b; margin-bottom: 0.75rem; }
.promo-card .promo-link { color: var(--primary-color); font-weight: 600; text-decoration: none; }

/* Карточки меню (популярные рецепты) */
.menu-cards-section { padding: 4rem 5%; background: #fff; }

/* Фильтры хитростей на главной */
.tips-stats { max-width: 1200px; margin-left: auto; margin-right: auto; }
.tips-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.tips-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(45, 212, 191, 0.06) 100%);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tips-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}
.tips-stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}
.tips-stat-icon-collection { background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%); }
.tips-stat-icon-views { background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%); }
.tips-stat-icon-comments { background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%); }
.tips-stat-icon-useful { background: linear-gradient(135deg, #059669 0%, #34d399 100%); }
.tips-stat-content { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.tips-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--dark-color); line-height: 1.2; }
.tips-stat-label { font-size: 0.8rem; color: #64748b; line-height: 1.3; }
.tips-stats-subtitle { text-align: center; font-size: 0.9rem; color: #64748b; margin: 0; }
.tips-filters { max-width: 1200px; margin-left: auto; margin-right: auto; }
.tips-filters-form { background: rgba(13, 148, 136, 0.06); border: 1px solid rgba(13, 148, 136, 0.2); border-radius: 12px; padding: 1.25rem; }
.tips-filters-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.tips-filter-group { flex: 1; min-width: 140px; }
.tips-filter-group:first-child { min-width: 180px; }
.tips-filter-label { display: block; font-size: 0.8rem; font-weight: 600; color: #475569; margin-bottom: 0.35rem; }
.tips-filter-select, .tips-filter-input { width: 100%; max-width: 100%; }
.tips-filter-actions { flex-shrink: 0; display: flex; align-items: flex-end; }
@media (max-width: 768px) {
    .tips-filters-row { flex-direction: column; }
    .tips-filter-group { min-width: 100%; }
    .tips-filter-actions { width: 100%; justify-content: flex-start; }
}

/* Фильтры хитростей v2: строка поиска + 4 селекта */
.tips-filters-form--v2 {
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(15, 118, 110, 0.03) 48%, rgba(255, 255, 255, 0.7) 100%),
        radial-gradient(1200px 180px at 10% -40%, rgba(45, 212, 191, 0.18), transparent 60%);
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 18px;
    padding: 1.15rem 1.25rem 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 118, 110, 0.07);
}
.tips-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
    margin-bottom: 1rem;
}
.tips-search-field {
    position: relative;
    flex: 1 1 280px;
    min-width: 0;
}
.tips-search-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0f766e;
    opacity: 0.7;
    pointer-events: none;
    font-size: 1rem;
}
.tips-search-input {
    width: 100%;
    height: 2.85rem;
    padding: 0.65rem 1rem 0.65rem 2.65rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 148, 136, 0.28);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tips-search-input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
    outline: none;
}
.tips-search-btn,
.tips-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 2.85rem;
    padding: 0 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    text-decoration: none;
}
.tips-search-btn {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
}
.tips-search-btn:hover {
    color: #fff;
    filter: brightness(1.05);
}
.tips-reset-btn {
    background: rgba(255, 255, 255, 0.85);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.28);
}
.tips-reset-btn:hover {
    background: #fff;
    color: #115e59;
}
.tips-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}
.tips-filters-form--v2 .tips-filter-group {
    min-width: 0;
}
.tips-filters-form--v2 .tips-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
    color: #334155;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}
.tips-filters-form--v2 .tips-filter-label i {
    color: #0d9488;
    opacity: 0.85;
}
.tips-filters-form--v2 .tips-filter-select {
    height: 2.55rem;
    border-radius: 12px;
    border-color: rgba(13, 148, 136, 0.25);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.tips-filters-form--v2 .tips-filter-select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}
.tips-filters-apply {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(13, 148, 136, 0.28);
}
.tips-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 2.55rem;
    padding: 0 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.22);
}
.tips-apply-btn:hover { color: #fff; filter: brightness(1.05); }
.tips-reset-btn--inline { height: 2.55rem; }
@media (max-width: 992px) {
    .tips-filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    .tips-filters-form--v2 { padding: 1rem; border-radius: 14px; }
    .tips-filters-grid { grid-template-columns: 1fr; }
    .tips-search-btn span,
    .tips-reset-btn span { display: none; }
    .tips-search-btn,
    .tips-reset-btn { width: 2.85rem; padding: 0; }
    .tips-apply-btn { width: 100%; }
}

/* Пагинация хитростей: слева — счётчик и выбор «на странице», по центру — номера страниц */
.tips-pagination-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.tips-pagination-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.tips-pagination-center {
    display: flex;
    justify-content: center;
}
.tips-pagination-right {
    min-width: 0;
}
@media (max-width: 768px) {
    .tips-pagination-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .tips-pagination-left { align-items: center; }
}

.menu-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 992px) {
    .menu-cards-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 576px) and (max-width: 991px) {
    .menu-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .menu-cards-grid { grid-template-columns: 1fr; }
}
.menu-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 148, 136, 0.1);
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.menu-card .menu-card-img-link { display: block; line-height: 0; flex-shrink: 0; }
.menu-card .menu-card-img,
.menu-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.menu-card .menu-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.menu-card .menu-card-cat {
    display: inline-block;
    background: rgba(13, 148, 136, 0.12);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.menu-card .menu-card-title { font-size: 1.1rem; font-weight: 600; color: var(--dark-color); margin-bottom: 0.5rem; }
.menu-card .menu-card-title-lines-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em;
}
.menu-card .menu-card-desc { font-size: 0.9rem; color: #64748b; margin-bottom: 0.75rem; }
.menu-card .menu-card-desc-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 4.2em;
}
.menu-card .menu-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 0.75rem;
    width: 100%;
}
.menu-card .menu-card-meta-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(13, 148, 136, 0.15);
    min-width: 0;
}
.menu-card .menu-card-meta-item i {
    font-size: 0.95rem;
    color: var(--primary-color);
    flex-shrink: 0;
}
.menu-card .menu-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.menu-card .menu-card-rating .bi-star-fill { font-size: 1rem; }
.menu-card .menu-card-rating-num { margin-left: 0.35rem; color: #64748b; font-weight: 600; }

/* Реакции хитростей */
.tip-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.tip-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #fff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.tip-reactions--live .tip-reaction-btn:not(:disabled):hover {
    border-color: rgba(13, 148, 136, 0.55);
    background: rgba(13, 148, 136, 0.08);
    transform: translateY(-1px);
}
.tip-reaction-btn.is-active {
    border-color: rgba(13, 148, 136, 0.65);
    background: rgba(13, 148, 136, 0.14);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12);
}
.tip-reaction-btn.is-disabled,
.tip-reaction-btn:disabled {
    opacity: 0.55;
    cursor: default;
}
.tip-reaction-btn.is-active:disabled {
    opacity: 1;
    cursor: default;
}
.tip-reaction-emoji { font-size: 1.05rem; line-height: 1; }
.tip-reaction-count { min-width: 0.85rem; color: #475569; }
.tip-reactions-detail {
    margin: 0.75rem 0 1rem;
}
.tip-reactions-detail .tip-reaction-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.95rem;
}
.tip-reactions-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.35rem;
}

/* Строка мета в карточках каталога (время, сложность, отзывы) */
.recipe-card .recipe-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 0.5rem;
    width: 100%;
}
.recipe-card .recipe-card-meta-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.4rem;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(13, 148, 136, 0.15);
    min-width: 0;
}
.recipe-card .recipe-card-meta-item i {
    font-size: 0.9rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Заголовок карточки рецепта — 2 строки, при одной строке вторая остаётся пустой */
.recipe-card .recipe-card-title-lines-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em;
    flex: 1;
    min-width: 0;
}

/* Описание в карточке рецепта — 3 строки; лишнее обрезается, при меньшем тексте — высота под 3 строки */
.recipe-card .recipe-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 4.05em;
}

.recipe-card .recipe-card-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.9rem;
}
.recipe-card .recipe-card-rating .bi-star-fill { font-size: 0.95rem; }
.recipe-card .recipe-card-rating-num {
    margin-left: 0.3rem;
    color: #64748b;
    font-weight: 600;
}

/* Иконка способа приготовления (Font Awesome / Bootstrap Icons) в каталоге */
.cooking-method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0.25rem 0.5rem;
}
.cooking-method-badge .cooking-method-icon,
.cooking-method-badge i {
    font-size: 1rem !important;
    font-style: normal !important;
    line-height: 1;
    display: inline-block;
}
.cooking-method-icon-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cooking-method-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}
.cooking-method-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.95rem;
    height: 1.95rem;
    min-width: 1.95rem;
    border-radius: 50%;
    background: #16774A;
    color: #fff;
    cursor: help;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(22, 119, 74, 0.28);
}
.cooking-method-icon-btn i {
    color: #fff !important;
    font-size: 1.05rem;
    line-height: 1;
    width: 1em;
    height: 1em;
    display: inline-block;
}
.cooking-method-icon-btn i::before {
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1;
}

.menu-card .btn-teal, .menu-card .btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    margin-top: auto;
}
.menu-card .btn-teal:hover, .menu-card .btn-success:hover { color: #fff; transform: translateY(-2px); }

/* Мотивация */
/* Домашние хитрости на главной — 4 карточки как в index0000 */
.tips-home-section { padding: 4rem 5%; background: #fff; }
.tips-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 992px) {
    .tips-home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .tips-home-grid { grid-template-columns: 1fr; }
}
.tip-home-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 148, 136, 0.1);
    display: flex;
    flex-direction: column;
}
.tip-home-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.tip-home-card-img { height: 200px; overflow: hidden; flex-shrink: 0; background: var(--light-bg); }
.tip-home-card-img img { width: 100%; height: 100%; object-fit: cover; }
.tip-home-card-noimg { width: 100%; height: 100%; min-height: 200px; }
.tip-home-card-body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.tip-home-card-title { font-size: 1.1rem; font-weight: 600; color: var(--dark-color); margin-bottom: 0.5rem; line-height: 1.3; }
.tip-home-card-content { font-size: 0.9rem; color: #64748b; line-height: 1.5; margin-bottom: 0.75rem; flex-grow: 1; }
.tip-home-card-meta { margin: 0; font-size: 0.85rem; }
.tip-home-card .btn-teal { margin-top: auto; }

/* Подробная карточка хитрости — до 4 изображений */
.tip-detail-card { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.tip-detail-gallery {
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem;
}
.tip-detail-gallery-1 {
    grid-template-columns: 1fr;
}
.tip-detail-gallery-1 .tip-detail-gallery-item { max-height: 280px; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.tip-detail-gallery-1 .tip-detail-gallery-item img { max-width: 100%; max-height: 280px; width: auto; height: auto; object-fit: contain; }
.tip-detail-gallery-2 {
    grid-template-columns: repeat(2, 1fr);
}
.tip-detail-gallery-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}
.tip-detail-gallery-3 .tip-detail-gallery-item:first-child { grid-column: 1; grid-row: 1 / 3; }
.tip-detail-gallery-3 .tip-detail-gallery-item { min-height: 200px; overflow: hidden; }
.tip-detail-gallery-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.tip-detail-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}
.tip-detail-gallery-item img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    display: block;
}
.tip-detail-gallery-2 .tip-detail-gallery-item,
.tip-detail-gallery-4 .tip-detail-gallery-item { min-height: 180px; }
.tip-detail-gallery-3 .tip-detail-gallery-item:first-child { min-height: 100%; }
.tip-detail-gallery-2 .tip-detail-gallery-item img,
.tip-detail-gallery-4 .tip-detail-gallery-item img { max-height: 220px; }
.tip-detail-gallery-3 .tip-detail-gallery-item img { max-height: 220px; }

/* Карусель фотографий на странице хитрости — компактный размер, перелистывание вперёд/назад */
.tip-detail-card .carousel { background: var(--light-bg, #f8f9fa); max-width: 420px; margin: 0 auto; }
.tip-detail-card .carousel-inner { min-height: 200px; }
.tip-detail-card .tip-carousel-img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 0.5rem;
}
.tip-detail-card .tip-carousel-img-wrap img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Кнопки прокрутки карусели: белый фон, обводка #004242, чуть увеличены — видны на светлом и тёмном фоне */
.tip-detail-card .carousel-control-prev,
.tip-detail-card .carousel-control-next {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    background-color: #fff;
    border: 2px solid #004242;
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}
.tip-detail-card .carousel-control-prev { left: 0.5rem; }
.tip-detail-card .carousel-control-next { right: 0.5rem; }
.tip-detail-card .carousel-control-prev:hover,
.tip-detail-card .carousel-control-next:hover {
    background-color: #f0f0f0;
    border-color: #004242;
    opacity: 1;
}
.tip-detail-card .carousel-control-prev-icon,
.tip-detail-card .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-color: #004242;
    background-image: none;
    border-radius: 2px;
    filter: none;
}
.tip-detail-card .carousel-control-prev-icon {
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") no-repeat center;
    mask-size: 100%;
    -webkit-mask-size: 100%;
}
.tip-detail-card .carousel-control-next-icon {
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") no-repeat center;
    mask-size: 100%;
    -webkit-mask-size: 100%;
}
.tip-detail-card .carousel-indicators { margin-bottom: 0.25rem; }
.tip-detail-card .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; }

/* Текстовый блок хитрости — выделение фоном как у блока картинок */
.tip-content-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--light-bg, #f8f9fa);
    padding: 1.25rem 1.5rem;
}
.tip-content-card .tip-content-richtext {
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.tip-content-card .tip-content-richtext b {
    color: var(--dark-color);
}

.motivation-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(45, 212, 191, 0.08) 100%);
    text-align: center;
}
.motivation-content { max-width: 700px; margin: 0 auto; }
.motivation-title { font-size: 1.75rem; color: var(--dark-color); margin-bottom: 1rem; line-height: 1.3; }
.motivation-text { font-size: 1rem; color: #64748b; margin-bottom: 1.5rem; line-height: 1.6; }
.motivation-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dark-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.8);
    box-shadow: var(--shadow);
}
.motivation-author { display: block; margin-top: 0.5rem; font-weight: 600; color: var(--primary-color); font-style: normal; }

/* Футер главной */
.main-home .footer-home {
    background: #003d3d;
    color: #fff;
    padding: 3rem 5% 1.5rem;
}
.main-home .footer-home .footer-content {
    margin-bottom: 2rem;
}

.footer-layout {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.35rem 1.75rem;
    overflow: visible;
}
.footer-layout-left,
.footer-layout-right {
    display: contents;
}
.footer-quote {
    flex: 0 1 360px;
    max-width: 380px;
    min-width: 240px;
    margin-left: 42px; /* половина аватара слева от рамки */
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 1.05rem 1.2rem 1.05rem 2.85rem;
    align-self: center;
    position: relative;
    z-index: 1;
    overflow: visible;
}
.footer-quote-avatar {
    position: absolute;
    left: 0;
    top: 50%;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
    background: #0f766e;
    z-index: 2;
}
.footer-quote-body {
    min-width: 0;
}
.footer-quote-text {
    margin: 0;
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
}
.footer-quote-author {
    display: block;
    margin-top: 0.65rem;
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
}
.footer-brand {
    flex: 0 1 200px;
    max-width: 220px;
    min-width: 0;
}
.footer-nav {
    flex: 0 0 auto;
    min-width: 140px;
}
.footer-popular-block {
    width: 168px;
    flex: 0 0 168px;
}
.main-home .footer-home .footer-logo { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.65rem; }
.main-home .footer-home .footer-about { color: rgba(255,255,255,0.85); font-size: 0.85rem; line-height: 1.55; }
.main-home .footer-home .footer-heading { font-size: 0.95rem; margin-bottom: 0.75rem; }
.main-home .footer-home .footer-links { list-style: none; padding: 0; margin: 0; }
.main-home .footer-home .footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; }
.main-home .footer-home .footer-links a:hover { color: var(--accent-color); }
.main-home .footer-home .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Миниатюры популярного в футере */
.footer-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}
.footer-thumb {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.footer-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    opacity: 1;
}
.footer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.site-footer .footer-heading {
    font-size: 1rem;
    margin-bottom: 0.85rem;
    color: #fff;
}
.site-footer .footer-about {
    color: rgba(255, 255, 255, 0.85);
}
.site-footer .footer-thumbs {
    width: 100%;
    max-width: 168px;
}

@media (max-width: 1200px) {
    .footer-layout {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem 1.5rem;
    }
    .footer-quote {
        flex: 1 1 300px;
        max-width: 420px;
        order: -1;
        width: calc(100% - 42px);
    }
}
@media (max-width: 991px) {
    .footer-brand,
    .footer-nav,
    .footer-popular-block {
        flex: 1 1 180px;
        max-width: 240px;
        width: auto;
    }
    .site-footer .footer-thumbs {
        max-width: 240px;
    }
}
@media (max-width: 700px) {
    .footer-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-brand,
    .footer-nav,
    .footer-popular-block,
    .footer-quote {
        flex: 0 1 auto;
        width: 100%;
        max-width: 360px;
    }
    .footer-quote {
        width: calc(100% - 42px);
        margin-left: 42px;
        text-align: left;
        order: 0;
    }
    .footer-nav .list-unstyled,
    .footer-links {
        display: inline-block;
        text-align: left;
    }
    .footer-quote-avatar {
        width: 68px;
        height: 68px;
    }
    .footer-quote-text {
        font-size: 0.98rem;
    }
    .footer-thumbs,
    .site-footer .footer-thumbs {
        max-width: 220px;
        margin-inline: auto;
    }
}
@media (max-width: 575px) {
    .footer-popular-block {
        max-width: none;
    }
}

/* Кнопка «Наверх» */
.home-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-hover);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.home-button.visible { opacity: 1; visibility: visible; }
.home-button:hover { transform: translateY(-4px); }

/* Заголовки секций на главной (в контейнере) */
.home-section-title {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.btn-teal {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-teal:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0e7490);
    color: #fff;
    box-shadow: var(--shadow-hover);
}

.btn-outline-teal {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-teal:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Переопределение Bootstrap success на сине-зелёный */
.btn-success, .bg-success { background: var(--primary-color) !important; }
.btn-success:hover { background: var(--primary-dark) !important; }
.badge.bg-success { background: var(--primary-color) !important; }
.card-header.bg-success { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important; }
.list-group-item.active { background: var(--primary-color) !important; }

main {
    flex: 1;
}

/* ===== АНИМАЦИИ ===== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes snowfall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0.3; }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Карточки рецептов */
.recipe-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeInUp 0.5s ease backwards;
    overflow: hidden;
}

.recipe-card:nth-child(1) { animation-delay: 0.05s; }
.recipe-card:nth-child(2) { animation-delay: 0.1s; }
.recipe-card:nth-child(3) { animation-delay: 0.15s; }
.recipe-card:nth-child(4) { animation-delay: 0.2s; }
.recipe-card:nth-child(5) { animation-delay: 0.25s; }
.recipe-card:nth-child(6) { animation-delay: 0.3s; }

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.recipe-card .card-img-top {
    transition: transform 0.5s ease;
}

.recipe-card:hover .card-img-top {
    transform: scale(1.1);
}

.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* Логотип в основном контенте (если используется отдельно) */
.navbar-brand .navbar-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

/* Название сайта в одну строку, рукописный стиль Caveat */
.header-brand-bar .site-name-handwriting {
    color: var(--dark-color) !important;
}
.site-name-handwriting {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.15;
    font-family: 'Caveat', cursive !important;
    font-size: 3.65rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.01em;
    padding-bottom: 0.08em;
    border-bottom: none !important;
    text-decoration: none !important;
    -webkit-font-smoothing: antialiased;
}

.header-logo,
.header-logo:hover,
.header-logo:focus {
    text-decoration: none !important;
}

.site-name-before,
.site-name-after,
.site-name-z {
    position: relative;
    display: inline-block;
    font-family: inherit !important;
    font-weight: inherit;
    text-decoration: none !important;
}

.site-name-before::after,
.site-name-after::after {
    content: '';
    position: absolute;
    height: 0.09em;
    min-height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform: rotate(-2.2deg);
    transform-origin: center center;
    pointer-events: none;
}

.site-name-before::after {
    left: 0.04em;
    right: 0.35em; /* разрыв у буквы «з» */
    bottom: -0.02em;
}

.site-name-after::after {
    left: 0.06em;
    right: 0.04em;
    bottom: 0.1em;
    transform: rotate(-1.6deg);
    transform-origin: right center;
}

.header-logo:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}


/* Hero секция */
.hero-section {
    background: linear-gradient(135deg, #198754 0%, #0d5c36 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

/* Кнопки */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

/* ===== ЛАЙКИ / ИЗБРАННОЕ ===== */

.favorite-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #eee;
    font-size: 1.3rem;
}

.favorite-btn:hover {
    transform: scale(1.15);
    border-color: #dc3545;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.favorite-btn.active {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    animation: heartBeat 0.6s ease;
}

.favorite-btn .bi-heart-fill {
    color: inherit;
}

.favorite-count {
    font-size: 0.85rem;
    color: #666;
}

/* ===== РЕЙТИНГ ===== */

.rating-stars {
    display: inline-flex;
    gap: 3px;
}

.rating-stars .star {
    cursor: pointer;
    color: #ddd;
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

.rating-stars .star:hover {
    transform: scale(1.3);
}

.rating-stars .star.active,
.rating-stars .star.hover {
    color: #ffc107;
}

.rating-stars:hover .star {
    color: #ffc107;
}

.rating-stars:hover .star:hover ~ .star {
    color: #ddd;
}

.rating-display {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rating-display .bi-star-fill {
    color: #ffc107;
}

.rating-display .bi-star-half {
    color: #ffc107;
}

.rating-display .bi-star {
    color: #ddd;
}

.rating-value {
    font-weight: bold;
    color: #333;
}

.rating-count {
    color: #888;
    font-size: 0.85rem;
}

/* ===== КАЛЬКУЛЯТОР ПОРЦИЙ ===== (высота уменьшена на 40%) */

.portions-calculator {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border-radius: 12px;
    padding: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
    text-align: center;
}

.portions-calculator h5 {
    color: white;
    margin-bottom: 12px;
    font-size: 1rem;
}

.portions-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.portions-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #198754;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    line-height: 1;
    padding: 0;
}

.portions-btn:hover {
    background: #f8f9fa;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.portions-btn:active {
    transform: scale(0.95);
}

.portions-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
    min-width: 48px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.portions-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* Блок калорийности и веса — как заголовок «Комментарии», высота +20% */
#recipeCaloriesWeightBlock {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
    color: #fff !important;
    padding: 1.2rem 1.5rem !important;
    border-radius: var(--border-radius, 16px);
}
#recipeCaloriesWeightBlock .text-muted {
    color: rgba(255,255,255,0.85) !important;
}
#recipeCaloriesWeightBlock strong {
    color: #fff;
}

.ingredient-amount {
    transition: none;
}

/* Форма добавления рецепта: кол-во на 4 знака, калорийность только для просмотра из каталога */
.ingredient-qty-input {
    min-width: 4.5em;
    max-width: 5.5em;
}
.ingredient-calories-input.bg-light {
    cursor: default;
}

/* Блок ингредиентов — без анимации */
.list-group-ingredients .list-group-item {
    transition: none !important;
    transform: none !important;
    padding-left: 1rem !important;
}

/* Мини-картинки ингредиентов на странице рецепта */
.list-group-ingredients .ingredient-img-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0fdfa;
    border: 1px solid rgba(13, 148, 136, 0.2);
}
.list-group-ingredients .ingredient-mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.list-group-ingredients .ingredient-name {
    font-weight: 500;
}
.list-group-ingredients .ingredient-clarification {
    font-size: 0.8em;
    margin-top: 0.15rem;
}
.list-group-ingredients .ingredient-placeholder {
    opacity: 0.6;
}

/* Картинки в рецепте (шаги и «Может пригодиться») — не более 150×150 px */
.recipe-inline-img {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
}
/* Шаги приготовления с фото */
.steps-list .step-img-wrap {
    flex-shrink: 0;
    width: 150px;
    max-width: 150px;
    height: 150px;
    max-height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0fdfa;
    border: 1px solid rgba(13, 148, 136, 0.2);
}
.steps-list .step-img,
.steps-list .recipe-inline-img {
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
}
.steps-list .step-description {
    line-height: 1.5;
}
/* Блок алгоритма — без анимации, трансформации и сдвига при наведении */
.steps-list .step-item {
    transition: none !important;
    transform: none !important;
    padding-left: 1rem !important;
}
.steps-list .step-item:hover {
    background: #fff !important;
    padding-left: 1rem !important;
    transition: none !important;
    transform: none !important;
    margin-left: 0 !important;
    border-left-width: 3px !important;
}
@media (max-width: 767px) {
    .steps-list .step-img-wrap { width: 120px; height: 120px; max-width: 120px; max-height: 120px; }
    .steps-list .step-img { max-width: 120px; max-height: 120px; }
}

/* edit-recipe: файл и превью в одну линию, скруглённая кнопка, подсказка */
.edit-recipe-file-cell {
    flex-shrink: 0;
    max-width: none;
}
.file-input-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.file-input-label-text {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 1.5rem;
    background: #fff;
    color: #212529;
}
.file-input-wrap:hover .file-input-label-text {
    border-color: var(--primary-color);
    background: #f0fdfa;
}
.file-input-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}
.edit-recipe-thumb.edit-recipe-thumb-preview {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0fdfa;
    border: 1px solid rgba(13, 148, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.edit-recipe-thumb-preview .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.edit-recipe-thumb img {
    display: block;
}
.edit-recipe-text-narrow {
    flex: 0 1 60%;
    min-width: 160px;
}

/* ===== СЕЗОННЫЙ БАННЕР ===== */

.seasonal-banner {
    position: relative;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    overflow: hidden;
    color: white;
}

/* Зима */
.seasonal-banner.winter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4facfe 100%);
}

.seasonal-banner.winter::before {
    content: '❄️';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: float 3s ease-in-out infinite;
}

/* Весна */
.seasonal-banner.spring {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
}

.seasonal-banner.spring::before {
    content: '🌸';
    position: absolute;
    font-size: 100px;
    opacity: 0.15;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: float 3s ease-in-out infinite;
}

/* Лето */
.seasonal-banner.summer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #ffecd2 100%);
}

.seasonal-banner.summer::before {
    content: '☀️';
    position: absolute;
    font-size: 100px;
    opacity: 0.15;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: float 3s ease-in-out infinite;
}

/* Осень */
.seasonal-banner.autumn {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
}

.seasonal-banner.autumn::before {
    content: '🍂';
    position: absolute;
    font-size: 100px;
    opacity: 0.15;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: float 3s ease-in-out infinite;
}

.seasonal-banner h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.seasonal-banner p {
    margin: 0;
    opacity: 0.9;
}

.seasonal-recipes {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.seasonal-tag {
    background: rgba(255,255,255,0.25);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.seasonal-tag:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

/* ===== ПРОЧЕЕ ===== */

/* Бейджи */
.badge {
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Футер */
footer {
    margin-top: auto;
}
.site-footer {
    background-color: #003d3d !important;
}
.site-footer a {
    transition: all 0.3s ease;
}
.site-footer a:hover {
    opacity: 0.9;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Список ингредиентов */
.list-group-item {
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: #f8f9fa;
}
/* Без hover-эффекта и сдвига в блоке ингредиентов */
.list-group-ingredients .list-group-item:hover {
    background: #fff !important;
    padding-left: 1rem !important;
    transition: none !important;
    transform: none !important;
    margin-left: 0 !important;
    border-left-width: 3px !important;
}

/* Шаги приготовления — без анимации */
.step-item {
    transition: none;
}

.step-number {
    min-width: 40px;
    justify-content: center;
}

/* Модальные окна */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.8);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Алерты */
.alert {
    animation: fadeIn 0.5s ease;
}

/* Хлебные крошки */
.breadcrumb {
    background: transparent;
    padding: 0;
}

/* Карточки на странице рецепта */
.info-card {
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Печать */
@media print {
    .navbar, footer, .btn, .dropdown, .favorite-btn, .rating-stars, .portions-calculator, .seasonal-banner {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    * {
        animation: none !important;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .seasonal-banner {
        padding: 20px;
    }
    
    .seasonal-banner h3 {
        font-size: 1.4rem;
    }
    
    .seasonal-banner::before {
        font-size: 60px;
        opacity: 0.1;
    }
    
    .portions-value {
        font-size: 2rem;
    }
    
    .portions-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}

/* ========== Тёмная тема ========== */
[data-bs-theme="dark"] body {
    background-color: #1a1d21;
}
[data-bs-theme="dark"] .home-hero {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2) 0%, rgba(8, 145, 178, 0.2) 100%);
    color: #e2e8f0;
}
[data-bs-theme="dark"] .home-hero h1,
[data-bs-theme="dark"] .home-hero .hero-title,
[data-bs-theme="dark"] .home-hero .hero-lead,
[data-bs-theme="dark"] .home-hero .hero-stat-label {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .home-hero .hero-lead { color: #94a3b8; }
[data-bs-theme="dark"] .hero-photo-frame {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
[data-bs-theme="dark"] .hero-quote-card {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(45, 212, 191, 0.25);
}
[data-bs-theme="dark"] .hero-quote-text {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .quick-access,
[data-bs-theme="dark"] .classify-section {
    background: #212529;
}
[data-bs-theme="dark"] .section-title { color: #e2e8f0; }
[data-bs-theme="dark"] .section-subtitle { color: #94a3b8; }
[data-bs-theme="dark"] .quick-card {
    background: #2d3238;
    border: 1px solid #3d444d;
}
[data-bs-theme="dark"] .quick-card:hover {
    background: rgba(13, 148, 136, 0.15);
    border-color: var(--primary-color);
}
[data-bs-theme="dark"] .quick-card .quick-title { color: #e2e8f0; }
[data-bs-theme="dark"] .quick-card .quick-desc { color: #94a3b8; }
[data-bs-theme="dark"] .classify-group-title { color: #e2e8f0; }
[data-bs-theme="dark"] .classify-group-desc { color: #94a3b8; }
[data-bs-theme="dark"] .classify-card {
    background: #2d3238;
    border-color: #3d444d;
}
[data-bs-theme="dark"] .classify-card:hover,
[data-bs-theme="dark"] .classify-card-btn.is-active {
    background: rgba(13, 148, 136, 0.15);
    border-color: var(--primary-color);
}
[data-bs-theme="dark"] .classify-card-title { color: #e2e8f0; }
[data-bs-theme="dark"] .classify-card-sub { color: #94a3b8; }
[data-bs-theme="dark"] .classify-extra { border-top-color: #3d444d; }
[data-bs-theme="dark"] .classify-extra-link {
    background: #2d3238;
    color: #e2e8f0;
    border-color: #3d444d;
}
[data-bs-theme="dark"] .classify-home {
    background: linear-gradient(180deg, #1a1d21 0%, #212529 100%);
}
[data-bs-theme="dark"] .classify-home-shell {
    background: #2d3238;
    border-color: #3d444d;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
[data-bs-theme="dark"] .classify-home-eyebrow {
    background: rgba(13, 148, 136, 0.18);
    color: var(--accent-color);
}
[data-bs-theme="dark"] .classify-home-title { color: #e2e8f0; }
[data-bs-theme="dark"] .classify-home-sub { color: #94a3b8; }
[data-bs-theme="dark"] .classify-home-panel-desc {
    background: rgba(13, 148, 136, 0.1);
    color: #94a3b8;
}
[data-bs-theme="dark"] .classify-home-all {
    background: #212529;
    border-color: #3d444d;
    color: var(--accent-color);
}
[data-bs-theme="dark"] .classify-tabs {
    background: rgba(0, 0, 0, 0.2);
    border-color: #3d444d;
}
[data-bs-theme="dark"] .classify-tab {
    background: transparent;
    color: #94a3b8;
}
[data-bs-theme="dark"] .classify-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}
[data-bs-theme="dark"] .classify-tab.is-active {
    background: #212529;
    border-color: #3d444d;
    color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
[data-bs-theme="dark"] .classify-chip {
    background: #212529;
    border-color: #3d444d;
}
[data-bs-theme="dark"] .classify-chip:hover {
    background: rgba(13, 148, 136, 0.15);
    border-color: var(--primary-color);
}
[data-bs-theme="dark"] .classify-chip-icon {
    background: rgba(13, 148, 136, 0.2);
    color: var(--accent-color);
}
[data-bs-theme="dark"] .classify-chip-title { color: #e2e8f0; }
[data-bs-theme="dark"] .classify-chip-sub { color: #94a3b8; }
[data-bs-theme="dark"] .classify-chip-history {
    color: #94a3b8;
    border-top-color: rgba(148, 163, 184, 0.25);
}
[data-bs-theme="dark"] .classify-home-extra { border-top-color: #3d444d; }
[data-bs-theme="dark"] .classify-home-extra-label { color: #94a3b8; }
[data-bs-theme="dark"] .classify-home-extra .classify-extra-link {
    background: #212529;
}
[data-bs-theme="dark"] .classify-panel {
    background: #2d3238;
    border-color: #3d444d;
}
[data-bs-theme="dark"] .classify-panel-head { color: #e2e8f0; }
[data-bs-theme="dark"] .classify-recipe-card {
    background: #212529;
    border-color: #3d444d;
}
[data-bs-theme="dark"] .classify-recipe-title { color: #e2e8f0; }
[data-bs-theme="dark"] .classify-recipe-desc { color: #94a3b8; }
[data-bs-theme="dark"] .slider-section { background-color: #212529; }
[data-bs-theme="dark"] .slider-prev,
[data-bs-theme="dark"] .slider-next {
    background: rgba(45, 50, 56, 0.95);
    color: #e2e8f0;
}
[data-bs-theme="dark"] .slider-prev:hover,
[data-bs-theme="dark"] .slider-next:hover { background: #2d3238; }
[data-bs-theme="dark"] .promo-blocks { background-color: #212529; }
[data-bs-theme="dark"] .promo-card {
    background: #2d3238;
    border: 1px solid #3d444d;
}
/* Популярные рецепты и Домашние хитрости — тёмный фон секции и карточек */
[data-bs-theme="dark"] .menu-cards-section {
    background-color: #212529;
}
[data-bs-theme="dark"] .menu-card {
    background: #2d3238;
    border: 1px solid #3d444d;
}
[data-bs-theme="dark"] .menu-card:hover {
    background: #343a40;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
[data-bs-theme="dark"] .menu-card .menu-card-title { color: #e2e8f0; }
[data-bs-theme="dark"] .menu-card .menu-card-desc { color: #94a3b8; }
[data-bs-theme="dark"] .menu-card .menu-card-cat {
    background: rgba(13, 148, 136, 0.25);
    color: var(--accent-color);
}
[data-bs-theme="dark"] .menu-card .menu-card-meta-item { color: #94a3b8; }
[data-bs-theme="dark"] .menu-card .menu-card-meta-item i { color: var(--accent-color); }
[data-bs-theme="dark"] .menu-card .menu-card-rating-num { color: #94a3b8; }
[data-bs-theme="dark"] .menu-card .menu-card-img-link + .menu-card-body { border-top: 1px solid #3d444d; }
/* Фильтры хитростей в тёмной теме */
[data-bs-theme="dark"] .tips-stat-card {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(45, 212, 191, 0.08) 100%);
    border-color: rgba(13, 148, 136, 0.35);
}
[data-bs-theme="dark"] .tips-stat-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
[data-bs-theme="dark"] .tips-stat-value { color: #e2e8f0; }
[data-bs-theme="dark"] .tips-stat-label { color: #94a3b8; }
[data-bs-theme="dark"] .tips-stats-subtitle { color: #94a3b8; }
[data-bs-theme="dark"] .tips-filters-form .form-select,
[data-bs-theme="dark"] .tips-filters-form .form-control {
    background-color: #2d3238;
    border-color: #3d444d;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .tips-filters-form--v2 {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.14) 0%, rgba(33, 37, 41, 0.9) 100%);
    border-color: rgba(45, 212, 191, 0.25);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
[data-bs-theme="dark"] .tips-search-input {
    background: #2d3238;
    border-color: #3d444d;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .tips-search-icon { color: #5eead4; }
[data-bs-theme="dark"] .tips-reset-btn {
    background: #2d3238;
    border-color: #3d444d;
    color: #5eead4;
}
[data-bs-theme="dark"] .tips-filter-label { color: #94a3b8; }
[data-bs-theme="dark"] .header-brand-bar {
    background: #212529;
    border-bottom-color: #3d444d;
}
[data-bs-theme="dark"] .header-brand-bar .site-name-handwriting {
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .header-icon-btn.theme-toggle { color: #fff; }
[data-bs-theme="dark"] .header-icon-btn.theme-toggle:hover { color: #fff; }

/* Блок выбора кухни по флагу (add/edit recipe) */
.cuisine-flags .cuisine-flag-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.cuisine-flags .cuisine-flag-item:hover {
    background: var(--light-bg);
    border-color: rgba(13, 148, 136, 0.3);
}
.cuisine-flags .cuisine-flag-item.cuisine-flag-active {
    border-color: var(--primary-color);
    background: rgba(13, 148, 136, 0.1);
}
.cuisine-flags .cuisine-flag-item.cuisine-flag-active .cuisine-flag-name {
    color: var(--primary-dark);
    font-weight: 600;
}
.cuisine-flags .cuisine-flag-img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
}
.cuisine-flags .cuisine-flag-name {
    display: none;
}
/* Флаг кухни в карточке рецепта */
.cuisine-flag-in-card {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    object-fit: cover;
    border-radius: 2px;
}

/* Ползунок времени приготовления */
.cooking-time-slider-wrap .form-range {
    cursor: pointer;
}
.cooking-time-slider-wrap #cooking_time_display {
    color: var(--primary-dark);
}

/* Пагинация в стиле сайта (каталог, хитрости, админ) */
.pagination {
    gap: 0.35rem;
}
.pagination .page-link {
    color: var(--primary-dark);
    background-color: #fff;
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.85rem;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pagination .page-link:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}
.pagination .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow);
}
.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

[data-bs-theme="dark"] .pagination .page-link {
    color: var(--accent-color);
    background-color: #2d3238;
    border-color: #3d444d;
}
[data-bs-theme="dark"] .pagination .page-link:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
}
[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-dark);
}
[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
    color: #64748b;
    background-color: #1e293b;
    border-color: #334155;
}

/* Редактор описания с форматированием (полужирный, цвет, подчёркивание) */
.richtext-toolbar { flex-wrap: wrap; }
.richtext-editor.form-control {
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.richtext-editor:empty::before {
    content: attr(data-placeholder);
    color: #6c757d;
}
.richtext-color, .richtext-color-edit, .richtext-color-desc {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border-radius: 4px;
}
.tip-content-richtext span[style],
.recipe-description-richtext span[style] { font-weight: inherit; }

/* Поиск ингредиентов в форме рецепта */
.ingredient-search-dropdown { list-style: none; }
.ingredient-dropdown-item {
    cursor: pointer;
    padding: 0.35rem 0.75rem;
}
.ingredient-dropdown-item:hover { background-color: #f0fdfa; }

/* Превью фото с кнопкой удалить */
.tip-photo-preview-wrap, .recipe-photo-preview-wrap { align-items: center; gap: 0.5rem; }
.tip-photo-remove, .recipe-photo-remove { flex-shrink: 0; }

/* ================================================================
   КАТАЛОГ — динамичный современный дизайн
   ================================================================ */

/* --- Scroll reveal базовые классы --- */
.cat-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-reveal.cat-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO: анимированный градиент-баннер --- */
.cat-hero {
    --mx: 0.5;
    --my: 0.5;
    position: relative;
    border-radius: var(--border-radius);
    padding: 2.25rem 2.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 40%, var(--dark-color) 100%);
    background-size: 200% 200%;
    animation: catHeroGradient 8s ease infinite;
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.3);
}
@keyframes catHeroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.cat-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
    transition: transform 0.4s ease-out;
}
.cat-hero-glow-1 {
    width: 340px; height: 340px;
    top: -40%; right: -8%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, transparent 65%);
    animation: catFloat 6s ease-in-out infinite;
    transform: translateX(calc((var(--mx) - 0.5) * 40px)) translateY(calc((var(--my) - 0.5) * 40px));
}
.cat-hero-glow-2 {
    width: 250px; height: 250px;
    bottom: -30%; left: 15%;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.4) 0%, transparent 65%);
    animation: catFloat 7s ease-in-out infinite 1s;
    transform: translateX(calc((var(--mx) - 0.5) * -30px)) translateY(calc((var(--my) - 0.5) * -30px));
}
.cat-hero-glow-3 {
    width: 180px; height: 180px;
    top: 20%; left: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 65%);
    animation: catFloat 5s ease-in-out infinite 0.5s;
}
@keyframes catFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.05); }
}
.cat-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.cat-hero-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cat-hero-icon-wrap {
    width: 4.5rem; height: 4.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: catIconPulse 3s ease-in-out infinite;
}
@keyframes catIconPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3), 0 0 0 0 rgba(45,212,191,0.4); }
    50% { box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3), 0 0 0 12px rgba(45,212,191,0); }
}
.cat-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 0.3rem;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.cat-hero-sub {
    font-size: 1.05rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}
.cat-hero-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cat-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.65rem 1.25rem;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}
.cat-hero-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.25);
}
.cat-hero-stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cat-hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Быстрые фильтры-чипсы --- */
.cat-quick-filters {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.25rem;
    overflow: visible;
}
.cat-quick-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.75rem 0.55rem 0;
    border-right: 2px solid rgba(13, 148, 136, 0.2);
    margin-right: 0.15rem;
    cursor: default;
    flex-shrink: 0;
}
.cat-quick-label i { color: #f59e0b; }
.cat-quick-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}
.cat-quick-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-quick-chip i { font-size: 0.9rem; opacity: 0.7; transition: opacity 0.2s; flex-shrink: 0; }
.cat-quick-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
    background: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.15);
    text-decoration: none;
}
.cat-quick-chip:hover i { opacity: 1; }
.cat-quick-chip.is-active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.cat-quick-chip.is-active i { opacity: 1; }
@media (max-width: 991px) {
    .cat-quick-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .cat-quick-filters {
        flex-direction: column;
        gap: 0.5rem;
    }
    .cat-quick-label {
        border-right: none;
        border-bottom: 2px solid rgba(13, 148, 136, 0.2);
        padding: 0 0 0.5rem;
        margin: 0;
        width: 100%;
    }
}

/* --- Заголовок секции --- */
.cat-section-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.cat-section-head-icon {
    width: 3rem; height: 3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.25);
}
.cat-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0 0 0.15rem;
}
.cat-section-desc {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0;
}
.cat-filter-badge {
    font-size: 0.75rem;
    background: rgba(13, 148, 136, 0.15);
    color: var(--primary-dark);
    padding: 0.15rem 0.55rem;
    border-radius: 8px;
    font-weight: 700;
    vertical-align: middle;
}

/* --- Фильтр-панель: сворачиваемая --- */
.catalog-filter-panel {
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.6) 0%, #fff 100%);
    border: 1.5px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.08);
    overflow: hidden;
}
.catalog-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    background: none;
    border: none;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.catalog-filter-toggle:hover { background: rgba(13, 148, 136, 0.04); }
.catalog-filter-toggle-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.catalog-filter-toggle-text i {
    color: var(--primary-color);
    font-size: 1.2rem;
}
.catalog-filter-toggle-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-left: auto;
    margin-right: 0.5rem;
}
.catalog-filter-toggle-chevron {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: transform 0.35s ease;
}
.catalog-filter-body {
    padding: 0 1.5rem 1.5rem;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 1.25rem;
}
.catalog-filter-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 650;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.catalog-filter-label i {
    font-size: 0.82rem;
    color: var(--primary-color);
}
.catalog-filter-input {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    background: #fff !important;
}
.catalog-filter-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12) !important;
}
.catalog-filter-input:hover:not(:focus) {
    border-color: rgba(13, 148, 136, 0.4) !important;
}
.catalog-filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(13, 148, 136, 0.15);
    margin-top: 0.25rem;
}
.catalog-filter-btn-apply {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    font-weight: 650;
    padding: 0.6rem 1.75rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}
.catalog-filter-btn-apply:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--dark-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}
.catalog-filter-btn-reset {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.25s ease;
}
.catalog-filter-btn-reset:hover {
    transform: translateY(-2px);
}
.catalog-filter-active-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(13, 148, 136, 0.12);
    font-size: 0.85rem;
    color: #64748b;
}
.catalog-filter-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 8px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    animation: chipIn 0.3s ease;
}
@keyframes chipIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Тулбар: счётчик + сортировка --- */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.catalog-toolbar-count {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #64748b;
}
.catalog-toolbar-count-num {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.catalog-toolbar-pages {
    color: #94a3b8;
    font-size: 0.85rem;
}
.catalog-sort-group {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    background: #fff;
    border: 1.5px solid rgba(13, 148, 136, 0.2);
    border-radius: 14px;
    padding: 0.35rem;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.06);
}
.catalog-sort-label {
    color: var(--primary-color);
    padding: 0 0.65rem 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.catalog-sort-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 9px;
    transition: all 0.22s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.catalog-sort-btn i { font-size: 0.85rem; }
.catalog-sort-btn:hover {
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary-dark);
    text-decoration: none;
}
.catalog-sort-btn.is-active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* --- Рецепт-карточка: динамика + shine --- */
.recipe-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.18);
}
.recipe-card .recipe-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}
.recipe-card .recipe-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.recipe-card:hover .recipe-card-img {
    transform: scale(1.12);
}
/* Градиентный overlay на изображении */
.recipe-card .recipe-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 25%, transparent 60%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 1;
}
/* Shine-эффект — скользит по изображению при hover */
.recipe-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
    transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.recipe-card:hover .recipe-card-shine {
    left: 130%;
}
/* Бейджи на изображении */
.recipe-card-cat-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recipe-card-rating-badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 3;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}
.recipe-card-time-badge {
    position: absolute;
    bottom: 0.7rem;
    left: 0.7rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.22rem 0.6rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(4px);
}
.recipe-card-diet-badges {
    position: absolute;
    bottom: 0.7rem;
    right: 0.7rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.recipe-card-diet-badge {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: help;
    pointer-events: auto;
}
.recipe-card-diet-badge.is-veg {
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.45);
}
.recipe-card-diet-badge .recipe-card-diet-leaf {
    display: block;
    width: 15px;
    height: 15px;
    color: #fff;
    flex-shrink: 0;
}
.recipe-card-diet-badge.is-hearty {
    background: linear-gradient(135deg, #f97316, #c2410c);
}
.menu-card {
    position: relative;
}
.menu-card-img-link {
    position: relative;
}
.menu-card .recipe-card-diet-badges {
    bottom: 0.6rem;
    right: 0.6rem;
}
.recipe-card-view-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    font-weight: 650;
    border-radius: 10px;
    padding: 0.55rem 1rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.recipe-card-view-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.recipe-card-view-btn:hover::before { left: 100%; }
.recipe-card-view-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.35);
}
.recipe-card .card-body { padding: 1rem 1.1rem 0.5rem; }
.recipe-card .card-footer { border-top: none; padding: 0 1.1rem 1.1rem; background: transparent; }
/* Мета-ячейки с hover */
.recipe-card .recipe-card-meta-item {
    transition: background 0.2s ease, transform 0.2s ease;
}
.recipe-card:hover .recipe-card-meta-item {
    background: rgba(13, 148, 136, 0.12);
}
.recipe-card .recipe-card-meta-item:hover {
    transform: translateY(-2px);
}

/* --- Пустое состояние --- */
.catalog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.7) 0%, #fff 100%);
    border: 2px dashed rgba(13, 148, 136, 0.25);
    border-radius: var(--border-radius);
    color: #64748b;
}
.catalog-empty-icon {
    width: 5rem; height: 5rem;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    animation: catIconPulse 3s ease-in-out infinite;
}
.catalog-empty-title {
    font-size: 1.4rem;
    font-weight: 750;
    color: var(--dark-color);
    margin: 0 0 0.5rem;
}
.catalog-empty-text {
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}
.catalog-empty-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    font-weight: 650;
    padding: 0.65rem 1.75rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}
.catalog-empty-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--dark-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .cat-hero { padding: 1.5rem 1.25rem; }
    .cat-hero-title { font-size: 1.6rem; }
    .cat-hero-sub { font-size: 0.88rem; }
    .cat-hero-icon-wrap { width: 3.2rem; height: 3.2rem; font-size: 1.6rem; }
    .cat-hero-stats { width: 100%; justify-content: space-around; }
    .cat-hero-stat { padding: 0.5rem 0.85rem; }
    .cat-hero-stat-num { font-size: 1.35rem; }
    .cat-section-title { font-size: 1.2rem; }
    .cat-section-head-icon { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; }
    .catalog-toolbar { flex-direction: column; align-items: flex-start; }
    .catalog-sort-group { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .recipe-card .recipe-card-img-wrap { height: 175px; }
    .catalog-filter-toggle-sub { display: none; }
}

/* --- Тёмная тема: каталог --- */
[data-bs-theme="dark"] .cat-hero {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
[data-bs-theme="dark"] .cat-quick-chip {
    background: #2d3238;
    border-color: #3d444d;
    color: #94a3b8;
}
[data-bs-theme="dark"] .cat-quick-chip:hover {
    border-color: var(--primary-color);
    background: rgba(13, 148, 136, 0.15);
    color: var(--accent-color);
}
[data-bs-theme="dark"] .cat-quick-chip.is-active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-dark);
    color: #fff;
}
[data-bs-theme="dark"] .cat-section-title { color: #e2e8f0; }
[data-bs-theme="dark"] .cat-section-desc { color: #94a3b8; }
[data-bs-theme="dark"] .cat-filter-badge {
    background: rgba(13, 148, 136, 0.2);
    color: var(--accent-color);
}
[data-bs-theme="dark"] .catalog-filter-panel {
    background: #2d3238;
    border-color: #3d444d;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
[data-bs-theme="dark"] .catalog-filter-toggle { color: #e2e8f0; }
[data-bs-theme="dark"] .catalog-filter-toggle:hover { background: rgba(255, 255, 255, 0.03); }
[data-bs-theme="dark"] .catalog-filter-toggle-text { color: #e2e8f0; }
[data-bs-theme="dark"] .catalog-filter-toggle-sub { color: #64748b; }
[data-bs-theme="dark"] .catalog-filter-label { color: #94a3b8; }
[data-bs-theme="dark"] .catalog-filter-input {
    background: #212529 !important;
    border-color: #3d444d !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .catalog-filter-input:focus { border-color: var(--primary-color) !important; }
[data-bs-theme="dark"] .catalog-filter-actions { border-top-color: #3d444d; }
[data-bs-theme="dark"] .catalog-filter-active-bar { color: #94a3b8; border-top-color: #3d444d; }
[data-bs-theme="dark"] .catalog-filter-chip {
    background: rgba(13, 148, 136, 0.2);
    color: var(--accent-color);
    border-color: rgba(13, 148, 136, 0.35);
}
[data-bs-theme="dark"] .catalog-toolbar-count { color: #94a3b8; }
[data-bs-theme="dark"] .catalog-sort-group { background: #2d3238; border-color: #3d444d; }
[data-bs-theme="dark"] .catalog-sort-btn { color: #94a3b8; }
[data-bs-theme="dark"] .catalog-sort-btn:hover {
    background: rgba(13, 148, 136, 0.15);
    color: var(--accent-color);
}
[data-bs-theme="dark"] .recipe-card { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
[data-bs-theme="dark"] .recipe-card:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
[data-bs-theme="dark"] .recipe-card .recipe-card-img-wrap { background: #1e293b; }
[data-bs-theme="dark"] .recipe-card-cat-badge { background: rgba(45, 50, 56, 0.92); color: var(--accent-color); }
[data-bs-theme="dark"] .catalog-empty-state {
    background: linear-gradient(180deg, #2d3238 0%, #212529 100%);
    border-color: #3d444d;
    color: #94a3b8;
}
[data-bs-theme="dark"] .catalog-empty-title { color: #e2e8f0; }
[data-bs-theme="dark"] .catalog-empty-icon {
    background: rgba(13, 148, 136, 0.2);
    color: var(--accent-color);
}
