/* =====================================================================
   Сайт: оформление 3 (ноябрь 2026). Шрифты, анимации, курсор, карточки,
   отзывы, вопросы, подвал, вход.
   ===================================================================== */

@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-cyrillic-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/assets/fonts/playfair-display-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/assets/fonts/playfair-display-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/assets/fonts/playfair-display-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
body.pub { font-family: var(--sans); font-feature-settings: "ss01"; letter-spacing: -.003em; }
h1, h2, h3 { letter-spacing: -.015em; }
.pbtn, .sbtn, .chip { font-family: var(--sans); }

/* ---------- общее: волна, появление, переходы, окна ---------- */
.ripple-clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 0; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .2; transform: scale(0); animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.rvl { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.rvl.in { opacity: 1; transform: none; }
html.ready main.pwrap { animation: pagein .5s var(--ease) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.leaving main.pwrap { opacity: .3; transform: translateY(6px); transition: opacity .2s, transform .2s; }
dialog[open] { animation: dlgin .32s var(--spring); }
dialog[open]::backdrop { animation: fogin .25s ease; }
@keyframes dlgin { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fogin { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.5); } 100% { transform: scale(1); } }
.pbtn { transition: background .15s, transform .15s var(--ease), box-shadow .2s; box-shadow: 0 10px 22px -16px rgba(27, 58, 43, .8); }
.pbtn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -16px rgba(27, 58, 43, .9); }
.pbtn:active { filter: brightness(.93); transform: translateY(1px); }
.pbtn.ghost { box-shadow: none; }

/* ---------- курсор ---------- */
html.curon, html.curon a, html.curon button, html.curon summary, html.curon label, html.curon [role=button] { cursor: none; }
html.curon input, html.curon textarea, html.curon select { cursor: text; }
html.curon select { cursor: pointer; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999; border-radius: 50%; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--brand); transition: width .2s, height .2s, margin .2s, opacity .2s; }
.cur-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(27, 58, 43, .45); transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s, opacity .2s; }
html.cur-link .cur-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(168, 137, 79, .14); border-color: rgba(168, 137, 79, .7); }
html.cur-link .cur-dot { background: var(--gold); }
html.cur-down .cur-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: rgba(27, 58, 43, .18); }
html.cur-text .cur-ring, html.cur-text .cur-dot, html.cur-out .cur-ring, html.cur-out .cur-dot { opacity: 0; }

/* ---------- шапка: живой логотип ---------- */
.slogo img { animation: logoin .9s var(--spring) both, logobreathe 6s ease-in-out 1.2s infinite; transform-origin: 20% 60%; }
.slogo:hover img { animation: logowiggle .6s var(--ease); }
@keyframes logoin { from { opacity: 0; transform: translateY(-8px) rotate(-6deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes logobreathe { 0%, 100% { transform: none; } 50% { transform: translateY(-1.5px) scale(1.015); } }
@keyframes logowiggle { 25% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } 100% { transform: none; } }
.snav a { position: relative; }
.snav a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold); transition: left .25s var(--ease), right .25s var(--ease); }
.snav a:hover::after, .snav a.on::after { left: 10%; right: 10%; }
.sbtn.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.15); } }
#cartn:not([hidden]) { animation: pop .4s var(--spring); }

/* ---------- первый экран ---------- */
.hero-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .14em; padding: 8px 16px 8px 12px; border-radius: 99px; background: var(--gold-soft); color: #8a6c33; animation: tagin .9s var(--ease) .15s both; position: relative; overflow: hidden; }
.hero-tag::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%); background-size: 250% 100%; animation: shine 4.5s ease-in-out 1.2s infinite; }
.hero-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(168, 137, 79, .6); animation: dotpulse 2s infinite; }
@keyframes tagin { from { opacity: 0; transform: translateY(10px); letter-spacing: .3em; } to { opacity: 1; transform: none; } }
@keyframes shine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@keyframes dotpulse { 70% { box-shadow: 0 0 0 9px rgba(168, 137, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 137, 79, 0); } }
.hero h1 { animation: risein .8s var(--ease) .25s both; }
.hero p { animation: risein .8s var(--ease) .38s both; }
.hero-btns, .hero-facts { animation: risein .8s var(--ease) .5s both; }
@keyframes risein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-pic .hero-logo { position: relative; z-index: 1; animation: herologo 1.1s var(--spring) .2s both, float 7s ease-in-out 1.5s infinite; }
@keyframes herologo { from { opacity: 0; transform: scale(.82) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
.hero-pic::before { animation: spin 40s linear infinite; border-style: dashed; }
.hero-orbit { position: absolute; inset: -14px; border-radius: 50%; animation: spin 18s linear infinite; }
.hero-orbit i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); top: -6px; left: calc(50% - 6px); box-shadow: 0 0 0 5px rgba(168, 137, 79, .18); }
.hero-orbit i:nth-child(2) { top: auto; bottom: 14%; left: 2%; width: 9px; height: 9px; background: var(--brand); }
.hero-orbit i:nth-child(3) { top: 30%; left: auto; right: -4px; width: 7px; height: 7px; background: #7fb08f; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- карточки еды ---------- */
.hcard { border-radius: 18px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.hcard:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -26px rgba(27, 58, 43, .55); border-color: rgba(168, 137, 79, .45); }
.hcard-ph { background: radial-gradient(circle at 50% 40%, #fff 0%, var(--gold-soft) 75%); }
.hcard-ph img { transition: transform .6s var(--ease); }
.hcard:hover .hcard-ph img:not(.noimg) { transform: scale(1.07); }
.hcard-kc { position: absolute; left: 10px; bottom: 10px; font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--brand); box-shadow: 0 4px 10px -6px rgba(0,0,0,.3); backdrop-filter: blur(4px); }
.hcard-n { font-size: 16.5px; transition: color .2s; }
.hcard:hover .hcard-n { color: var(--brand-2); }
.hcard-f button.hadd { width: auto; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; gap: 0; border-radius: 12px; overflow: hidden; transition: gap .3s var(--ease), padding .3s var(--ease), background .2s; }
.hcard-f button.hadd span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 13.5px; font-weight: 700; transition: max-width .35s var(--ease); }
.hcard-f button.hadd.added span { max-width: 110px; }
.hcard-f button.hadd.added { gap: 6px; padding: 0 14px; }
/* Только для мыши: на телефоне раскрытие по наведению съедало первое касание. */
@media (hover: hover) {
  .hcard:hover .hcard-f button.hadd span { max-width: 110px; }
  .hcard:hover .hcard-f button.hadd { gap: 6px; padding: 0 14px; }
}
.hcard-f button.hadd.added { background: var(--green); }
.hcard-f button.hadd.added .ic { animation: pop .4s var(--spring); }
.flydot { position: fixed; z-index: 99; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(168,137,79,.25); pointer-events: none; transition: transform .6s cubic-bezier(.5,-0.3,.5,1), opacity .6s; font-style: normal; }

/* логотип вместо фото: цветной, не серый */
.hcard-ph img.noimg, .pthumb img.noimg { opacity: 1 !important; filter: none !important; width: 52%; border-radius: 50%; box-shadow: 0 12px 26px -16px rgba(27, 58, 43, .6); transition: transform .5s var(--spring); }
.pthumb img.noimg { width: 60%; }
.hcard:hover .hcard-ph img.noimg, .pitem:hover .pthumb img.noimg { transform: scale(1.08) rotate(-4deg) !important; }
.pitem.off .pthumb img { filter: saturate(.55) !important; opacity: .8 !important; }

/* меню: карточки и счётчик */
.pitem { border-radius: 16px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pitem:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -24px rgba(27, 58, 43, .55); }
.pthumb { overflow: hidden; }
.pthumb img { transition: transform .5s var(--ease); }
.pitem:hover .pthumb img:not(.noimg) { transform: scale(1.06); }
.pqty { transition: border-color .2s, background .2s, box-shadow .2s; }
.pqty.on { box-shadow: 0 6px 16px -10px rgba(27, 58, 43, .6); }
.pqty input.pop { animation: qpop .35s var(--spring); }
@keyframes qpop { 0% { transform: translateY(8px) scale(.7); opacity: .3; } 100% { transform: none; opacity: 1; } }
.pqty .qb:active:not(:disabled) { filter: brightness(.9); }
.pbar:not([hidden]) { animation: barup .45s var(--spring); }
@keyframes barup { from { transform: translateY(110%); } to { transform: none; } }
@media (min-width: 1040px) { .pbar:not([hidden]) { animation-name: barup2; } @keyframes barup2 { from { transform: translate(-50%, 110%); } to { transform: translateX(-50%); } } }
.pcats a { transition: background .2s, color .2s, transform .15s; }
.pcats a:active { filter: brightness(.93); }

/* подтверждение заказа */
.okdlg { width: min(460px, 94vw); text-align: left; }
.ok-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--brand); margin-bottom: 10px; animation: pop .5s var(--spring); }
.ok-ico .ic { width: 28px; height: 28px; }
.okdlg h2 { margin: 0 0 4px; }
.ok-list { list-style: none; margin: 14px 0 8px; padding: 0; border-top: 1px solid var(--line); }
.ok-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ok-list small { color: var(--muted); }
.ok-row { display: flex; justify-content: space-between; margin: 6px 0; font-size: 15px; }
.ok-row.disc { color: var(--green); }
.ok-row.tot { font-size: 18px; }
.ok-row.tot b { font-family: var(--serif); font-size: 22px; }
.ok-how { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 14px; }
.ok-btns { display: flex; gap: 10px; margin-top: 18px; }
.ok-btns .pbtn { flex: 1; }

/* ---------- как заказать ---------- */
.step { position: relative; display: flex; flex-direction: column; gap: 4px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -26px rgba(27, 58, 43, .5); }
.step.now { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.step.done i { background: var(--green); border-color: var(--green); color: #fff; }
.step.done i .ic { width: 20px; height: 20px; }
.step p { flex: 1; }
.step-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.step-ok { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--green); font-weight: 700; font-size: 14px; }
.step-ok .ic { width: 16px; height: 16px; }
.steps { position: relative; }
@media (min-width: 761px) { .step:not(:last-child)::after { content: ''; position: absolute; top: 46px; right: -18px; width: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 8px); } }

/* ---------- вопросы и ответы ---------- */
.faq details { border-radius: 14px; transition: border-color .25s, box-shadow .25s, background .25s; }
.faq details[open] { border-color: rgba(168, 137, 79, .55); box-shadow: 0 16px 30px -26px rgba(27, 58, 43, .6); }
.faq summary { display: flex; align-items: center; gap: 14px; padding-right: 0; }
.faq summary::after { display: none; }
.faq-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: #8a6c33; font-size: 13px; font-weight: 800; transition: background .25s, color .25s; }
.faq details[open] .faq-n { background: var(--brand); color: #fff; }
.faq-pm { margin-left: auto; position: relative; width: 22px; height: 22px; flex: none; }
.faq-pm::before, .faq-pm::after { content: ''; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; border-radius: 2px; background: var(--gold); transition: transform .3s var(--ease); }
.faq-pm::after { transform: rotate(90deg); }
.faq details[open]:not(.closing) .faq-pm::after { transform: rotate(0); }
.faq-a { overflow: hidden; transition: height .28s var(--ease); }
.faq details p { padding-left: 44px; }
.faq details[open]:not(.closing) .faq-a p { animation: risein .35s var(--ease); }
.faq-more { margin-top: 16px; color: var(--muted); }

/* ---------- отзывы ---------- */
.rsum { border-radius: 20px; background: linear-gradient(135deg, #fff, var(--paper)); }
.rsum-avg b { animation: pop .6s var(--spring); }
.rsum-bars i b { animation: barfill 1.1s var(--ease) both; transform-origin: left; }
.rsum-bars a:nth-child(2) i b { animation-delay: .08s; } .rsum-bars a:nth-child(3) i b { animation-delay: .16s; } .rsum-bars a:nth-child(4) i b { animation-delay: .24s; } .rsum-bars a:nth-child(5) i b { animation-delay: .32s; }
@keyframes barfill { from { transform: scaleX(0); } to { transform: none; } }
.rv { border-radius: 18px; padding: 22px 24px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; position: relative; }
.rv::before { content: '“'; position: absolute; right: 20px; top: 4px; font-family: var(--serif); font-size: 72px; line-height: 1; color: var(--gold-soft); pointer-events: none; }
.rv:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -28px rgba(27, 58, 43, .55); border-color: rgba(168, 137, 79, .4); }
.rv .ava { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.verified { color: var(--green); }
.likebtn { transition: transform .15s var(--spring), background .2s, color .2s; }
.likebtn.on .ic { animation: pop .4s var(--spring); }
.rt-card { border-radius: 18px; transition: transform .3s var(--ease), box-shadow .3s; }
.rt-card:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -26px rgba(27, 58, 43, .5); }
.rt-sum { border-radius: 18px; background: radial-gradient(circle at 30% 20%, var(--brand-2), var(--brand)); }

/* ---------- вход и регистрация ---------- */
.auth-box { animation: risein .6s var(--ease) both; border-radius: 22px; }
.auth-logo { animation: herologo .9s var(--spring) both; }
.auth-tabs { position: relative; }
.auth-tabs button { transition: background .25s, color .25s; }
#f_in, #f_reg { animation: tabin .35s var(--ease); }
@keyframes tabin { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.auth input[type=text], .auth input[type=tel], .auth input[type=password] { font-size: 17px; padding: 14px 16px; border-radius: 12px; }
.auth label { margin-top: 16px; }
.auth input:focus { box-shadow: 0 0 0 4px rgba(27, 58, 43, .1); }
.gofx { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #2a5a43, #12291e 70%); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.gofx.on { opacity: 1; pointer-events: auto; }
.gofx-c { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #e9f2ec; font-weight: 600; letter-spacing: .02em; }
.gofx-c img { width: 120px; height: 120px; border-radius: 50%; animation: gofxpulse 1.2s ease-out infinite, pop .6s var(--spring); }
.gofx.leave .gofx-c { animation: gofxout .9s var(--ease) forwards; }
@keyframes gofxpulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 70% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes gofxout { to { transform: scale(1.6); opacity: 0; } }

/* ---------- подвал ---------- */
.sfoot { position: relative; margin-top: 90px; background: linear-gradient(180deg, var(--brand) 0%, #12291e 100%); }
.sfoot-wave { position: absolute; left: 0; right: 0; top: -59px; width: 100%; height: 60px; fill: var(--brand); }
.sfoot-grid > div { animation: none; }
.sfoot a { transition: color .2s, transform .2s; }
.sfoot-grid a:hover { color: #fff; transform: translateX(3px); }
.sfoot .soc { transition: transform .25s var(--spring), background .2s; }
.sfoot .soc:hover { transform: translateY(-3px) scale(1.08); }
.sfoot-logo { animation: logobreathe 6s ease-in-out infinite; }
.sfoot-copy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.totop { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #dfe9e2; border-radius: 99px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.totop:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.totop .ic { width: 14px; height: 14px; transform: rotate(-90deg); }

/* ---------- блоки «почему мы» и кнопки связи ---------- */
.feat { transition: background .3s; }
.feat:hover { background: var(--paper); }
.feat-i { transition: transform .4s var(--spring); }
.feat:hover .feat-i { transform: rotate(-8deg) scale(1.1); }
.cbtn { transition: transform .25s var(--ease), box-shadow .25s; }
.cbtn:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 760px) {
  .hero-tag { font-size: 12px; letter-spacing: .1em; padding: 6px 12px 6px 10px; }
  .hcard-f button.hadd span { max-width: 0 !important; }
  .hcard-f button.hadd { padding: 0 12px !important; gap: 0 !important; }
}
.uinote { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 99px; background: #1f2c29; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); transition: opacity .3s, transform .3s; pointer-events: none; }
.uinote.on { opacity: 1; transform: translate(-50%, 0); }

/* ================= Калькулятор питания ================= */
.calc-head p { max-width: 640px; }
.calc-grid { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 22px; align-items: start; }
.calc-form { padding: 22px; display: flex; flex-direction: column; gap: 16px; margin: 0; }
.cf-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cf-row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.cf-l { font-weight: 700; font-size: 14.5px; }
.cf-l small { font-weight: 500; margin-left: 6px; }
.cseg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.cseg label { position: relative; cursor: pointer; }
.cseg input, .cact input { position: absolute; opacity: 0; pointer-events: none; }
.cseg span { display: block; text-align: center; padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.cseg input:checked + span { background: #fff; color: var(--brand); box-shadow: 0 2px 8px -3px rgba(27,58,43,.3); }
.cseg input:focus-visible + span, .cact input:focus-visible + span { outline: 2px solid var(--gold); }
.cf-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cf-n { position: relative; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cf-n i { font-style: normal; font-weight: 500; }
.cf-n input { width: 100%; font: inherit; font-size: 20px; font-weight: 700; color: var(--ink); padding: 10px 34px 10px 12px; border: 1.5px solid var(--field-line); border-radius: 11px; background: var(--field); transition: border-color .2s, box-shadow .2s; -moz-appearance: textfield; }
.cf-n input::-webkit-outer-spin-button, .cf-n input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cf-n input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(27,58,43,.1); }
.cf-n input::placeholder { color: #c3bfb5; font-weight: 600; }
.cf-n small { position: absolute; right: 11px; bottom: 14px; font-size: 13px; color: var(--muted); }
.cf-n.wide input { font-size: 17px; }
.cact { display: grid; gap: 6px; }
.cact label { position: relative; cursor: pointer; }
.cact span { display: flex; flex-direction: column; padding: 9px 13px 9px 40px; border: 1.5px solid var(--line); border-radius: 11px; transition: border-color .2s, background .2s; position: relative; }
.cact span::before { content: ""; box-sizing: border-box; position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--field-line); transition: border .2s; }
.cact b { font-size: 14.5px; }
.cact small { color: var(--muted); font-size: 12.5px; }
.cact input:checked + span { border-color: var(--brand); background: #f3f7f4; }
.cact input:checked + span::before { border: 5px solid var(--brand); }
.cf-more summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--brand); }
.cf-more summary i { font-style: normal; font-weight: 500; font-size: 13px; }
.cf-more[open] summary { margin-bottom: 8px; }
.cf-hint { font-size: 13px; margin: 0 0 10px; }
.cf-check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.cf-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.cf-note { font-size: 12.5px; margin: 0; text-align: center; }
.cf-go { width: 100%; }

.calc-res { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.cr-empty { text-align: center; padding: 50px 20px; }
.cr-empty .ic { width: 46px; height: 46px; color: var(--gold); display: block; margin: 0 auto 10px; }
.cr-empty b { font-size: 19px; }
.cr-warn { background: #fff8e8; border-color: #f0dca8; }
.cr-warn p { margin: 0 0 8px; }
.cr-warn p:last-of-type { margin-bottom: 0; }
.cr-warn .pbtn { margin-top: 12px; }
.cr-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cr-card { animation: crIn .45s var(--ease, ease) both; }
@keyframes crIn { from { opacity: 0; transform: translateY(10px); } }
.cr-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cr-h h3 { margin: 0; font-size: 19px; }
.cr-h .muted { font-size: 13px; }
.cr-big { font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1; color: var(--ink); display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.cr-big span { font-family: var(--sans); font-size: 14.5px; font-weight: 700; }
.cr-big.ok span, .ok-t { color: var(--green); }
.cr-big.warn span { color: #b7791f; }
.cr-big.bad span { color: var(--red); }
.cr-big.brand { color: var(--brand); }
.cr-big.brand span { color: var(--muted); font-weight: 600; }
.cr-card p { margin: 8px 0 0; }
.small { font-size: 13px; }
.cgauge { position: relative; height: 12px; border-radius: 99px; overflow: visible; background: var(--paper); margin: 6px 0 4px; }
.cgauge i { position: absolute; top: 0; bottom: 0; }
.cgauge i:first-child { border-radius: 99px 0 0 99px; }
.cgauge i:nth-child(4) { border-radius: 0 99px 99px 0; }
.cgauge .g-ok { background: #7cc39a; }
.cgauge .g-w { background: #f2cf7c; }
.cgauge .g-bad { background: #ec9a86; }
.cgauge b { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: left .5s var(--ease, ease); }
.cgauge-l { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.cr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cr-tile { font: inherit; border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: 8px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); transition: border-color .2s, background .2s; }
.cr-tile small { font-size: 12px; color: var(--muted); }
.cr-tile b { font-size: 16px; }
.cr-tile.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.cr-tile.on small { color: rgba(255,255,255,.75); }
.cr-macro { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; }
.cdonut { width: 170px; height: 170px; }
.cdonut circle { fill: none; stroke-width: 13; transition: stroke-dasharray .6s var(--ease, ease); }
.cdonut .d-p { stroke: #2f7a4f; } .cdonut .d-f { stroke: #e2a422; } .cdonut .d-c { stroke: #6c9bd2; }
.cdonut .d-n { font: 700 18px var(--serif); fill: var(--ink); }
.cdonut .d-u { font: 600 9px var(--sans); fill: var(--muted); }
.cr-mx { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mx { position: relative; padding: 10px 12px 10px 24px; border-radius: 12px; background: var(--paper); display: flex; flex-direction: column; }
.mx i { position: absolute; left: 10px; top: 14px; width: 8px; height: 8px; border-radius: 50%; }
.mx.p i { background: #2f7a4f; } .mx.f i { background: #e2a422; } .mx.c i { background: #6c9bd2; } .mx.w i { background: #49b4d6; }
.mx span { font-size: 13px; color: var(--muted); font-weight: 600; }
.mx b { font-size: 21px; }
.mx small { font-size: 12px; color: var(--muted); }
.cr-meals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.cr-meals span { text-align: center; padding: 8px 4px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); }
.cr-meals small { display: block; font-weight: 700; color: var(--ink); }
.cr-meals b { color: var(--brand); font-size: 15px; }
.cr-list { list-style: none; padding: 0; margin: 0; }
.cr-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cr-list li:last-child { border: 0; }
.tag { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--paper); }
.tag.ok { background: #e3f3e9; color: var(--green); }
.tag.warn { background: #fdf1d8; color: #9a6a12; }
.tag.bad { background: #fbe4de; color: var(--red); }
.cchart { width: 100%; height: 190px; margin-top: 10px; overflow: visible; }
.cchart .c-l { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cchart .c-a { fill: rgba(47,122,79,.1); }
.cchart .c-t { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.cchart .c-tl { fill: var(--gold); font: 700 12px var(--sans); }
.cchart .c-d { fill: #fff; stroke: var(--brand); stroke-width: 3; }
.cchart .c-d.end { fill: var(--brand); }
.cchart .c-v { font: 700 13px var(--sans); fill: var(--ink); }
.cchart text { font: 11px var(--sans); fill: var(--muted); }
.cr-plan { display: flex; flex-direction: column; gap: 8px; }
.cp-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cp-s b { display: block; }
.cp-s small { color: var(--muted); font-size: 12.5px; }
.cp-it { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-i, .cp-day { display: flex; gap: 10px; align-items: center; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, transform .2s; min-width: 0; }
.cp-i:hover, .cp-day:hover { border-color: var(--brand); transform: translateY(-1px); }
.cp-i.ai { border-color: #c9a8f0; background: #faf6ff; }
.cp-i img, .cp-ph, .cp-day img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: none; background: var(--paper); }
.cp-i b, .cp-day b { display: block; font-size: 14px; line-height: 1.25; }
.cp-i small, .cp-day small { color: var(--muted); font-size: 12.5px; }
.cp-tot { margin-top: 12px; padding: 10px 14px; background: #f3f7f4; border-radius: 12px; font-size: 14.5px; }
.cp-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cp-sub { margin: 20px 0 10px; font-size: 16px; font-family: var(--sans); }
.cp-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cp-day .tag { margin-top: 4px; }
.cr-ai { border-color: #ddd0f5; background: linear-gradient(180deg, #fbf9ff, #fff); }
.cr-tips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cr-tips li { display: flex; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid #ece6f7; border-radius: 12px; animation: crIn .4s both; }
.cr-tips li:nth-child(2) { animation-delay: .08s; } .cr-tips li:nth-child(3) { animation-delay: .16s; } .cr-tips li:nth-child(4) { animation-delay: .24s; } .cr-tips li:nth-child(5) { animation-delay: .32s; }
.cr-tips i { font-style: normal; font-size: 20px; }
.cspin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: cspin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes cspin { to { transform: rotate(360deg); } }
.cr-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.calc-how { margin-top: 26px; }
.calc-how summary { cursor: pointer; font-weight: 700; }
.calc-how ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.calc-how li { margin-bottom: 6px; }
/* Значок «доля нормы» на карточках меню */
.pnorm { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--brand); background: #eef5f0; padding: 2px 8px; border-radius: 99px; }
.calc-teaser { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r); background: linear-gradient(120deg, #f3f7f4, #fbf6ea); border: 1px solid var(--line); margin-bottom: 18px; }
.calc-teaser b { font-size: 16px; }
.calc-teaser p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-form { position: static; }
}
@media (max-width: 620px) {
  .cr-top { grid-template-columns: 1fr; }
  .cr-macro { grid-template-columns: 1fr; justify-items: center; }
  .cr-mx { width: 100%; }
  .cr-meals { grid-template-columns: repeat(2, 1fr); }
  .cp-row { grid-template-columns: 1fr; gap: 6px; }
  .cr-big { font-size: 40px; }
  .cseg span { padding: 9px 6px; font-size: 13.5px; }
}
@media print {
  .shead, .sfoot, .calc-form, .cr-acts, .cr-ai button, .cp-acts, .staffbar, .notice, .totop, .calc-how { display: none !important; }
  .calc-grid { grid-template-columns: 1fr; }
  .pcard { break-inside: avoid; }
}
.calc-home { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center; padding: 30px; border-radius: 22px; text-decoration: none; color: var(--ink); background: linear-gradient(125deg, #eef5f0 0%, #fbf6ea 100%); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.calc-home:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.calc-home h2 { margin: 0 0 8px; font-size: 32px; }
.calc-home p { color: var(--muted); margin: 0 0 18px; max-width: 520px; }
.calc-home-v { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 18px 40px -26px rgba(27,58,43,.45); }
.chv-n { font: 700 44px var(--serif); color: var(--brand); display: flex; flex-direction: column; line-height: 1; }
.chv-n small { font: 600 14px var(--sans); color: var(--muted); margin-top: 6px; }
.chv-b { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 18px 0 10px; }
.chv-b i:nth-child(1) { background: #2f7a4f; } .chv-b i:nth-child(2) { background: #e2a422; } .chv-b i:nth-child(3) { background: #6c9bd2; }
.chv-l { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
@media (max-width: 760px) { .calc-home { grid-template-columns: 1fr; padding: 22px; } .calc-home h2 { font-size: 26px; } }
.cp-none { color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.cpill { position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translate(-50%, 90px); font: inherit; font-size: 14.5px; color: #fff; background: var(--brand); border: 0; border-radius: 99px; padding: 12px 20px; box-shadow: 0 14px 30px -12px rgba(27,58,43,.6); transition: transform .35s var(--ease, ease); white-space: nowrap; cursor: pointer; }
.cpill.on { transform: translate(-50%, 0); }
@media (min-width: 960px) { .cpill { display: none; } }
@media print { .cpill { display: none; } }

/* ===== Восстановление пароля и безопасность в кабинете покупателя ===== */
.fg-h { font-size: 24px; text-align: center; margin: 4px 0 12px; }
.fg-steps { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; }
.fg-steps li { counter-increment: s; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fg-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-weight: 700; }
.fg-steps li.on { color: var(--brand); font-weight: 700; }
.fg-steps li.on::before { background: var(--brand); color: #fff; }
.fg-steps li + li { padding-left: 6px; border-left: 1px solid var(--line); }
.fg-code { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-weight: 700; }
.fg-done { width: 70px; height: 70px; margin: 6px auto 18px; border-radius: 50%; background: #e3f3e9; color: var(--green); display: grid; place-items: center; font-size: 34px; font-weight: 700; animation: crIn .5s both; }
.acc-safe-h { margin-top: 30px; }
.sec { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.sec-card h2 { font-size: 19px; margin: 0 0 6px; }
.sec-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.sec-form input:not([type=checkbox]), .sec-inline input { font: inherit; padding: 10px 12px; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--field); width: 100%; }
.sec-form .pbtn { margin-top: 12px; }
.sec-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.sec-inline input { flex: 1 1 160px; width: auto; }
.sec-q { flex-basis: 100%; font-weight: 600; }
.sec-have { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: #f3f7f4; border-radius: 12px; margin: 10px 0; }
.sec-have b { display: block; word-break: break-all; }
.sec-have small { color: var(--muted); font-size: 12.5px; }
.sec-ok { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.sec-more summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-top: 6px; }
.sec-way { padding: 12px; border: 1px dashed var(--line); border-radius: 12px; margin-top: 10px; }
.sec-way > b { display: block; font-size: 14px; margin-bottom: 6px; }
.sec-way form + form { margin-top: 6px; }
.sec-warn { background: #fff8e8; border: 1px solid #f0dca8; padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.sec-okline { color: var(--green); font-weight: 600; }
.sec-link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13.5px; margin-top: 8px; }
.sec-check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 600; cursor: pointer; }
.sec-check input { width: 20px; height: 20px; accent-color: var(--brand); }
