@font-face { font-family: 'PT Sans'; font-weight: 400; font-display: swap; src: url('fonts/pt-sans-cyrillic-400-normal.woff') format('woff'); unicode-range: U+0400-04FF; }
@font-face { font-family: 'PT Sans'; font-weight: 700; font-display: swap; src: url('fonts/pt-sans-cyrillic-700-normal.woff') format('woff'); unicode-range: U+0400-04FF; }
@font-face { font-family: 'PT Sans'; font-weight: 400; font-display: swap; src: url('fonts/pt-sans-latin-400-normal.woff') format('woff'); }
@font-face { font-family: 'PT Sans'; font-weight: 700; font-display: swap; src: url('fonts/pt-sans-latin-700-normal.woff') format('woff'); }
:root { --ink: #2c1a1d; --soft: #5e4a4d; --mute: #7c6b6e; --red: #d92f47; --line: rgba(44, 26, 29, .14); --pad: clamp(20px, 6.25vw, 80px); }
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 18px/28px 'PT Sans', sans-serif; color: var(--ink); background: #fff; text-wrap: pretty; }
a { color: inherit; }
.hero { position: relative; overflow: hidden; background: #fde8e4; }
.nav { position: relative; z-index: 3; max-width: 1280px; margin: 0 auto; padding: 24px var(--pad) 0; display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; font-size: 16px; }
.nav-name { font-size: 20px; font-weight: 700; }
.nav a { text-decoration: none; }
.hero-in { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 28px var(--pad) 64px; }
#art-melon { position: absolute; z-index: 1; right: -210px; top: -150px; width: 620px; height: 620px; }
.art-melon { display: block; width: 100%; height: 100%; }
h1, h2 { letter-spacing: -.5px; overflow-wrap: anywhere; }
h1 { font-size: 48px; line-height: 54px; max-width: 760px; margin-bottom: 10px; }
h2 { font-size: 44px; line-height: 52px; margin-bottom: 20px; }
.lead { font-size: 22px; line-height: 30px; max-width: 640px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #fff; padding: 4px; border-radius: 12px; margin-top: 18px; box-shadow: 0 8px 20px rgba(44, 26, 29, .08); }
.tabs button { font: 700 16px/24px 'PT Sans', sans-serif; color: var(--ink); background: none; border: 0; padding: 10px 16px; border-radius: 9px; cursor: pointer; }
.tabs .on { background: var(--red); color: #fff; }
.grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; margin-top: 16px; align-items: start; }
.card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 24px 48px rgba(44, 26, 29, .12); min-width: 0; }
.lbl { display: block; font-size: 15px; line-height: 22px; color: var(--soft); margin-bottom: 6px; }
textarea, select, input { font: 400 17px/26px 'PT Sans', sans-serif; color: var(--ink); background: #fff8f6; border: 1px solid var(--line); border-radius: 10px; }
textarea { display: block; width: 100%; padding: 10px 14px; resize: vertical; }
select { width: 100%; max-width: 100%; padding: 9px 12px; }
.mode { margin-top: 14px; }
.field { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; margin-top: 10px; }
.field > span:first-child { color: var(--soft); font-size: 15px; line-height: 20px; }
.in { display: inline-flex; align-items: center; gap: 6px; }
.in em { font-style: normal; color: var(--soft); font-size: 15px; }
.in input { width: 78px; min-height: 44px; padding: 3px 8px; text-align: right; font-weight: 700; }
.field { min-width: 0; }
.lblrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lblrow span { white-space: nowrap; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { font-size: 15px; color: var(--soft); margin-bottom: 6px; padding: 0; }
.k { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; background: #fde8e4; border-radius: 12px; margin-bottom: 8px; }
.k b { font-size: 34px; line-height: 40px; white-space: nowrap; color: var(--red); }
.k span { color: var(--soft); font-size: 16px; line-height: 22px; min-width: 0; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 400; color: var(--mute); font-size: 15px; padding: 6px 0; border-bottom: 1px solid var(--line); }
td { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 24px; overflow-wrap: anywhere; hyphens: auto; }
.r { text-align: right; white-space: nowrap; padding-left: 14px; }
th.r { text-align: right; }
td.new { font-weight: 700; }
td small { display: block; color: var(--mute); font-size: 14px; line-height: 19px; }
.kbju { margin-top: 14px; background: #eaf3e6; border-radius: 12px; padding: 12px 14px; color: #183a2a; }
.kbju .lbl { color: #4f6357; }
.kbju .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.kbju b { display: block; font-size: 24px; line-height: 28px; }
.kbju i { display: block; font-style: normal; color: #4f6357; font-size: 14px; line-height: 18px; }
.tips { margin: 12px 0 0; padding: 0 0 0 18px; font-size: 15px; line-height: 21px; color: var(--soft); }
.tips li + li { margin-top: 4px; }
.cap { font-size: 14px; line-height: 20px; color: var(--mute); margin-top: 10px; }
.kbju .cap { color: #4f6357; }
.miss { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; font-size: 15px; line-height: 21px; }
.link { font: 700 15px/21px 'PT Sans', sans-serif; color: #1f6b47; background: none; border: 0; padding: 10px 4px; min-height: 44px; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.food { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; font-size: 14px; line-height: 18px; }
.food b { grid-column: 1 / -1; font-size: 15px; line-height: 21px; }
.food label { color: #4f6357; }
.food input { display: block; width: 100%; min-height: 44px; padding: 3px 8px; margin-top: 2px; }
.food .btn.small { grid-column: 1 / -1; justify-self: start; font-size: 15px; min-height: 44px; padding: 8px 14px; background: #2b7a54; }
.err { grid-column: 1 / -1; color: #c0263c; min-height: 0; }
.total { margin-top: 14px; }
.total div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.total b { white-space: nowrap; }
.total .big { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.total .big b { font-size: 28px; line-height: 34px; }
.cost { display: grid; grid-template-columns: 1fr 96px 76px; gap: 8px; align-items: center; margin-top: 8px; font-size: 16px; line-height: 22px; }
.cost input { width: 100%; min-height: 44px; padding: 3px 8px; }
.cost .in { min-width: 0; }
.cost-head { color: var(--soft); font-size: 14px; line-height: 18px; margin-top: 10px; }
.warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fde8e4; font-size: 15px; line-height: 21px; }
.partial .row b { opacity: .55; }
h3 { font-size: 24px; line-height: 30px; margin: 24px 0 8px; }
.btn:disabled { opacity: .45; cursor: default; }
.btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn { font: 700 18px/24px 'PT Sans', sans-serif; background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 14px 22px; cursor: pointer; }
.btn:hover { filter: brightness(.94); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.green { background: #eaf3e6; color: #183a2a; }
.green-in { max-width: 1280px; margin: 0 auto; padding: 72px var(--pad); display: grid; grid-template-columns: minmax(0, 620px) minmax(240px, 420px); gap: 48px; align-items: center; justify-content: space-between; }
.green p + p { margin-top: 12px; }
.art-plate { display: block; width: 100%; height: auto; }
.dark { position: relative; overflow: hidden; background: #134a35; color: #fff; }
.dark-in { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 72px var(--pad); min-height: 456px; display: flex; flex-direction: column; justify-content: center; }
.dark p { max-width: 560px; font-size: 22px; line-height: 30px; }
#art-produce { position: absolute; z-index: 1; right: -20px; top: 10px; width: 400px; height: 436px; }
.art-produce { display: block; width: 100%; height: 100%; }
.foot { max-width: 1280px; margin: 0 auto; padding: 20px var(--pad); font-size: 14px; line-height: 20px; color: #5e6b64; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 68px 78px 32px; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 21px; }
.line b { display: block; font-weight: 400; overflow-wrap: anywhere; }
.line small { display: block; color: var(--mute); font-size: 13px; line-height: 17px; }
.line small .link { font-size: 13px; line-height: 17px; padding: 6px 0; min-height: 0; margin-left: 4px; }
.line.ask small .link { margin-left: 0; color: var(--red); }
.line input, .line select { width: 100%; min-height: 44px; padding: 3px 6px; font-size: 16px; }
.line.ask { background: #fde8e4; margin: 2px -8px; padding: 6px 8px; border-radius: 10px; border-bottom: 0; }
.line input.bad { border-color: var(--red); background: #fde8e4; }
.x { background: none; border: 0; color: var(--mute); font-size: 20px; min-height: 44px; cursor: pointer; }
.search { width: 100%; min-height: 48px; padding: 8px 12px; margin-top: 10px; border: 2px solid var(--red); background: #fff; }
.suggest { margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.suggest button { display: flex; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 10px 12px; font: 400 16px/21px 'PT Sans', sans-serif; color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.suggest button b { font-weight: 400; }
.suggest button span { color: var(--mute); font-size: 14px; white-space: nowrap; }
.suggest .own { color: #1f6b47; font-weight: 700; border-bottom: 0; }
.fname { grid-column: 1 / -1; }
.fname input { min-height: 44px; }
.food-btns { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
#paste-box { margin-top: 6px; }
[hidden] { display: none !important; }
.boot .tabs, .boot .link, .boot #copy { opacity: .5; pointer-events: none; }
.to-result { display: none; }
@media (max-width: 900px) {
  h1 { font-size: 38px; line-height: 44px; }
  h2 { font-size: 30px; line-height: 36px; }
  .lead, .dark p { font-size: 19px; line-height: 26px; }
  .hero-in { padding: 32px var(--pad) 48px; }
  #art-melon { width: 210px; height: 210px; right: -105px; top: -70px; }
  h1 { max-width: 88%; }
  .grid, .green-in { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .line { grid-template-columns: minmax(0, 1fr) 96px 40px; }
  .line > div:first-child { grid-column: 1 / -1; }
  .to-result { position: sticky; bottom: 8px; z-index: 5; }
  .kbju i { font-size: 13px; }
  .lblrow { display: block; }
  .lblrow .link { padding: 10px 12px 10px 0; }
  .to-result { display: block; width: 100%; background: #fff; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
  .cost { grid-template-columns: 1fr 112px 76px; gap: 6px; }
  .cost .in input { width: 76px; }
  .kbju .row { gap: 4px; }
  .card { padding: 16px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .art-plate { max-width: 320px; margin: 0 auto; }
  #art-produce { display: none; }
  .dark-in { min-height: 0; }
}
.foot a { color: inherit; }

/* Логотип в шапке (08.11.2026): знак как у иконки приложения «На тарелке» — белая тарелка на зелёном */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
/* Надпись логотипа — рукописный Caveat (OFL, выбор владельца 08.11.2026), подмножество только букв «На тарелке» */
@font-face { font-family: 'Caveat Logo'; src: url(fonts/caveat-logo.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
.brand-text b { font: 700 29px/1 'Caveat Logo', 'PT Sans', sans-serif; }
.brand-text small { font-size: 13px; color: var(--soft); }
