

/* Start:/local/components/china/recipes/templates/.default/style.css?177663602229958*/
/* ================================================================
   China-RU · Кулинарный портал (/recipes/)
   Web 3.0 дизайн · единый стиль для всех 5 шаблонов раздела
   ================================================================ */

:root {
    --rec-brand: #c62828;
    --rec-brand-light: #e53935;
    --rec-brand-dark: #8e1f1f;
    --rec-warm: #f59e0b;
    --rec-accent: #10b981;
    --rec-ink: #0f1419;
    --rec-ink-2: #1a1f2e;
    --rec-text: #1a1f2e;
    --rec-text-muted: #5f6b7c;
    --rec-text-dim: #8a94a6;
    --rec-border: #e6eaf0;
    --rec-border-soft: #eef1f5;
    --rec-bg: #ffffff;
    --rec-bg-soft: #f7f9fc;
    --rec-shadow-sm: 0 2px 8px rgba(15, 20, 25, 0.04);
    --rec-shadow-md: 0 8px 24px rgba(15, 20, 25, 0.08);
    --rec-shadow-lg: 0 20px 48px rgba(15, 20, 25, 0.14);
    --rec-radius-sm: 10px;
    --rec-radius: 14px;
    --rec-radius-lg: 22px;
    --rec-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rec-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Цвета для категорий (градиенты placeholder'ов) */
    --rec-cat-salad:    linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
    --rec-cat-soup:     linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --rec-cat-noodle:   linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    --rec-cat-rice:     linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    --rec-cat-dumpling: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    --rec-cat-chicken:  linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    --rec-cat-pork:     linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    --rec-cat-beef:     linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --rec-cat-duck:     linear-gradient(135deg, #b45309 0%, #78350f 100%);
    --rec-cat-seafood:  linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --rec-cat-veggie:   linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    --rec-cat-dessert:  linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    --rec-cat-sauce:    linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    --rec-cat-drink:    linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.rec-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 0 80px;
    font-family: var(--rec-font);
    color: var(--rec-text);
}

.rec-page h1, .rec-page h2, .rec-page h3 { margin: 0; color: var(--rec-ink); letter-spacing: -.02em; }

/* ================================================================
   1. HERO на главной
   ================================================================ */

.rec-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--rec-radius-lg);
    padding: 44px 56px 48px;
    margin-bottom: 32px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background-color: var(--rec-ink);
    background-image:
        linear-gradient(135deg, rgba(15, 20, 25, .82) 0%, rgba(26, 31, 46, .72) 55%, rgba(42, 49, 66, .55) 100%),
        url('/upload/recipes/recipes-banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    isolation: isolate;
}
.rec-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 20%, rgba(198, 40, 40, .32) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.rec-hero__cn {
    position: absolute;
    right: -30px;
    bottom: -80px;
    font-size: 280px;
    font-weight: 900;
    color: rgba(255, 255, 255, .05);
    line-height: .8;
    letter-spacing: -.04em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    font-family: var(--rec-font);
}
.rec-hero__content { position: relative; z-index: 1; max-width: 720px; }
.rec-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 14px;
}
.rec-hero__eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--rec-brand-light);
}
.rec-hero__title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.05;
    color: #fff;
}
.rec-hero__sub {
    font-size: 17px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.55;
    max-width: 620px;
    margin: 0;
}

/* ================================================================
   2. РУБРИКАТОР-ФИЛЬТР (подобрать рецепт)
   ================================================================ */

.rec-finder {
    background: #fff;
    border: 1px solid var(--rec-border);
    border-radius: var(--rec-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--rec-shadow-sm);
    margin-bottom: 32px;
}
.rec-finder__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.rec-finder__title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 6px;
}
.rec-finder__sub {
    font-size: 14px;
    color: var(--rec-text-muted);
    margin: 0;
}
.rec-finder__count {
    font-family: var(--rec-mono);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    background: var(--rec-bg-soft);
    color: var(--rec-ink);
    border-radius: 999px;
    border: 1px solid var(--rec-border-soft);
    white-space: nowrap;
}
.rec-finder__count b { color: var(--rec-brand); font-weight: 800; }

.rec-finder__rows { display: grid; gap: 18px; }
.rec-finder__row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    align-items: flex-start;
}
.rec-finder__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--rec-text-dim);
    padding-top: 10px;
}
.rec-finder__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Chip */
.rec-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--rec-bg-soft);
    color: var(--rec-text);
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
}
.rec-chip:hover {
    background: #fff;
    border-color: var(--rec-border);
    transform: translateY(-1px);
}
.rec-chip.is-active {
    background: var(--rec-brand);
    color: #fff;
    border-color: var(--rec-brand);
}
.rec-chip__icon {
    font-size: 14px;
    opacity: .9;
}
.rec-chip__count {
    opacity: .65;
    font-family: var(--rec-mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: -.02em;
}
.rec-chip.is-active .rec-chip__count { opacity: 1; }

.rec-finder__active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
    margin-top: 4px;
    border-top: 1px solid var(--rec-border-soft);
}
.rec-finder__active:empty { display: none; }
.rec-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    background: var(--rec-brand);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.rec-active-tag__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 0;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border-radius: 50%;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background .15s;
}
.rec-active-tag__remove:hover { background: rgba(255, 255, 255, .35); }
.rec-finder__reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    color: var(--rec-text-muted);
    border: 1.5px solid var(--rec-border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.rec-finder__reset:hover {
    color: var(--rec-brand);
    border-color: var(--rec-brand);
}

/* ================================================================
   3. GRID КАРТОЧЕК РЕЦЕПТОВ
   ================================================================ */

.rec-section {
    margin: 44px 0 0;
}
.rec-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.rec-section__title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.rec-section__link {
    font-size: 14px;
    font-weight: 700;
    color: var(--rec-brand);
    text-decoration: none;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.rec-section__link:hover { color: var(--rec-brand-dark); }
.rec-section__sub {
    font-size: 15px;
    color: var(--rec-text-muted);
    margin: -14px 0 22px;
    max-width: 760px;
    line-height: 1.55;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.rec-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rec-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rec-grid--2 { grid-template-columns: repeat(2, 1fr); }

.rec-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rec-border);
    border-radius: var(--rec-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--rec-text);
    transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .2s;
    box-shadow: var(--rec-shadow-sm);
    position: relative;
}
.rec-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rec-shadow-md);
    border-color: var(--rec-brand);
}
.rec-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    /* Градиент по категории задаётся inline через --cat-gradient */
    background: var(--cat-gradient, linear-gradient(135deg, #c62828 0%, #8e1f1f 100%));
}
.rec-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.rec-card:hover .rec-card__image img { transform: scale(1.05); }
.rec-card__emoji {
    font-size: 80px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .15));
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.rec-card:hover .rec-card__emoji { transform: scale(1.08) rotate(-3deg); }
.rec-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .18) 0%, transparent 50%);
    pointer-events: none;
}
.rec-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.rec-card__time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--rec-ink);
    font-family: var(--rec-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -.01em;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.rec-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.rec-card__title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.25;
    color: var(--rec-ink);
    margin: 0;
}
.rec-card__cn {
    font-size: 13px;
    color: var(--rec-text-dim);
    font-weight: 500;
    margin-top: -2px;
}
.rec-card__preview {
    font-size: 13px;
    color: var(--rec-text-muted);
    line-height: 1.5;
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    margin-top: auto;
    border-top: 1px solid var(--rec-border-soft);
}
.rec-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--rec-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--rec-ink);
}
.rec-card__rating-star { color: var(--rec-warm); font-size: 14px; }
.rec-card__rating-count { color: var(--rec-text-dim); font-weight: 500; font-size: 11px; }
.rec-card__difficulty {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}
.rec-card__difficulty.is-easy   { color: #047857; background: rgba(16, 185, 129, .1); }
.rec-card__difficulty.is-medium { color: #b45309; background: rgba(245, 158, 11, .1); }
.rec-card__difficulty.is-hard   { color: #b91c1c; background: rgba(220, 38, 38, .1); }

.rec-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--rec-bg-soft);
    border: 1.5px dashed var(--rec-border);
    border-radius: var(--rec-radius-lg);
    color: var(--rec-text-muted);
}
.rec-empty__icon { font-size: 64px; margin-bottom: 14px; opacity: .5; }
.rec-empty__title { font-size: 18px; font-weight: 700; color: var(--rec-ink); margin-bottom: 6px; }
.rec-empty__hint { font-size: 14px; }

/* ================================================================
   4. КАТЕГОРИИ (на главной)
   ================================================================ */

.rec-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.rec-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 4 / 3;
    border-radius: var(--rec-radius);
    overflow: hidden;
    padding: 18px 20px 18px;
    color: #fff;
    text-decoration: none;
    background: var(--cat-gradient, linear-gradient(135deg, #c62828 0%, #8e1f1f 100%));
    transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
    box-shadow: var(--rec-shadow-sm);
}
.rec-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rec-shadow-md);
}
.rec-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .35) 100%);
    pointer-events: none;
}
.rec-cat-card__emoji {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 56px;
    line-height: 1;
    opacity: .9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2));
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.rec-cat-card:hover .rec-cat-card__emoji { transform: scale(1.1) rotate(-5deg); }
.rec-cat-card__name {
    position: relative;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin: 0 0 4px;
}
.rec-cat-card__count {
    position: relative;
    font-family: var(--rec-mono);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    letter-spacing: -.01em;
}

/* ================================================================
   5. ДЕТАЛЬНАЯ СТРАНИЦА РЕЦЕПТА
   ================================================================ */

.rec-detail { max-width: 1200px; }
.rec-detail__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
    padding: 24px 0 40px;
}
.rec-detail__media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--rec-radius-lg);
    overflow: hidden;
    background: var(--cat-gradient, linear-gradient(135deg, #c62828 0%, #8e1f1f 100%));
    box-shadow: var(--rec-shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rec-detail__media-emoji {
    font-size: 180px;
    line-height: 1;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .2));
}
.rec-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rec-detail__hero-body { min-width: 0; }

.rec-detail__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rec-text-muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.rec-detail__breadcrumb a { color: var(--rec-text-muted); text-decoration: none; }
.rec-detail__breadcrumb a:hover { color: var(--rec-brand); }

.rec-detail__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0 0 8px;
}
.rec-detail__cn {
    font-size: 20px;
    color: var(--rec-text-dim);
    font-weight: 500;
    margin: 0 0 16px;
}
.rec-detail__preview {
    font-size: 17px;
    color: var(--rec-text-muted);
    line-height: 1.6;
    margin: 0 0 22px;
}
.rec-detail__rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--rec-bg-soft);
    border-radius: 999px;
    margin-bottom: 22px;
}
.rec-detail__rating-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 18px;
}
.rec-detail__rating-star {
    color: var(--rec-border);
    cursor: pointer;
    transition: all .15s;
    line-height: 1;
}
.rec-detail__rating-star:hover,
.rec-detail__rating-star.is-active,
.rec-detail__rating-star.is-hover { color: var(--rec-warm); }
.rec-detail__rating-value {
    font-family: var(--rec-mono);
    font-weight: 800;
    font-size: 16px;
    color: var(--rec-ink);
}
.rec-detail__rating-count {
    font-size: 13px;
    color: var(--rec-text-muted);
    font-weight: 500;
}

.rec-detail__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}
.rec-metric {
    padding: 14px 16px;
    background: var(--rec-bg-soft);
    border: 1px solid var(--rec-border-soft);
    border-radius: var(--rec-radius);
    text-align: center;
}
.rec-metric__icon { font-size: 20px; margin-bottom: 4px; }
.rec-metric__value {
    font-family: var(--rec-mono);
    font-size: 16px;
    font-weight: 800;
    color: var(--rec-ink);
    letter-spacing: -.02em;
}
.rec-metric__label {
    font-size: 11px;
    color: var(--rec-text-dim);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    margin-top: 2px;
}

.rec-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}
.rec-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid var(--rec-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rec-text-muted);
    letter-spacing: -.01em;
    text-decoration: none;
}
.rec-tag:hover { border-color: var(--rec-brand); color: var(--rec-brand); }

/* ================================================================
   6. КОНТЕНТ ДЕТАЛЬНОЙ: 2 колонки (рецепт + sidebar)
   ================================================================ */

.rec-detail__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
}
.rec-detail__main { min-width: 0; }
.rec-detail__sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Калькулятор порций --- */
.rec-calc {
    background: linear-gradient(135deg, var(--rec-bg-soft) 0%, #fff 100%);
    border: 1px solid var(--rec-border);
    border-radius: var(--rec-radius-lg);
    padding: 22px 24px;
    box-shadow: var(--rec-shadow-sm);
}
.rec-calc__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--rec-text-muted);
    margin-bottom: 14px;
}
.rec-calc__control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #fff;
    border: 1.5px solid var(--rec-border);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 14px;
}
.rec-calc__btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: var(--rec-text);
    font-family: inherit;
    transition: all .15s;
}
.rec-calc__btn:hover { background: var(--rec-bg-soft); color: var(--rec-brand); }
.rec-calc__btn:disabled { opacity: .3; cursor: not-allowed; }
.rec-calc__input {
    flex: 1;
    border: 0;
    background: transparent;
    text-align: center;
    font-family: var(--rec-mono);
    font-size: 22px;
    font-weight: 800;
    color: var(--rec-ink);
    letter-spacing: -.03em;
    outline: none;
    min-width: 48px;
    width: 60px;
    -moz-appearance: textfield;
}
.rec-calc__input::-webkit-outer-spin-button,
.rec-calc__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rec-calc__label {
    text-align: center;
    font-size: 13px;
    color: var(--rec-text-muted);
    margin-bottom: 12px;
}
.rec-calc__quick {
    display: flex;
    gap: 6px;
    justify-content: center;
}
.rec-calc__quick-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1.5px solid var(--rec-border);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--rec-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--rec-text);
    transition: all .15s;
}
.rec-calc__quick-btn:hover,
.rec-calc__quick-btn.is-active {
    background: var(--rec-brand);
    border-color: var(--rec-brand);
    color: #fff;
}

/* --- Ингредиенты с чекбоксами --- */
.rec-ingredients {
    background: #fff;
    border: 1px solid var(--rec-border);
    border-radius: var(--rec-radius-lg);
    padding: 28px 30px;
    box-shadow: var(--rec-shadow-sm);
    margin-bottom: 28px;
}
.rec-ingredients__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.rec-ingredients__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.015em;
}
.rec-ingredients__servings {
    font-family: var(--rec-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--rec-brand);
    letter-spacing: -.01em;
}
.rec-ingredients__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rec-ingredient {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s;
    user-select: none;
}
.rec-ingredient:hover { background: var(--rec-bg-soft); }
.rec-ingredient input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--rec-border);
    border-radius: 6px;
    cursor: pointer;
    accent-color: var(--rec-brand);
    transition: all .15s;
}
.rec-ingredient__text {
    font-size: 15px;
    color: var(--rec-text);
    transition: all .15s;
    line-height: 1.45;
}
.rec-ingredient__text b { color: var(--rec-ink); font-weight: 800; font-family: var(--rec-mono); letter-spacing: -.01em; }
.rec-ingredient.is-checked .rec-ingredient__text {
    color: var(--rec-text-dim);
    text-decoration: line-through;
}
.rec-ingredient.is-checked .rec-ingredient__text b { color: var(--rec-text-dim); }

/* --- Шаги --- */
.rec-steps {
    background: #fff;
    border: 1px solid var(--rec-border);
    border-radius: var(--rec-radius-lg);
    padding: 32px 36px;
    box-shadow: var(--rec-shadow-sm);
}
.rec-steps__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.015em;
    margin-bottom: 22px;
}
.rec-steps ol {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.rec-steps ol li {
    counter-increment: step;
    position: relative;
    padding: 22px 22px 22px 74px;
    background: var(--rec-bg-soft);
    border-radius: var(--rec-radius);
    font-size: 15px;
    line-height: 1.65;
    color: var(--rec-text);
}
.rec-steps ol li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rec-brand);
    color: #fff;
    border-radius: 50%;
    font-family: var(--rec-mono);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.02em;
    box-shadow: 0 4px 12px rgba(198, 40, 40, .3);
}
.rec-steps ol li strong { color: var(--rec-ink); font-weight: 700; }

/* --- Share + Print --- */
.rec-detail__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--rec-border-soft);
}
.rec-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1.5px solid var(--rec-border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--rec-text);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    letter-spacing: -.01em;
}
.rec-btn:hover { border-color: var(--rec-brand); color: var(--rec-brand); }
.rec-btn--primary { background: var(--rec-brand); border-color: var(--rec-brand); color: #fff; }
.rec-btn--primary:hover { background: var(--rec-brand-dark); color: #fff; border-color: var(--rec-brand-dark); }

.rec-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.rec-share__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--rec-text-muted);
    margin-right: 4px;
}
.rec-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1.5px solid var(--rec-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--rec-text-muted);
    transition: all .2s;
}
.rec-share__btn:hover { border-color: var(--rec-brand); color: var(--rec-brand); transform: translateY(-1px); }
.rec-share__btn--vk:hover   { color: #0077FF; border-color: #0077FF; }
.rec-share__btn--tg:hover   { color: #0088CC; border-color: #0088CC; }
.rec-share__btn--wa:hover   { color: #25D366; border-color: #25D366; }
.rec-share__btn--ok:hover   { color: #EE8208; border-color: #EE8208; }
.rec-share__btn--pin:hover  { color: #E60023; border-color: #E60023; }

/* Sidebar info card (старая info-card) */
.rec-info-card {
    background: #fff;
    border: 1px solid var(--rec-border);
    border-radius: var(--rec-radius-lg);
    padding: 22px 24px;
    box-shadow: var(--rec-shadow-sm);
}
.rec-info-card__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--rec-text-muted);
    margin-bottom: 14px;
}
.rec-info-card__row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--rec-border-soft);
    font-size: 14px;
}
.rec-info-card__row:last-child { border-bottom: 0; }
.rec-info-card__row span { color: var(--rec-text-muted); }
.rec-info-card__row strong { color: var(--rec-ink); font-weight: 700; }

/* ================================================================
   7. АДАПТИВ
   ================================================================ */

@media (max-width: 980px) {
    .rec-detail__hero { grid-template-columns: 1fr; gap: 24px; padding: 16px 0 28px; }
    .rec-detail__media { aspect-ratio: 16 / 10; }
    .rec-detail__body { grid-template-columns: 1fr; gap: 24px; }
    .rec-detail__sidebar { position: static; order: -1; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .rec-detail__sidebar::-webkit-scrollbar { display: none; }
    .rec-detail__sidebar > * { flex-shrink: 0; width: 280px; }
    .rec-grid--3, .rec-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .rec-finder__row { grid-template-columns: 1fr; gap: 10px; }
    .rec-finder__label { padding-top: 0; }
}
@media (max-width: 640px) {
    .rec-page { padding: 16px 16px 48px; }
    .rec-hero { padding: 28px 22px 32px; border-radius: var(--rec-radius); min-height: 260px; }
    .rec-hero__cn { font-size: 160px; bottom: -40px; }
    .rec-finder { padding: 20px 22px; border-radius: var(--rec-radius); }
    .rec-grid, .rec-grid--3, .rec-grid--4 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .rec-card__title { font-size: 15px; }
    .rec-card__preview { display: none; }
    .rec-detail__metrics { grid-template-columns: repeat(2, 1fr); }
    .rec-ingredients, .rec-steps { padding: 20px 18px; }
    .rec-steps ol li { padding: 52px 18px 18px; }
    .rec-steps ol li::before { top: 14px; left: 14px; }
    .rec-categories { grid-template-columns: 1fr 1fr; }
    .rec-detail__media-emoji { font-size: 120px; }
}
@media (max-width: 420px) {
    .rec-grid, .rec-grid--3, .rec-grid--4 { grid-template-columns: 1fr; }
    .rec-categories { grid-template-columns: 1fr; }
}

/* ================================================================
   8. Print
   ================================================================ */

@media print {
    .rec-hero, .rec-finder, .rec-detail__sidebar, .rec-share, .rec-detail__actions,
    .rec-section, .rec-detail__breadcrumb { display: none !important; }
    .rec-detail__hero { grid-template-columns: 1fr; padding: 0; }
    .rec-detail__body { grid-template-columns: 1fr; gap: 20px; }
    body, .rec-page { background: #fff; color: #000; }
    .rec-ingredients, .rec-steps { box-shadow: none; border: 1px solid #ccc; }
}

/* End */
/* /local/components/china/recipes/templates/.default/style.css?177663602229958 */
