#est-doma {
  color-scheme: light;
  --canvas: #fcf9f2;
  --paper: #fffcf6;
  --panel: #f6f0e5;
  --ink: #2e2922;
  --muted: #62594c;
  --rule: #e2d9c9;
  --brand: #a23825;
  --brand-hover: #862c1c;
  --herb: #475b39;
  --serif: "Lora", Georgia, serif;
  --sans: "Golos Text", system-ui, sans-serif;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); }
#est-doma body { letter-spacing: normal; margin: 0; color: var(--ink); background: var(--canvas); font: 400 16px/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
#est-doma a { color: var(--link-color, inherit); text-decoration: none; }
button, input, select { font: inherit; }
#est-doma :is(button,input,select) { font-family: var(--sans); letter-spacing: normal; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .48; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 5vw, 4.65rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.85rem); }
h3 { font-size: clamp(1.18rem, 2.1vw, 1.48rem); line-height: 1.2; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 104px); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: .6rem 1rem; background: var(--paper); }
.preview-bar { position: sticky; inset-block-start: 0; z-index: 6; background: #eae5d9; color: #4a4337; border-bottom: 1px solid #ded5c5; }
.preview-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .75rem; }
.preview-inner a { padding-block: .4rem; }
.preview-inner a:hover, .footer-inner a:hover { text-decoration: underline; }
#est-doma .site-header { background: var(--canvas); border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 1.65rem; }
.brand { display: inline-flex; align-items: center; gap: .68rem; font: 600 clamp(1.32rem, 2.5vw, 1.9rem)/1 var(--serif); letter-spacing: -.07em; width: fit-content; white-space: nowrap; }
.brand-mark, .caption-icon { display: inline-grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 50%; background: var(--brand); color: #fffaf0; }
.pan-icon { position: relative; display: block; border: 1.6px solid currentColor; width: 15px; height: 15px; border-radius: 50%; transform: translate(-2px, 2px); }
.pan-icon::after { content: ""; position: absolute; height: 1.6px; width: 9px; top: -1.5px; right: -7.5px; background: currentColor; transform: rotate(-41deg); border-radius: 4px; }
.site-nav, .personal-nav { display: flex; align-items: center; gap: clamp(.85rem, 2.4vw, 2.25rem); }
.site-nav a, .personal-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .42rem; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.site-nav a:hover, .personal-nav a:hover, .site-nav a[aria-current], .personal-nav a[aria-current] { --link-color: var(--brand); }
.site-nav a[aria-current]::after { content: ""; height: 1px; background: currentColor; position: absolute; inset: auto 0 7px; }
.personal-nav { justify-content: flex-end; gap: clamp(.6rem, 1.6vw, 1.55rem); }
.nav-symbol { font: 23px/1 var(--sans); }
.bag-icon { width: 14px; height: 13px; border: 1.4px solid currentColor; border-radius: 2px; position: relative; margin-block-start: 4px; flex: none; }
.bag-icon::before { content: ""; position: absolute; width: 6px; height: 4px; top: -5px; left: 2.6px; border: 1.4px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
[data-shop-count] { padding: .08rem .36rem; border-radius: 1rem; background: #e9dacb; font-size: .72rem; color: var(--brand); }
.hero { display: grid; grid-template-columns: 1fr 1.03fr; gap: clamp(1.7rem, 4vw, 4.75rem); align-items: center; padding-block: clamp(2.65rem, 5.2vw, 5.1rem); }
.hero-content h1 { font-size: clamp(2.3rem, 5.0vw, 4.55rem); line-height: 1.04; letter-spacing: -.067em; }
.hero-content h1 em { font-weight: inherit; font-style: normal; color: var(--brand); }
.kicker { margin-bottom: .85rem; display: flex; align-items: center; gap: .58rem; color: var(--herb); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.kicker span { background: currentColor; width: 15px; height: 1px; flex: none; }
.hero-lede, .lede { color: var(--muted); line-height: 1.55; font-size: clamp(1rem, 1.38vw, 1.18rem); max-width: 39ch; }
.hero-lede { margin: 1.15rem 0 1.55rem; }
.hero-actions, .recipe-actions { display: flex; gap: .75rem 1.25rem; align-items: center; flex-wrap: wrap; margin-top: 1.52rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .68rem; min-height: 46px; padding: .66rem 1.05rem; border: 1px solid transparent; border-radius: 7px; font-size: .92rem; font-weight: 600; text-align: center; line-height: 1.35; }
.button-main { --link-color: #fffaf1; color: var(--link-color); background: var(--brand); }
.button-main:hover { background: var(--brand-hover); }
.button-light { background: var(--paper); border-color: var(--rule); }
.button-light:hover { border-color: var(--link-color); --link-color: var(--brand); color: var(--brand); }
.text-button { border: 0; background: none; padding: .45rem 0; --link-color: var(--brand); color: var(--link-color); font-size: .86rem; font-weight: 600; text-align: left; }
.text-button:hover, .section-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: .21em; }
.hero-figure { position: relative; min-width: 0; }
.hero-cover { display: block; border-radius: 12px; overflow: hidden; background: #dbccaf; }
.hero-cover img { aspect-ratio: 1.2; object-fit: cover; object-position: 54% 50%; }
.hero-caption { display: flex; align-items: center; gap: .62rem; min-height: 56px; padding: .65rem .82rem; position: absolute; inset: auto 1.05rem 1.05rem; border-radius: 7px; background: var(--paper); box-shadow: 0 4px 18px #3c231823; }
.hero-caption a { display: block; font: 600 clamp(.91rem, 1.6vw, 1.18rem)/1.2 var(--serif); }
.hero-caption a:hover { --link-color: var(--brand); }
.hero-caption small, .credit, .photo-note { color: var(--muted); font-size: .74rem; }
.hero-caption small { display: block; margin-top: .13rem; }
.caption-icon { width: 30px; height: 30px; background: #e9ecdf; color: var(--herb); }
.caption-icon .pan-icon { scale: .8; }
.credit { margin-left: auto; text-align: right; }
.pantry { min-width: 0; }
.pantry-entry { display: flex; flex-wrap: wrap; gap: .6rem; }
.product-search { position: relative; width: 100%; }
#est-doma :is(.product-search input, .amount-row input, .field select) {
  color: var(--ink); width: 100%; min-width: 0; border: 1px solid #cfc4b0; border-radius: 7px; background: var(--paper); min-height: 46px; padding: .62rem .72rem;
}
#est-doma .product-search input { padding-left: 2.5rem; }
#est-doma .product-search input::placeholder { color: #736859; opacity: 1; }
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.magnifier { position: absolute; left: .95rem; top: 15px; width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.magnifier::after { content: ""; width: 6px; height: 1.5px; position: absolute; right: -5px; bottom: -3px; transform: rotate(45deg); background: var(--muted); }
.product-options { position: absolute; z-index: 4; width: 100%; max-height: 200px; overflow-y: auto; border: 1px solid #cfc4b0; border-radius: 7px; list-style: none; margin: .25rem 0 0; padding: .24rem; background: var(--paper); box-shadow: 0 6px 16px #42251418; }
.option, .no-option { padding: .55rem .65rem; border-radius: 4px; }
.option { cursor: pointer; }
.option:hover, .option[aria-selected="true"] { background: var(--panel); color: var(--brand); }
.no-option { color: var(--muted); }
.amount-form { margin-top: .62rem; }
.amount-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .25rem; }
.amount-row { display: flex; gap: .55rem; }
.quick-picks, .pantry-items { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .65rem; }
.pick, .pantry-chip { min-height: 34px; border: 1px solid #ddd2bf; background: var(--paper); border-radius: 50px; font-size: .8rem; }
.pick { padding: .3rem .6rem; }
.pick span { color: var(--brand); font-size: 1rem; line-height: 1; }
.pick:hover, .pantry-edit:hover, .pantry-remove:hover { color: var(--brand); border-color: var(--brand); }
.pantry-chip { display: flex; gap: .22rem; align-items: center; background: #ebeee3; border-color: #d7ddcb; }
.pantry-chip button { border: 0; background: none; padding: .3rem .42rem; min-height: 34px; }
.pantry-edit { text-align: left; padding-left: .62rem !important; }
.pantry-edit small { color: var(--herb); white-space: nowrap; }
.pantry-remove { font-size: 1.17rem; margin-right: .18rem; min-width: 28px; line-height: 1; }
.home-recipes { background: var(--panel); border-block: 1px solid var(--rule); }
.home-recipes-inner { padding-block: clamp(2.2rem, 4vw, 3.75rem); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: .85rem; margin-bottom: 1.4rem; }
.section-top .kicker { margin-bottom: .45rem; }
.section-link, .back-link { --link-color: var(--brand); font-size: .9rem; font-weight: 600; }
.section-link { display: inline-flex; align-items: center; gap: .4rem; padding-bottom: .2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.5rem); }
.recipe-card { position: relative; min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }
.card-image { display: block; border-radius: 9px 9px 0 0; overflow: hidden; background: #e7d9c0; }
.card-image img { aspect-ratio: 1.55; object-fit: cover; }
.card-copy { padding: .85rem 1rem 1rem; }
.card-copy h2 { font-size: clamp(1.18rem, 2.1vw, 1.48rem); line-height: 1.2; }
.card-copy :is(h2, h3) a:hover { --link-color: var(--brand); text-decoration: underline; text-underline-offset: .15em; }
.card-copy > p:not(.card-meta) { margin-top: .5rem; color: var(--muted); font-size: .85rem; }
.card-meta { color: var(--herb); margin-bottom: .34rem; font-size: .75rem; font-weight: 600; }
.card-meta span { margin-inline: .12rem; }
.icon-button { border: 1px solid var(--rule); display: inline-grid; place-items: center; padding: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); color: var(--brand); font: 23px/1 var(--sans); }
.icon-button:hover { border-color: var(--brand); }
.recipe-save { position: absolute; z-index: 1; top: .52rem; right: .52rem; }
.photo-note { margin-top: .82rem; }
.site-footer { color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: .85rem; align-items: center; min-height: 95px; font-size: .82rem; }
.footer-brand { --link-color: var(--ink); font-size: 1.32rem; }
.page-wrap { padding-block: clamp(2rem, 4.2vw, 4.25rem); min-height: 68vh; }
.page-wrap > h1 { font-size: clamp(2.3rem, 5vw, 4.35rem); }
.lede { margin-top: .85rem; }
.results-layout { display: grid; grid-template-columns: minmax(240px, .39fr) minmax(0, 1fr); gap: clamp(1.25rem, 3.4vw, 3.5rem); margin-top: 2rem; align-items: start; }
.filter-panel { border: 1px solid var(--rule); border-radius: 11px; background: var(--panel); padding: clamp(1rem, 2vw, 1.4rem); }
.filter-panel hr { border: 0; border-top: 1px solid var(--rule); margin: 1.05rem 0; }
.filter-panel h2 { font-size: 1.43rem; margin-bottom: .8rem; }
.filter-options summary { cursor: pointer; font-family: var(--serif); font-size: 1.26rem; font-weight: 500; }
.preset-filter { margin-top: .5rem; min-height: 34px; }
.field { display: grid; gap: .35rem; margin-block: .67rem; font-size: .9rem; font-weight: 500; }
.field select { font-size: 1rem; }
.serving-field { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.serving-control { display: inline-flex; align-items: center; flex: none; background: var(--paper); border: 1px solid var(--rule); border-radius: 7px; }
.serving-control output { min-width: 2.2rem; text-align: center; color: var(--ink); }
.stepper { cursor: pointer; color: var(--brand); background: none; border: 0; width: 38px; min-height: 40px; font-size: 1.24rem; border-radius: 6px; }
.stepper:hover:not(:disabled) { background: var(--panel); }
.check-line { display: flex; gap: .55rem; align-items: start; min-height: 34px; padding-top: .27rem; font-size: .84rem; font-weight: 500; cursor: pointer; }
input[type="checkbox"] { width: 17px; height: 17px; margin: .14rem 0 0; flex: none; accent-color: var(--herb); cursor: pointer; }
.check-line small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; margin-top: .12rem; }
.results-body h2 { font-size: clamp(1.68rem, 3vw, 2.5rem); }
.match-summary { color: var(--muted); margin: .35rem 0 1.25rem; font-size: .88rem; }
.match-group + .match-group { margin-top: 1.55rem; }
.match-group > h3 { display: flex; align-items: center; gap: .48rem; margin-bottom: .68rem; font-family: var(--sans); font-size: .88rem; font-weight: 600; letter-spacing: 0; }
.match-group > h3 small { color: var(--muted); font-size: .77rem; }
.group-dot { width: .56rem; height: .56rem; border-radius: 50%; background: #918373; flex: none; }
.group-dot.ready { background: #637a51; }
.group-dot.one { background: #b95836; }
.results-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-copy > .availability.ready { color: var(--herb); }
.card-copy > .availability.lack { color: var(--brand); }
.catalog-grid { margin-top: 1.5rem; }
.empty-state { border: 1px solid var(--rule); border-radius: 8px; padding: 1rem; margin: .7rem 0 1rem; background: var(--panel); color: var(--muted); }
.empty-state .button { margin-top: .75rem; }
.back-link { display: inline-block; margin-bottom: 1.3rem; padding-block: .22rem; }
.recipe-lead { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.15rem, 4vw, 4rem); }
.recipe-intro h1 { font-size: clamp(2.25rem, 4.9vw, 4.5rem); }
.recipe-intro .lede { max-width: 45ch; }
.recipe-figure { align-self: start; }
.recipe-figure img { aspect-ratio: 1.44; object-fit: cover; border-radius: 11px; background: var(--panel); }
.recipe-figure figcaption { text-align: right; margin-top: .24rem; }
.recipe-meta { display: flex; gap: .65rem 1.4rem; flex-wrap: wrap; margin-top: 1.2rem; }
.recipe-meta div { padding-left: .65rem; border-left: 1px solid var(--rule); }
.recipe-meta dt { color: var(--muted); font-size: .73rem; }
.recipe-meta dd { margin-top: .15rem; font-weight: 600; font-size: .94rem; }
.recipe-grid { display: grid; grid-template-columns: minmax(230px, .49fr) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 4.5vw, 4.85rem); margin-top: clamp(1.8rem, 4vw, 3.5rem); border-top: 1px solid var(--rule); padding-top: clamp(1.45rem, 3.7vw, 3rem); }
.ingredients { padding: clamp(1rem, 2vw, 1.5rem); background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; }
.ingredients h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); }
.ingredients-list, .steps, .shopping-list ul, .shopping-sources ul { list-style: none; margin: 0; padding: 0; }
.ingredients-list { margin-top: .95rem; }
.ingredients-list li { display: flex; justify-content: space-between; padding: .57rem 0; gap: .6rem; border-top: 1px solid var(--rule); font-size: .91rem; }
.ingredients-list b { flex: none; font-weight: 600; }
.recipe-shopping { border-top: 1px solid var(--rule); padding-top: .8rem; margin-top: .28rem; }
[data-shortage] { color: var(--brand); font-size: .88rem; margin-bottom: .7rem; }
[data-shop-status]:not(:empty) { margin-top: .45rem; font-size: .79rem; color: var(--herb); }
.steps { counter-reset: step; margin-top: 1.12rem; }
.steps li { position: relative; counter-increment: step; padding: 0 0 1.2rem 2.8rem; }
.steps li::before {
  content: counter(step); position: absolute; inset: 0 auto auto 0; display: grid; place-items: center; width: 1.98rem; height: 1.98rem;
  background: #efe3d5; border-radius: 50%; color: var(--brand); font-size: .89rem; font-weight: 600;
}
.steps li p { margin-top: .35rem; color: var(--muted); }
.recipe-notes { margin-top: .4rem; }
.recipe-notes details { border-top: 1px solid var(--rule); padding: .65rem 0; }
.recipe-notes summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.recipe-notes details p { margin-top: .42rem; color: var(--muted); }
.cook-dialog { background: var(--canvas); color: var(--ink); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(1rem, 2.8vw, 2rem); width: min(610px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.cook-dialog::backdrop { background: #252018ab; }
.cook-top, .cook-controls { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.cook-top .kicker { margin: 0; }
.cook-dialog h2 { margin-top: .8rem; }
.cook-instruction { margin-top: .8rem; font-size: clamp(1.1rem, 2.1vw, 1.35rem); }
.cook-controls { margin-top: 1.3rem; }
.cook-timer { display: flex; flex-wrap: wrap; align-items: center; gap: .52rem; border-top: 1px solid var(--rule); padding-top: .65rem; margin-top: 1.1rem; }
.cook-timer output { font-size: 1.45rem; font-variant-numeric: tabular-nums; min-width: 3.6rem; }
.cook-timer p { flex-basis: 100%; color: var(--herb); }
.shopping-list, .shopping-sources { margin-top: 1.1rem; max-width: 620px; }
.shopping-list li, .shopping-sources li { border-bottom: 1px solid var(--rule); }
.shopping-list label, .shopping-sources li { display: flex; gap: .72rem; align-items: center; min-height: 46px; }
.shopping-list label { cursor: pointer; }
.shopping-list label input:checked + span { text-decoration: line-through; color: var(--muted); }
.shopping-list b, .shopping-sources button { margin-left: auto; white-space: nowrap; }
.shopping-sources h2 { margin-block: 1.4rem .3rem; font-size: 1.5rem; }
.shopping-sources a:hover { text-decoration: underline; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 1.45rem; }
  .header-inner { column-gap: 1.05rem; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: auto; row-gap: 0; padding-top: .45rem; }
  .personal-nav { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; gap: 1.4rem; }
  .site-nav a, .personal-nav a { font-size: .78rem; }
  .brand { font-size: 1.45rem; gap: .42rem; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-mark .pan-icon { scale: .82; }
  .hero { grid-template-columns: 1fr; padding-block: 2.15rem 1.8rem; gap: 1.4rem; }
  .hero-content h1 { font-size: clamp(2.35rem, 8.6vw, 3.85rem); }
  .hero-lede { margin-block: .93rem 1.1rem; }
  .hero-actions { margin-top: 1rem; }
  .hero-cover img { aspect-ratio: 1.53; }
  .hero-caption { inset: auto .6rem .58rem; min-height: 48px; padding: .42rem .5rem; }
  .credit { font-size: .68rem; }
  .results-layout, .recipe-lead, .recipe-grid { grid-template-columns: 1fr; }
  .results-layout { margin-top: 1.4rem; }
  .recipe-figure img { aspect-ratio: 1.53; }
  .recipe-grid { margin-top: 1.25rem; padding-top: 1.25rem; }
  .recipe-meta { gap: .55rem .8rem; }
  .recipe-actions { margin-top: 1rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { min-height: 68px; }
  .footer-inner p { display: none; }
}

@media (max-width: 460px) {
  .wrap { width: calc(100% - 32px); }
  .personal-nav { gap: .62rem; }
  .personal-nav a { gap: .28rem; }
  .hero-actions, .recipe-actions { gap: .42rem .7rem; }
  .hero-actions .button { padding-inline: .68rem; }
  .hero-actions .text-button { font-size: .8rem; }
  .home-recipes .card-grid, .results-cards, .catalog-grid { grid-template-columns: 1fr; }
  .card-image img { aspect-ratio: 1.72; }
  .pick, .pantry-chip button { min-height: 40px; }
}

@media (max-width: 360px) {
  .header-inner { column-gap: .48rem; }
  .personal-nav :is(.nav-symbol, .bag-icon) { display: none; }
  .personal-nav a { font-size: .71rem; }
  .personal-nav { gap: .38rem; }
  .brand { font-size: 1.31rem; }
  .brand-mark { width: 27px; height: 27px; }
  .hero-actions .button { width: 100%; }
}

/* Рецепт: спокойная книжная композиция и ясные подсказки. */
.editorial-note { margin-top: 1.15rem; color: var(--muted); font-size: .875rem; max-width: 40ch; }
.equipment-note { margin-top: .75rem; color: var(--herb); font-size: .94rem; }
.portion-hint { color: var(--muted); font-size: .875rem; margin-top: .8rem; }
.recipe-figure .photo-note { font-size: .875rem; }
.recipe-meta dt { font-size: .875rem; }
.recipe-wrap .kicker { font-size: .875rem; }
.recipe-wrap .recipe-intro h1 { font-size: clamp(2.15rem, 4vw, 3.65rem); line-height: 1.13; }
.recipe-wrap .recipe-figure { align-self: center; }
.recipe-wrap .recipe-figure img { aspect-ratio: 1.25; }
.recipe-wrap .ingredients { position: sticky; top: 54px; }
@media (max-width: 760px) {
  .recipe-wrap .recipe-figure img { aspect-ratio: 1.5; }
  .recipe-wrap .ingredients { position: static; }
  .recipe-wrap .recipe-intro h1 { font-size: clamp(2.15rem, 8vw, 3.3rem); }
  .recipe-wrap .recipe-lead { gap: 1.4rem; }
}

/* Стоимость: в составе рецепта, с открытыми исходными данными. */
#est-doma .cost-teaser { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem .7rem; border-top: 1px solid var(--rule); margin-top: .8rem; padding-top: 1rem; font-size: .88rem; }
.cost-teaser strong { color: var(--brand); font-weight: 600; }
.recipe-cost { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); scroll-margin-top: 65px; }
.cost-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.cost-heading h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-top: .55rem; }
.cost-source { max-width: 290px; color: var(--muted); font-size: .88rem; }
.cost-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.7rem 0 1rem; background: var(--panel); border-block: 1px solid var(--rule); }
.cost-totals > div { padding: 1.3rem 1.5rem; }
.cost-totals > div + div { border-left: 1px solid var(--rule); }
.cost-totals span { display: block; font-size: .88rem; color: var(--muted); }
.cost-totals strong { display: block; font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.4rem); margin-top: .3rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cost-totals .cost-main strong { color: var(--brand); }
.cost-status { font-size: .92rem; margin-bottom: .8rem; }
.cost-pantry { display: flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; }
.cost-pantry input { accent-color: var(--brand); flex: 0 0 18px; width: 18px; height: 18px; }
.cost-help { font-size: .83rem; color: var(--muted); line-height: 1.55; }
.cost-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin-block: 1.2rem; }
.cost-actions button { min-height: 44px; }
.cost-details { border-block: 1px solid var(--rule); }
.cost-details > summary { cursor: pointer; font-weight: 500; padding: 1rem 0; min-height: 48px; }
.cost-details > .cost-help { max-width: 740px; margin-bottom: 1.4rem; }
.cost-row { margin: 0 0 1.25rem; padding: 0 0 1.25rem; border: 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.cost-row:last-child { border: 0; margin-bottom: 0; }
.cost-row legend { padding: 0; font-weight: 600; margin-bottom: .6rem; }
.cost-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: .7rem; }
.cost-fields label { font-size: .83rem; color: var(--muted); }
.cost-fields :is(input, select) { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: .3rem; padding: .6rem .65rem; border: 1px solid var(--rule); border-radius: 5px; background: var(--paper); color: var(--ink); font-size: 1rem; }
.cost-fields input[aria-invalid="true"] { border-color: var(--brand); }
.cost-error { font-size: .83rem; color: var(--brand); margin-top: .4rem; }
.cost-line { font-size: .88rem; margin-top: .7rem; }
.cost-storage { margin-top: .75rem; }
@media (max-width: 760px) {
  .recipe-cost { margin-top: 2rem; }
  .cost-heading { display: block; }
  .cost-source { max-width: none; margin-top: .8rem; }
  .cost-totals { grid-template-columns: 1fr; }
  .cost-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .9rem 1rem; }
  .cost-totals > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .cost-totals span { max-width: 55%; }
  .cost-totals strong { margin-top: 0; font-size: 1.3rem; }
  .cost-totals .cost-main strong { font-size: 1.8rem; }
  .cost-fields { grid-template-columns: 1fr 1fr; }
  .cost-fields label:last-child { grid-column: 1 / -1; }
  .cost-pantry { align-items: start; }
  .cost-pantry input { margin-top: .3rem; }
  .cost-actions .button { width: 100%; font-size: .88rem; }
}

/* Публичный портал: навигация и ссылки между рецептами. */
#est-doma .brand { letter-spacing: -.055em; font-size: clamp(1.2rem, 2vw, 1.65rem); }
#est-doma .header-inner { grid-template-columns: auto 1fr auto; gap: 1.3rem; }
#est-doma .site-nav { justify-self: center; }
#est-doma .breadcrumbs { padding-top: 1.25rem; font-size: .79rem; color: var(--muted, #68675e); }
#est-doma .breadcrumbs ol { display:flex; flex-wrap:wrap; gap:.45rem .6rem; list-style:none; margin:0; padding:0; }
#est-doma .breadcrumbs li { max-width:100%; overflow-wrap:anywhere; }
#est-doma .breadcrumbs li + li::before { content:'›'; margin-right:.6rem; }
#est-doma .breadcrumbs a { text-decoration:underline; text-underline-offset:3px; }
#est-doma .related-recipes { margin-top:3rem; padding-top:2rem; border-top:1px solid #ded9cc; }
#est-doma .related-recipes ul { list-style:none; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; margin:1.5rem 0; }
#est-doma .related-recipes li { display:flex; flex-direction:column; gap:.6rem; }
#est-doma .related-recipes a { text-decoration:underline; text-underline-offset:4px; }
#est-doma .related-recipes li span { font-size:.8rem; color:#68675e; }
@media (max-width:1050px) {
  #est-doma .personal-nav .personal-label { display:none; }
  #est-doma .personal-nav a { min-width:36px; min-height:40px; justify-content:center; }
}
@media (max-width:760px) {
  #est-doma .header-inner { grid-template-columns:1fr auto; gap:.4rem 1rem; }
  #est-doma .site-nav { justify-self:start; }
  #est-doma .brand { font-size:1.42rem; }
  #est-doma .related-recipes ul { grid-template-columns:1fr; gap:1rem; }
}
@media (max-width:360px) {
  #est-doma .brand { font-size:1.2rem; gap:.4rem; }
  #est-doma .personal-nav { gap:.15rem; }
  #est-doma .personal-nav .nav-symbol, #est-doma .personal-nav .bag-icon { display:inline-block; }
  #est-doma .header-inner { gap:.4rem; }
}
