/* ==========================================================================
   Кулінарна книга Spice Guild — стилі. Кольори тільки з токенів теми (--sg-*).
   ========================================================================== */

.sg-rcp { color: var(--sg-body); font-family: var(--sg-font); }
.sg-rcp h1, .sg-rcp h2, .sg-rcp h3 { color: var(--sg-ink); }
.sg-rcp-i { flex: none; display: inline-block; vertical-align: -3px; }
.sg-rcp-link { color: var(--sg-accent-dark); font-weight: var(--sg-fw-medium); text-decoration: none; }
.sg-rcp-link:hover { color: var(--sg-accent-darker); text-decoration: underline; }
.sg-rcp-link-btn { background: none; border: 0; padding: 0; color: var(--sg-accent-dark); font: inherit; font-weight: var(--sg-fw-medium); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sg-rcp-link-btn:hover { color: var(--sg-accent-darker); }
.sg-rcp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.sg-rcp-section-head h2, .sg-rcp-section-head .sg-page-sub { margin: 0; }
.sg-rcp .sg-page-sub { color: var(--sg-muted); font-size: 15px; }

/* ------------------------------------------------------------- герой */

.sg-rcp-hero { position: relative; padding: 76px 0 64px; color: var(--sg-white); }
.sg-rcp-hero::before {
	content: ""; position: absolute; inset: 0; left: 50%; width: 100vw; transform: translateX(-50%);
	background:
		linear-gradient(90deg, rgba(16, 13, 10, .94) 0%, rgba(16, 13, 10, .80) 48%, rgba(16, 13, 10, .45) 100%),
		var(--sg-rcp-hero, none) center / cover no-repeat var(--sg-dark);
}
.sg-rcp-hero > * { position: relative; }
.sg-rcp-hero .sg-page-kicker { display: inline-flex; align-items: center; gap: 16px; margin: 0 0 14px; color: var(--sg-accent); font-weight: var(--sg-fw-bold); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.sg-rcp-hero .sg-page-kicker::after { content: ""; width: 58px; height: 1px; background: var(--sg-accent); opacity: .8; }
.sg-rcp-hero h1 { margin: 0 0 14px; max-width: 760px; font-size: 42px; line-height: 1.1; color: var(--sg-white); }
.sg-rcp-h1-flag { margin-right: 12px; }
.sg-rcp-hero-text { margin: 0 0 26px; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--sg-white); opacity: .9; }
.sg-rcp-hero-search { display: flex; align-items: center; gap: 10px; max-width: 640px; padding: 6px 6px 6px 16px; background: var(--sg-white); border-radius: var(--sg-radius-lg); box-shadow: var(--sg-shadow-hover); color: var(--sg-muted); }
.sg-rcp-hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--sg-ink); padding: 10px 0; }
.sg-rcp-hero-search .sg-btn { padding: 13px 24px; }
.sg-rcp-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.sg-rcp-hchip { display: inline-block; padding: 8px 14px; border: 1px solid var(--sg-on-dark-line); border-radius: 999px; color: var(--sg-on-dark); font-size: 13.5px; text-decoration: none; transition: background var(--sg-transition), border-color var(--sg-transition); }
.sg-rcp-hchip:hover, .sg-rcp-hchip.is-on { background: var(--sg-accent); border-color: var(--sg-accent); color: var(--sg-white); }
.sg-rcp-hero .sg-page-facts { margin-top: 34px; }
.sg-rcp-hero-term { padding: 44px 0 48px; }
.sg-rcp-hero-term .sg-rcp-crumbs { margin-bottom: 18px; }
.sg-rcp-hero-term .sg-rcp-crumbs a, .sg-rcp-hero-term .sg-rcp-crumbs span { color: var(--sg-on-dark-muted); }
.sg-rcp-hero-back { margin: 8px 0 0; }
.sg-rcp-hero-back a { color: var(--sg-on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.sg-rcp-hero-back .sg-rcp-i { transform: rotate(180deg); }

/* ------------------------------------------------------- кухні світу */

.sg-rcp-cuisines { padding: 52px 0 10px; }
.sg-rcp-region { margin: 0 0 22px; }
.sg-rcp-region h3 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sg-muted); font-weight: var(--sg-fw-bold); }
.sg-rcp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.sg-rcp-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 14px 12px; background: var(--sg-white); border: 1px solid var(--sg-line); border-radius: var(--sg-radius-lg); text-decoration: none; color: var(--sg-ink); transition: box-shadow var(--sg-transition), transform var(--sg-transition), border-color var(--sg-transition); }
.sg-rcp-tile:hover { box-shadow: var(--sg-shadow-hover); transform: translateY(-2px); border-color: transparent; }
.sg-rcp-tile.is-on { border-color: var(--sg-accent); background: var(--sg-accent-soft); }
.sg-rcp-tile-flag { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.sg-rcp-flag-img { display: inline-block; width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); vertical-align: -3px; }
.sg-rcp-flag-img.is-md { width: 27px; height: 18px; vertical-align: middle; }
.sg-rcp-flag-img.is-lg { width: 42px; height: 28px; border-radius: 3px; }
.sg-rcp-h1-flag .sg-rcp-flag-img { vertical-align: -2px; }
.sg-rcp-flag { display: inline-flex; }
.sg-rcp-tile b { font-size: 15px; font-weight: var(--sg-fw-bold); }
.sg-rcp-tile i { font-style: normal; font-size: 12.5px; color: var(--sg-muted); }

/* ------------------------------------------------------------ каталог */

.sg-rcp-catalog { padding: 40px 0 60px; }
.sg-rcp-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 32px; align-items: start; }
.sg-rcp-results { min-width: 0; }
.sg-rcp-toolbar { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; }
.sg-rcp-count { margin: 0; font-size: 15px; color: var(--sg-muted); flex: 1; }
.sg-rcp-count b { color: var(--sg-ink); font-size: 20px; }
.sg-rcp-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sg-muted); }
.sg-rcp-sort select { font: inherit; color: var(--sg-ink); border: 1px solid var(--sg-line); border-radius: var(--sg-radius); padding: 7px 10px; background: var(--sg-white); }
.sg-rcp-filter-btn { display: none; align-items: center; gap: 8px; font: inherit; font-weight: var(--sg-fw-medium); color: var(--sg-ink); background: var(--sg-white); border: 1px solid var(--sg-line); border-radius: var(--sg-radius); padding: 9px 14px; cursor: pointer; }
.sg-rcp-filter-btn em { font-style: normal; background: var(--sg-accent); color: var(--sg-white); font-size: 12px; border-radius: 999px; padding: 1px 7px; }
.sg-rcp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.sg-rcp-chips:empty { display: none; }
.sg-rcp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; background: var(--sg-accent-soft); border: 1px solid var(--sg-line); border-radius: 999px; font-size: 13.5px; color: var(--sg-ink); }
.sg-rcp-chip button { border: 0; background: none; cursor: pointer; color: var(--sg-muted); font-size: 16px; line-height: 1; padding: 0 2px; }
.sg-rcp-chip button:hover { color: var(--sg-sale); }
.sg-rcp-chip.is-clear { background: none; cursor: pointer; }
.sg-rcp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sg-gap); }
.sg-rcp-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.is-loading .sg-rcp-grid { opacity: .5; transition: opacity .2s; }
.sg-rcp-more { text-align: center; margin: 32px 0 0; }

/* картка */
.sg-rcp-card { background: var(--sg-white); border-radius: var(--sg-radius-lg); overflow: hidden; box-shadow: var(--sg-shadow); transition: box-shadow var(--sg-transition), transform var(--sg-transition); display: flex; flex-direction: column; }
.sg-rcp-card:hover { box-shadow: var(--sg-shadow-hover); transform: translateY(-3px); }
.sg-rcp-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sg-card); }
.sg-rcp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.sg-rcp-card:hover .sg-rcp-card-img img { transform: scale(1.04); }
.sg-rcp-flag { position: absolute; top: 10px; left: 10px; font-size: 20px; line-height: 1; padding: 5px 7px; background: rgba(255, 255, 255, .92); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); }
.sg-rcp-match { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; font-size: 12.5px; font-weight: var(--sg-fw-medium); background: rgba(255, 255, 255, .94); color: var(--sg-ink); border-radius: 999px; }
.sg-rcp-match.is-full { background: var(--sg-success); color: var(--sg-white); }
.sg-rcp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sg-rcp-card-kicker { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-accent-dark); font-weight: var(--sg-fw-bold); }
.sg-rcp-card h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.sg-rcp-card h3 a { color: var(--sg-ink); text-decoration: none; }
.sg-rcp-card h3 a:hover { color: var(--sg-accent-dark); }
.sg-rcp-card-meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--sg-muted); }
.sg-rcp-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sg-rcp-card-spices { margin: auto 0 0; padding-top: 6px; font-size: 13px; color: var(--sg-faint); }
.sg-rcp-card-missing { margin: auto 0 0; padding-top: 6px; font-size: 13px; color: var(--sg-warning); }
.sg-rcp-dots { display: inline-flex; gap: 2px; }
.sg-rcp-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sg-line); }
.sg-rcp-dots i.on { background: var(--sg-accent); }
.sg-rcp-empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; background: var(--sg-white); border-radius: var(--sg-radius-lg); }
.sg-rcp-empty p { margin: 0 0 10px; color: var(--sg-muted); }
.sg-rcp-empty p b { color: var(--sg-ink); font-size: 17px; }
.sg-rcp-empty .sg-btn { margin-top: 10px; }

/* фільтр */
.sg-rcp-filter { background: var(--sg-white); border: 1px solid var(--sg-line); border-radius: var(--sg-radius-lg); padding: 6px 0 0; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; }
.sg-rcp-filter-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px 10px; border-bottom: 1px solid var(--sg-line); }
.sg-rcp-filter-head b { display: inline-flex; align-items: center; gap: 8px; flex: 1; font-size: 15px; }
.sg-rcp-filter-head .sg-rcp-link { background: none; border: 0; font: inherit; font-size: 13.5px; cursor: pointer; }
.sg-rcp-filter-close { display: none; background: none; border: 0; cursor: pointer; color: var(--sg-muted); padding: 4px; }
.sg-rcp-search { display: flex; align-items: center; gap: 8px; margin: 12px 18px 6px; padding: 0 10px; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); color: var(--sg-muted); }
.sg-rcp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; padding: 9px 0; color: var(--sg-ink); }
.sg-rcp-facet { border-bottom: 1px solid var(--sg-line); }
.sg-rcp-facet:last-of-type { border-bottom: 0; }
.sg-rcp-facet summary { display: flex; align-items: center; gap: 8px; padding: 13px 18px; cursor: pointer; list-style: none; font-weight: var(--sg-fw-bold); font-size: 14.5px; color: var(--sg-ink); user-select: none; }
.sg-rcp-facet summary::-webkit-details-marker { display: none; }
.sg-rcp-facet summary > span { flex: 1; display: inline-flex; align-items: center; gap: 8px; }
.sg-rcp-facet summary .sg-rcp-i-chev { color: var(--sg-faint); transition: transform var(--sg-transition); }
.sg-rcp-facet[open] summary .sg-rcp-i-chev { transform: rotate(180deg); }
.sg-rcp-facet-n { font-style: normal; font-size: 12px; background: var(--sg-accent); color: var(--sg-white); border-radius: 999px; padding: 1px 7px; }
.sg-rcp-facet-list { padding: 0 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.sg-rcp-facet-group { margin: 8px 0 2px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sg-faint); font-weight: var(--sg-fw-bold); }
.sg-rcp-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14px; color: var(--sg-body); }
.sg-rcp-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.sg-rcp-opt-box { width: 17px; height: 17px; flex: none; border: 1.5px solid var(--sg-faint); border-radius: 3px; position: relative; transition: background var(--sg-transition), border-color var(--sg-transition); }
.sg-rcp-opt input:checked + .sg-rcp-opt-box { background: var(--sg-accent); border-color: var(--sg-accent); }
.sg-rcp-opt input:checked + .sg-rcp-opt-box::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--sg-white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sg-rcp-opt input:focus-visible + .sg-rcp-opt-box { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.sg-rcp-opt-flag { font-size: 16px; line-height: 1; }
.sg-rcp-opt-name { flex: 1; }
.sg-rcp-opt em { font-style: normal; font-size: 12.5px; color: var(--sg-faint); }
.sg-rcp-opt.is-zero { opacity: .45; }
.sg-rcp-facet-toggle { align-self: flex-start; margin-top: 4px; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--sg-accent-dark); cursor: pointer; text-decoration: underline; }
.sg-rcp-hint { margin: 0 0 8px; font-size: 13px; line-height: 1.45; color: var(--sg-muted); }
.sg-rcp-pick { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); }
.sg-rcp-picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.sg-rcp-picked:empty { display: none; }
.sg-rcp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.sg-rcp-quick-btn { font: inherit; font-size: 12.5px; padding: 4px 10px; border: 1px dashed var(--sg-line); border-radius: 999px; background: none; color: var(--sg-muted); cursor: pointer; }
.sg-rcp-quick-btn:hover { border-color: var(--sg-accent); color: var(--sg-accent-dark); }
.sg-rcp-filter-foot { display: none; position: sticky; bottom: 0; padding: 12px 18px; background: var(--sg-white); border-top: 1px solid var(--sg-line); }
.sg-rcp-filter-foot .sg-btn { width: 100%; }

.sg-rcp-how { padding: 10px 0 60px; }
.sg-rcp-how .sg-page-ico { font-size: 28px; margin: 0 0 8px; }

/* ------------------------------------------------------------- рецепт */

.sg-rcp-single .sg-container { padding-top: 22px; padding-bottom: 60px; }
.sg-rcp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: var(--sg-muted); }
.sg-rcp-crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--sg-faint); }
.sg-rcp-crumbs a { color: var(--sg-muted); text-decoration: none; }
.sg-rcp-crumbs a:hover { color: var(--sg-accent-dark); }
.sg-rcp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 0 0 40px; }
.sg-rcp-kicker { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: var(--sg-fw-bold); color: var(--sg-accent-dark); }
.sg-rcp-kicker a { color: inherit; text-decoration: none; }
.sg-rcp-kicker a:hover { text-decoration: underline; }
.sg-rcp-head h1 { margin: 0 0 14px; font-size: 38px; line-height: 1.12; }
.sg-rcp-intro { font-size: 16.5px; line-height: 1.6; color: var(--sg-body); }
.sg-rcp-intro p { margin: 0 0 10px; }
.sg-rcp-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--sg-line); list-style: none; }
.sg-rcp-facts li { display: flex; align-items: center; gap: 8px; }
.sg-rcp-facts li b { font-size: 16px; color: var(--sg-ink); }
.sg-rcp-facts li span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--sg-faint); }
.sg-rcp-facts .sg-rcp-i { color: var(--sg-accent); }
.sg-rcp-actions { display: flex; align-items: center; gap: 18px; margin: 20px 0 0; }
.sg-rcp-actions .sg-btn { display: inline-flex; align-items: center; gap: 8px; }
.sg-rcp-hero-img { margin: 0; border-radius: var(--sg-radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sg-card); box-shadow: var(--sg-shadow-hover); }
.sg-rcp-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sg-rcp-body { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 44px; align-items: start; }
.sg-rcp-ing { position: sticky; top: 84px; background: var(--sg-white); border: 1px solid var(--sg-line); border-radius: var(--sg-radius-lg); padding: 20px 22px 22px; }
.sg-rcp-ing-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.sg-rcp-ing h2 { margin: 0; font-size: 20px; }
.sg-rcp-ing h3 { margin: 16px 0 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sg-faint); }
.sg-rcp-serv { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--sg-line); border-radius: 999px; padding: 2px 4px; font-size: 13px; color: var(--sg-muted); }
.sg-rcp-serv button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--sg-accent-soft); color: var(--sg-ink); font-size: 18px; line-height: 1; cursor: pointer; }
.sg-rcp-serv button:hover { background: var(--sg-accent); color: var(--sg-white); }
.sg-rcp-serv output { font-weight: var(--sg-fw-bold); color: var(--sg-ink); min-width: 14px; text-align: center; }
.sg-rcp-ing-list { list-style: none; margin: 0; padding: 0; }
.sg-rcp-ing-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--sg-line); }
.sg-rcp-ing-item label { display: flex; align-items: flex-start; gap: 10px; flex: 1; cursor: pointer; }
.sg-rcp-ing-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.sg-rcp-ing-box { width: 18px; height: 18px; flex: none; margin-top: 2px; border: 1.5px solid var(--sg-faint); border-radius: 50%; position: relative; }
.sg-rcp-ing-item input:checked + .sg-rcp-ing-box { background: var(--sg-accent); border-color: var(--sg-accent); }
.sg-rcp-ing-item input:checked + .sg-rcp-ing-box::after { content: ""; position: absolute; left: 5.5px; top: 2px; width: 4px; height: 8px; border: solid var(--sg-white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sg-rcp-ing-item input:checked ~ .sg-rcp-ing-text { color: var(--sg-faint); text-decoration: line-through; }
.sg-rcp-ing-text { display: flex; gap: 10px; align-items: baseline; font-size: 15px; line-height: 1.4; }
.sg-rcp-q { flex: none; min-width: 86px; color: var(--sg-accent-dark); font-weight: var(--sg-fw-bold); font-size: 14px; }
.sg-rcp-n small { display: block; font-size: 12.5px; color: var(--sg-faint); }
.sg-rcp-ing-item.is-opt .sg-rcp-n { color: var(--sg-muted); }
.sg-rcp-buy { flex: none; margin-top: 1px; color: var(--sg-accent); }
.sg-rcp-buy:hover { color: var(--sg-accent-darker); }
.sg-rcp-shop { margin: 20px -22px -22px; padding: 18px 22px 20px; background: var(--sg-accent-soft); border-top: 1px solid var(--sg-line); border-radius: 0 0 var(--sg-radius-lg) var(--sg-radius-lg); }
.sg-rcp-shop h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .04em; text-transform: none; color: var(--sg-ink); }
.sg-rcp-shop ul { list-style: none; margin: 0 0 14px; padding: 0; }
.sg-rcp-shop li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.sg-rcp-shop li img { width: 44px; height: 44px; border-radius: var(--sg-radius); object-fit: cover; flex: none; background: var(--sg-card); }
.sg-rcp-shop-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sg-rcp-shop-name a { color: var(--sg-ink); text-decoration: none; font-weight: var(--sg-fw-medium); }
.sg-rcp-shop-name a:hover { color: var(--sg-accent-dark); }
.sg-rcp-shop-name small { color: var(--sg-faint); font-size: 12px; }
.sg-rcp-shop-price { white-space: nowrap; font-weight: var(--sg-fw-bold); color: var(--sg-ink); }
.sg-rcp-cart-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; }
.sg-rcp-cart-btn b { margin-left: auto; font-weight: var(--sg-fw-bold); }
.sg-rcp-cart-btn.is-done { background: var(--sg-success); }
.sg-rcp-shop-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--sg-muted); }
.sg-rcp-shop-note a { color: var(--sg-accent-dark); }

.sg-rcp-main > section { margin: 0 0 40px; }
.sg-rcp-main h2 { margin: 0 0 18px; font-size: 26px; }
.sg-rcp-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.sg-rcp-steps li { display: flex; gap: 18px; padding: 0 0 22px; }
.sg-rcp-step-n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--sg-accent); color: var(--sg-white); font-weight: var(--sg-fw-bold); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.sg-rcp-step-body { flex: 1; padding-top: 6px; }
.sg-rcp-step-body p { margin: 0 0 8px; font-size: 16.5px; line-height: 1.6; }
.sg-rcp-timer { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: var(--sg-fw-medium); color: var(--sg-accent-dark); background: var(--sg-accent-soft); border: 1px solid var(--sg-line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.sg-rcp-timer.is-running { background: var(--sg-ink); color: var(--sg-white); border-color: var(--sg-ink); }
.sg-rcp-timer.is-done { background: var(--sg-success); color: var(--sg-white); border-color: var(--sg-success); }
.sg-rcp-spice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sg-rcp-spice { display: flex; gap: 14px; padding: 16px; background: var(--sg-white); border: 1px solid var(--sg-line); border-radius: var(--sg-radius-lg); }
.sg-rcp-spice-img img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; background: var(--sg-card); }
.sg-rcp-spice h3 { margin: 0 0 6px; font-size: 16px; }
.sg-rcp-spice h3 a { color: var(--sg-ink); text-decoration: none; }
.sg-rcp-spice h3 a:hover { color: var(--sg-accent-dark); }
.sg-rcp-spice p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; color: var(--sg-body); }
.sg-rcp-notes ul { margin: 0; padding: 0; list-style: none; }
.sg-rcp-notes li { position: relative; padding: 0 0 10px 22px; font-size: 15.5px; line-height: 1.55; }
.sg-rcp-notes li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--sg-accent); }
.sg-rcp-faq details { border-bottom: 1px solid var(--sg-line); }
.sg-rcp-faq summary { padding: 14px 0; cursor: pointer; font-weight: var(--sg-fw-bold); color: var(--sg-ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sg-rcp-faq summary::-webkit-details-marker { display: none; }
.sg-rcp-faq summary::after { content: "+"; color: var(--sg-accent); font-size: 20px; line-height: 1; }
.sg-rcp-faq details[open] summary::after { content: "–"; }
.sg-rcp-faq p { margin: 0 0 16px; color: var(--sg-body); line-height: 1.6; }
.sg-rcp-source { font-size: 13.5px; color: var(--sg-faint); font-style: italic; }
.sg-rcp-related { margin: 50px 0 0; padding-top: 40px; border-top: 1px solid var(--sg-line); }
.sg-rcp-related h2, .sg-rcp-reads h2 { margin: 0; font-size: 24px; }
.sg-rcp-reads { margin: 44px 0 0; }
.sg-rcp-reads ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sg-rcp-reads li { padding: 16px 18px; background: var(--sg-white); border: 1px solid var(--sg-line); border-radius: var(--sg-radius-lg); display: flex; flex-direction: column; gap: 6px; }
.sg-rcp-reads a { color: var(--sg-ink); font-weight: var(--sg-fw-bold); text-decoration: none; font-size: 15.5px; }
.sg-rcp-reads a:hover { color: var(--sg-accent-dark); }
.sg-rcp-reads span { font-size: 13.5px; color: var(--sg-muted); line-height: 1.5; }

/* ------------------------------------------------------ режим готування */

.sg-rcp-cook { position: fixed; inset: 0; z-index: 9999; background: var(--sg-dark); color: var(--sg-on-dark); display: flex; flex-direction: column; }
.sg-rcp-cook[hidden] { display: none; }
.sg-rcp-cook-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--sg-on-dark-line); }
.sg-rcp-cook-title { flex: 1; font-weight: var(--sg-fw-bold); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-rcp-cook-pos { font-size: 13px; color: var(--sg-on-dark-muted); white-space: nowrap; }
.sg-rcp-cook-ing-btn { font: inherit; font-size: 13.5px; background: none; border: 1px solid var(--sg-on-dark-line); color: var(--sg-on-dark); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.sg-rcp-cook-ing-btn.is-on { background: var(--sg-accent); border-color: var(--sg-accent); }
.sg-rcp-cook-close { background: none; border: 0; color: var(--sg-on-dark); cursor: pointer; padding: 4px; }
.sg-rcp-cook-progress { height: 3px; background: var(--sg-on-dark-line); }
.sg-rcp-cook-progress i { display: block; height: 100%; width: 0; background: var(--sg-accent); transition: width .3s; }
.sg-rcp-cook-body { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; }
.sg-rcp-cook-step { max-width: 820px; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.4; }
.sg-rcp-cook-step small { display: block; margin-bottom: 14px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--sg-accent); }
.sg-rcp-cook-timer { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sg-rcp-cook-timer b { font-size: 56px; font-variant-numeric: tabular-nums; }
.sg-rcp-cook-timer.is-done b { color: var(--sg-success); }
.sg-rcp-cook-timer .sg-btn { padding: 12px 22px; }
.sg-rcp-cook-ing { position: absolute; top: 56px; right: 0; bottom: 70px; width: min(420px, 100%); background: var(--sg-dark-2); border-left: 1px solid var(--sg-on-dark-line); padding: 20px 24px; overflow: auto; }
.sg-rcp-cook-ing[hidden] { display: none; }
.sg-rcp-cook-ing h3 { color: var(--sg-accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 14px 0 6px; }
.sg-rcp-cook-ing ul { list-style: none; margin: 0; padding: 0; }
.sg-rcp-cook-ing li { padding: 6px 0; border-bottom: 1px solid var(--sg-on-dark-line); font-size: 15px; display: flex; gap: 10px; }
.sg-rcp-cook-ing li b { color: var(--sg-accent); min-width: 80px; }
.sg-rcp-cook-nav { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--sg-on-dark-line); }
.sg-rcp-cook-nav .sg-btn-ghost { color: var(--sg-on-dark); }
body.sg-rcp-lock { overflow: hidden; }

/* ------------------------------------------------------------ головна */

.sg-rcp-front { padding: var(--sg-section-y) 0; }
.sg-rcp-front .sg-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.sg-rcp-front .sg-section-head h2 { margin: 6px 0 0; font-size: 30px; }

/* ------------------------------------------------------------ друк */

@media print {
	.sg-rcp-actions, .sg-rcp-shop, .sg-rcp-related, .sg-rcp-reads, .sg-rcp-cook, .sg-rcp-timer, .sg-rcp-buy, .sg-rcp-crumbs, .sg-rcp-serv { display: none !important; }
	.sg-rcp-head, .sg-rcp-body { display: block; }
	.sg-rcp-hero-img { max-width: 60%; }
	.sg-rcp-ing { position: static; border: 0; padding: 0; margin-bottom: 20px; }
}

/* ------------------------------------------------------------ адаптив */

@media (max-width: 1100px) {
	.sg-rcp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sg-rcp-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sg-rcp-body { grid-template-columns: 330px minmax(0, 1fr); gap: 30px; }
	.sg-rcp-spice-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.sg-rcp-layout { grid-template-columns: 1fr; gap: 0; }
	.sg-rcp-filter { position: fixed; inset: auto 0 0 0; top: 8vh; z-index: 9000; max-height: none; border-radius: var(--sg-radius-lg) var(--sg-radius-lg) 0 0; transform: translateY(105%); transition: transform .28s ease; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); display: flex; flex-direction: column; overflow: auto; }
	.sg-rcp-filter.is-open { transform: translateY(0); }
	.sg-rcp-filter-close { display: inline-flex; }
	.sg-rcp-filter-btn { display: inline-flex; }
	.sg-rcp-filter-foot { display: block; margin-top: auto; }
	.sg-rcp-backdrop { position: fixed; inset: 0; z-index: 8999; background: rgba(0, 0, 0, .45); }
	.sg-rcp-head { grid-template-columns: 1fr; gap: 22px; }
	.sg-rcp-hero-img { order: -1; }
	.sg-rcp-head h1 { font-size: 30px; }
	.sg-rcp-body { grid-template-columns: 1fr; }
	.sg-rcp-ing { position: static; }
	.sg-rcp-reads ul { grid-template-columns: 1fr; }
	.sg-rcp-hero { padding: 52px 0 44px; }
	.sg-rcp-hero h1 { font-size: 32px; }
	.sg-rcp-front .sg-section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
	.sg-rcp-grid, .sg-rcp-grid.is-4 { grid-template-columns: 1fr; gap: 16px; }
	.sg-rcp-hero-search { flex-wrap: wrap; padding: 8px; }
	.sg-rcp-hero-search input { width: 100%; padding: 8px; }
	.sg-rcp-hero-search .sg-btn { width: 100%; }
	.sg-rcp-toolbar { flex-wrap: wrap; }
	.sg-rcp-sort span { display: none; }
	.sg-rcp-tiles { grid-template-columns: repeat(2, 1fr); }
	.sg-rcp-facts { gap: 10px 16px; }
	.sg-rcp-actions { flex-wrap: wrap; }
	.sg-rcp-cook-ing { top: 56px; width: 100%; }
}
