/* BrewDay — стили приложения */
:root {
  --bg: #faf6ef; --paper: #fff; --soft: #f4ece0; --line: #efe5d7; --line2: #e2d4c0;
  --ink: #1f1712; --muted: #7a6a5c; --stout: #1f1510; --stout2: #2e2018;
  --amber: #e39b2d; --amber-d: #b8641a; --amber-l: #fcefd9; --hop: #6d8a3a; --hop-l: #eaf0dc; --red: #b8402a;
  --r: 18px; --sh: 0 1px 2px rgba(31, 21, 16, .04), 0 8px 24px rgba(31, 21, 16, .06);
  --sh2: 0 2px 4px rgba(31, 21, 16, .05), 0 18px 40px rgba(31, 21, 16, .10);
  --font: 'Manrope', system-ui, -apple-system, sans-serif; --head: var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--amber-d); }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 .45em; }
h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sub { color: var(--muted); font-size: 18px; max-width: 680px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 239, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(226, 212, 192, .6); }
.top-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 23px/1 var(--font); letter-spacing: -.04em; }
.logo svg { flex: none; width: 38px; height: 38px; transition: transform .4s; }
.logo:hover svg { transform: rotate(-20deg); }
.logo b { color: var(--amber-d); font-weight: 800; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 15px; opacity: .78; }
.nav a:hover { background: var(--soft); opacity: 1; }
.nav a.on { background: var(--ink); color: #fff; opacity: 1; }
.nav a[href="/vhod/"] { border: 1.5px solid var(--line2); margin-left: 8px; opacity: 1; }
.top-acc { display: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line2); background: #fff; color: var(--ink); align-items: center; justify-content: center; margin-left: auto; }
.top-acc svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.top-acc.in { background: var(--ink); border-color: var(--ink); color: #fff; }
.top-acc .cloud-dot[hidden] { display: none; }
.top-acc .cloud-dot { position: absolute; right: -1px; top: -1px; width: 11px; height: 11px; margin: 0; border: 2px solid var(--bg); }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger i { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 960px) {
  .burger { display: block; margin-left: 4px; }
  .top-acc { display: flex; }
  .nav { display: none; position: absolute; left: 12px; right: 12px; top: 72px; background: #fff; flex-direction: column; padding: 10px; border-radius: 20px; box-shadow: var(--sh2); }
  .nav a { padding: 12px 14px; }
  .nav a[href="/vhod/"] { margin: 6px 0 0; text-align: center; }
  body.menu .nav { display: flex; }
}

/* нижняя панель приложения (телефон) */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; border-radius: 12px; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--amber-d); }
  .tabbar a.on svg { stroke-width: 2.2; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}

/* подвал */
.foot { background: var(--stout); color: #cdbba0; margin-top: 96px; padding: 56px 0 28px; font-size: 14px; border-radius: 32px 32px 0 0; }
.foot .logo { color: #fff; }
.foot .logo b { color: var(--amber); }
.foot-in { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.foot p { max-width: 320px; margin-top: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols b { display: block; color: #fff; margin-bottom: 8px; }
.foot-cols a { display: block; color: #cdbba0; text-decoration: none; padding: 3px 0; }
.foot-cols a:hover { color: var(--amber); }
.foot-copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--stout2); color: #8f7b62; }
.logo-sm { font-size: 20px; }
.logo-sm svg { width: 32px; height: 32px; }
@media (max-width: 760px) { .foot-in, .foot-cols { grid-template-columns: 1fr; } .foot { margin-top: 64px; } }

/* кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1.5px solid var(--line2); background: #fff; color: var(--ink);
  border-radius: 999px; font: 700 15px var(--font); letter-spacing: -.01em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-main:hover { background: #3a2a1f; border-color: #3a2a1f; box-shadow: 0 8px 20px rgba(31, 21, 16, .22); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--stout); }
.btn-dark { background: var(--stout); border-color: var(--stout); color: #fff; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--red); border-color: transparent; }
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--line2); border-radius: 12px; padding: 9px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(227, 155, 45, .25); outline-offset: 0; border-color: var(--amber); }
label.f { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
label.f > input, label.f > select, label.f > textarea { margin-top: 5px; font-size: 16px; color: var(--ink); font-weight: 500; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--sh); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--hop-l); color: #46601d; }

/* главная: первый экран */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 24px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--amber-d); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.free-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 5px 14px 5px 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--sh); }
.free-pill b { background: var(--amber); color: var(--stout); border-radius: 999px; padding: 3px 11px; font-weight: 800; }
.free-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }
.free-list li { position: relative; padding-left: 30px; font-weight: 600; }
.free-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--hop-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%236d8a3a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero .btns, .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-text { min-width: 0; }

/* айфон */
.hero-phone { position: relative; justify-self: center; width: 300px; height: 646px; border-radius: 56px; padding: 4px; flex: none;
  background: linear-gradient(135deg, #5a4636 0%, #1c1410 38%, #3b2e24 70%, #120c09 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 0 0 2.5px rgba(0, 0, 0, .35), 0 40px 90px rgba(60, 35, 15, .32), 0 12px 30px rgba(60, 35, 15, .18); }
.hero-phone::before { content: ''; position: absolute; inset: 4px; border-radius: 52px; background: #050304; }
.ph-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a1f18, #5a4636); }
.ph-action { left: -3px; top: 118px; height: 30px; } .ph-vol1 { left: -3px; top: 168px; height: 52px; } .ph-vol2 { left: -3px; top: 232px; height: 52px; }
.ph-power { right: -3px; top: 190px; height: 86px; background: linear-gradient(270deg, #2a1f18, #5a4636); }
.ph-screen { position: absolute; inset: 9px; border-radius: 47px; overflow: hidden; display: flex; flex-direction: column; background: #17100c; color: #f7ecd6; }
.ph-status { position: relative; height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 34px; font: 600 15px/1 -apple-system, system-ui, sans-serif; }
.ph-island { position: absolute; left: 50%; top: 10px; width: 92px; height: 28px; margin-left: -46px; border-radius: 20px; background: #000; }
.ph-icons { display: flex; align-items: center; gap: 6px; } .ph-icons svg { fill: #f7ecd6; }
.ph-bat { width: 24px; height: 12px; border: 1.3px solid rgba(247, 236, 214, .55); border-radius: 4px; padding: 1.5px; position: relative; }
.ph-bat::after { content: ''; position: absolute; right: -3.5px; top: 3.5px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(247, 236, 214, .55); }
.ph-bat i { display: block; height: 100%; width: 78%; background: #f7ecd6; border-radius: 2px; }
.ph-home { position: absolute; left: 50%; bottom: 7px; width: 120px; height: 4.5px; margin-left: -60px; border-radius: 3px; background: rgba(247, 236, 214, .85); }
.pa { flex: 1; padding: 4px 18px 0; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pa-head small { display: block; font-size: 11px; color: #a8957a; font-weight: 600; }
.pa-head b { font-size: 19px; letter-spacing: -.03em; }
.pa-ring { position: relative; width: 168px; height: 168px; margin: 2px auto 0; }
.pa-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pa-ring circle { fill: none; stroke-width: 9; }
.pa-ring .r0 { stroke: #33241a; }
.pa-ring .r1 { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 30; transition: stroke-dashoffset .9s linear; }
.pa-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pa-ring small { font-size: 11px; color: #a8957a; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pa-ring b { font-size: 38px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pa-ring span { font-size: 11px; color: #a8957a; }
.pa-next { display: flex; gap: 10px; align-items: center; background: var(--amber); color: var(--stout); border-radius: 16px; padding: 9px 12px; }
.pa-next i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .35); display: grid; place-items: center; font-size: 16px; }
.pa-next small { display: block; font-size: 11px; font-weight: 700; opacity: .75; }
.pa-next b { font-size: 14px; letter-spacing: -.01em; }
.pa-steps { list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 600; }
.pa-steps li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid #2a1d15; color: #f7ecd6; }
.pa-steps li::before { content: ''; position: absolute; left: 0; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #5a4636; }
.pa-steps li.ok { color: #8f7b62; } .pa-steps li.ok::before { background: var(--hop); border-color: var(--hop); }
.pa-steps li.cur::before { border-color: var(--amber); box-shadow: inset 0 0 0 2.5px #17100c; background: var(--amber); }
.pa-steps span { font-weight: 500; color: #8f7b62; font-size: 12px; }
.pa-chips { display: flex; gap: 6px; }
.pa-chips span { flex: 1; text-align: center; background: #241811; border-radius: 10px; padding: 6px 0; font-size: 11px; color: #a8957a; }
.pa-chips b { color: #fff; font-size: 13px; }
.pa-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 8px 24px; border-top: 1px solid #2a1d15; font-size: 10px; font-weight: 700; color: #7d6a55; text-align: center; }
.pa-tabs span::before { content: ''; display: block; width: 20px; height: 20px; margin: 0 auto 3px; border-radius: 7px; background: #33241a; }
.pa-tabs .on { color: var(--amber); } .pa-tabs .on::before { background: var(--amber); }
.hero-badge { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--sh2); white-space: nowrap; animation: bdfloat 5s ease-in-out infinite; }
.hero-badge i { font-style: normal; width: 34px; height: 34px; border-radius: 11px; background: var(--amber-l); display: grid; place-items: center; font-size: 17px; }
.hero-badge i.ok { background: var(--hop-l); color: var(--hop); font-weight: 800; }
.hero-badge strong { display: block; font-size: 14px; letter-spacing: -.01em; }
.hero-badge small { display: block; font-size: 12px; color: var(--muted); }
.hero-badge.b1 { left: -96px; top: 110px; }
.hero-badge.b2 { right: -74px; bottom: 150px; animation-delay: -2.5s; }
@keyframes bdfloat { 50% { transform: translateY(-8px); } }
@media (max-width: 1100px) { .hero-badge.b1 { left: -60px; } .hero-badge.b2 { right: -30px; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .hero-badge { display: none; }
}
@media (max-width: 380px) { .hero-phone { transform: scale(.9); margin: -32px 0; } }

/* главная: блоки */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.facts > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--sh); }
.facts b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: var(--amber-d); }
.facts span { font-size: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } .facts b { font-size: 28px; } }
.section { padding: 88px 0 0; }
.section > h2 { margin-bottom: 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .section { padding-top: 64px; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.feature .ic { width: 50px; height: 50px; border-radius: 16px; background: var(--amber-l); color: var(--amber-d); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.feature.big { background: var(--stout); border-color: var(--stout); color: #f7ecd6; }
.feature.big .ic { background: var(--amber); color: var(--stout); }
.feature.big p { color: #cdbba0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: var(--sh2); }
.hero-card h3 { margin-bottom: 4px; }
.calc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.calc-list a { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--sh); transition: transform .15s, box-shadow .15s; }
.calc-list a:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.calc-list i { grid-row: span 2; font-style: normal; width: 52px; height: 52px; border-radius: 15px; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--amber-d); letter-spacing: -.02em; }
.calc-list b { display: block; font-size: 17px; letter-spacing: -.02em; }
.calc-list span { color: var(--muted); font-size: 14px; line-height: 1.35; }
@media (max-width: 900px) { .calc-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .calc-list { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--sh); display: flex; flex-direction: column; }
.plan.hot { background: var(--stout); color: #f7ecd6; border-color: var(--stout); box-shadow: 0 24px 50px rgba(31, 21, 16, .25); }
.plan h3 { font-size: 17px; color: var(--muted); margin: 0; }
.plan.hot h3 { color: #cdbba0; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.04em; margin: 4px 0 16px; }
.plan.hot .price { color: var(--amber); }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; }
.plan li { margin: 8px 0; padding-left: 24px; position: relative; font-size: 15px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--hop); font-weight: 800; }
.plan.hot li::before { color: var(--amber); }
.plan .btn { margin-top: auto; }
.plan.hot .btn-main { background: var(--amber); border-color: var(--amber); color: var(--stout); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* страница */
.page-head { padding: 44px 0 24px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); }
.page-head p { color: var(--muted); max-width: 720px; font-size: 18px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--amber-d); }
.article { max-width: 760px; margin-top: 48px; }
.article h2 { font-size: 26px; margin-top: 1.4em; }

/* конструктор */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .builder { grid-template-columns: 1fr; } .stats { position: static !important; order: -1; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.toolbar .sp { flex: 1; }
.saved { font-size: 13px; color: var(--muted); }
.box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 16px; box-shadow: var(--sh); }
.box-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.box-h h2 { font-size: 21px; margin: 0; }
.box-h .sum { font-size: 14px; color: var(--muted); font-weight: 600; }
.rows { width: 100%; border-collapse: collapse; }
.rows th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 6px 6px; }
.rows td { padding: 4px 6px; vertical-align: middle; }
.rows td.pct { font-size: 14px; color: var(--muted); white-space: nowrap; text-align: right; }
.rows input, .rows select { padding: 7px 9px; font-size: 15px; border-radius: 10px; }
.rows .w-num { width: 76px; } .rows .w-sm { width: 64px; } .rows .w-use { width: 136px; }
.rows td:first-child { min-width: 150px; } .rows td:first-child input { width: 100%; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 5px; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .12); }
.empty { color: var(--muted); font-size: 15px; padding: 6px 0 10px; }
@media (max-width: 700px) {
  .rows thead { display: none; }
  .rows tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--line2); }
  .rows td { padding: 0; } .rows td:first-child { grid-column: 1 / -1; min-width: 0; }
  .rows .w-num, .rows .w-sm, .rows .w-use { width: 100%; }
}
.stats { position: sticky; top: 84px; }
.stats-card { background: var(--stout); color: #f7ecd6; border-radius: 26px; padding: 24px; box-shadow: 0 24px 50px rgba(31, 21, 16, .22); }
.stats-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.glass { width: 74px; flex: none; }
.stats-top .nm { font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.stats-top .st { font-size: 13px; color: #bda88a; margin-top: 4px; }
.meter { margin: 12px 0; }
.meter-h { display: flex; justify-content: space-between; font-size: 13px; color: #cdbba0; }
.meter-h b { color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 8px; background: #3a2a1f; border-radius: 99px; margin-top: 6px; }
.bar .rng { position: absolute; top: 0; bottom: 0; background: #50633a; border-radius: 99px; }
.bar .dot { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--amber); transform: translateX(-2px); box-shadow: 0 0 0 2px var(--stout); }
.bar .dot.out { background: #e06a4f; }
.meter-r { font-size: 11px; color: #8f7b62; margin-top: 3px; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13px; color: #cdbba0; margin-top: 16px; padding-top: 14px; border-top: 1px solid #3a2a1f; }
.mini b { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.stats-card .btn { background: #3a2a1f; border-color: #3a2a1f; color: #fff; }
.stats-card .btn-main { background: var(--amber); border-color: var(--amber); color: var(--stout); }

/* модальные окна */
.modal { position: fixed; inset: 0; background: rgba(20, 12, 8, .45); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal.open { display: flex; }
.modal-in { background: #fff; border-radius: 26px; padding: 28px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; box-shadow: var(--sh2); }
.modal-in h3 { margin-bottom: 14px; font-size: 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.ver { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* калькуляторы */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } }
.result { background: var(--stout); color: #f7ecd6; border-radius: 26px; padding: 26px; box-shadow: 0 24px 50px rgba(31, 21, 16, .22); }
.result .big { font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: var(--amber); margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.result .lines { display: grid; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #3a2a1f; font-size: 15px; }
.result .lines div { display: flex; justify-content: space-between; gap: 10px; }
.result .lines b { color: #fff; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 14px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: 700 14px var(--font); color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(31, 21, 16, .12); }

/* таблицы справочника */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { font-size: 12px; font-weight: 700; color: var(--muted); background: #fcf9f4; position: sticky; top: 0; }
.tbl tbody tr:hover td { background: #fdfaf5; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.name { white-space: normal; font-weight: 700; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input { max-width: 340px; border-radius: 999px; padding: 11px 18px; }

/* рецепты */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; }
.rcard:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.rcard-top { display: flex; gap: 14px; align-items: center; }
.rcard-top .glass { width: 46px; }
.rcard h3 { font-size: 18px; margin: 0; }
.rcard .st { font-size: 13px; color: var(--muted); }
.rcard .nums { display: flex; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.rcard .nums > * { background: var(--soft); border-radius: 10px; padding: 5px 9px; }
.rcard .nums b { color: var(--ink); font-size: 14px; display: block; }
.rcard p { font-size: 14px; color: var(--muted); margin: 0; }
.rcard .acts { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }

/* день варки */
.brew { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .brew { grid-template-columns: 1fr; } .timer { position: static !important; order: -1; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 16px 18px 16px 62px; margin-bottom: 10px; position: relative; counter-increment: s; cursor: pointer; box-shadow: var(--sh); }
.step::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--muted); }
.step.done { opacity: .55; }
.step.done::before { content: '✓'; background: var(--hop); color: #fff; }
.step.cur { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(227, 155, 45, .18); }
.step.cur::before { background: var(--amber); color: var(--stout); }
.step b { display: block; font-size: 17px; letter-spacing: -.01em; }
.step span { color: var(--muted); font-size: 15px; }
.step .tm { float: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--amber-d); }
.timer { background: var(--stout); color: #f7ecd6; border-radius: 26px; padding: 24px; position: sticky; top: 84px; box-shadow: 0 24px 50px rgba(31, 21, 16, .22); }
.timer .clock { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--amber); margin: 8px 0 4px; }
.timer .next { font-size: 15px; color: #cdbba0; min-height: 44px; }
.timer .btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.timer .btn { background: #3a2a1f; color: #fff; border-color: #3a2a1f; }
.timer .btn-main { background: var(--amber); color: var(--stout); border-color: var(--amber); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(160%); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 999px; z-index: 200; transition: transform .25s; font-weight: 600; max-width: 90vw; box-shadow: var(--sh2); }
.toast.show { transform: translateX(-50%) translateY(0); }
@media print {
  .top, .foot, .toolbar, .btn, .tabbar { display: none !important; }
  body { background: #fff; padding: 0; } .box, .stats-card { border: 1px solid #ccc; box-shadow: none; }
  .stats-card { background: #fff; color: #000; }
}

/* адаптив: доп. правила */
.g-carb { grid-template-columns: 200px 1fr; }
@media (max-width: 700px) { .g2, .g-carb { grid-template-columns: 1fr; } }

/* облако и аккаунт */
.cloud-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8fb45a; margin-left: 5px; vertical-align: 2px; }
.cloud-dot.sync { background: #d9a441; animation: bdpulse 1s infinite alternate; }
.cloud-dot.err { background: #c0583b; }
@keyframes bdpulse { to { opacity: .35; } }
.narrow { max-width: 720px; }
.auth h2 { margin: 0 0 6px; font-size: 26px; }
.auth .f { margin: 16px 0; }
.auth form, .a-name { margin: 0; }
.a-name { display: flex; gap: 10px; align-items: flex-end; margin-top: 18px; }
.a-name .f { flex: 1; margin: 0; }
.a-err { color: #a8432a; background: #fbe8e0; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.a-dbg { background: var(--amber-l); border-radius: 12px; padding: 10px 14px; }
.a-stats { margin-top: 16px; gap: 10px; }
.a-stats > div { background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.a-stats span { display: block; font-size: 12px; color: var(--muted); }
.a-stats b { font-size: 18px; }
.a-danger { color: #a8432a; }
.auth hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0 16px; }
.btn.is-busy { opacity: .6; pointer-events: none; }
#a-code { display: block; margin-top: 6px; font-size: 26px; letter-spacing: .3em; max-width: 240px; font-weight: 700; }
@media (max-width: 700px) { .a-name { flex-direction: column; align-items: stretch; } }
.free-pill b { white-space: nowrap; }
@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; }
  .hero .btns .btn { flex: 1 1 140px; padding: 0 16px; }
  .free-pill { font-size: 13px; }
}
@media (max-width: 700px) {
  .toolbar { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 18px; padding: 2px 20px 6px; scrollbar-width: none; }
  .toolbar::-webkit-scrollbar { display: none; }
  .toolbar .btn { flex: none; }
  .toolbar .sp, .toolbar .saved { display: none; }
  .toolbar #t-brew { order: -1; }
}
.foot-copy { display: flex; align-items: center; gap: 14px; }
.age { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--amber); color: var(--amber); font: 800 14px/1 var(--font); letter-spacing: -.03em; }
.hero h1 .free { color: var(--hop); }

/* выпадающие списки: своя стрелка с отступом от края */
select { -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237a6a5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; }
.rows select { padding-right: 28px; background-position: right 9px center; background-size: 10px 7px; }

/* подсказки при вводе */
.sg { position: fixed; z-index: 150; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh2); padding: 6px; max-height: 300px; overflow: auto; overscroll-behavior: contain; }
.sg[hidden] { display: none; }
.sg button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 9px 12px; font: 600 15px/1.3 var(--font); color: var(--ink); cursor: pointer; }
.sg button small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.sg button:hover, .sg button.on { background: var(--soft); }

/* галочка «в общую базу» */
.chk { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; background: var(--soft); border-radius: 16px; cursor: pointer; }
.chk input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--hop); cursor: pointer; }
.chk span { display: flex; flex-direction: column; gap: 3px; }
.chk small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.lib-h { margin: 40px 0 6px; font-size: 26px; letter-spacing: -.02em; }
.rc-author { font-size: 13px; margin-left: auto; align-self: center; }
.rows tr.fixed input:disabled { background: var(--soft); color: var(--muted); border-color: transparent; }
/* прочее и вода */
.rows .w-unit { width: 74px; }
.ions-wrap { overflow-x: auto; margin: 16px -4px 0; }
.ions { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 470px; }
.ions th { font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; }
.ions tbody th { text-align: left; white-space: nowrap; padding-right: 4px; }
.ions input { width: 100%; padding: 7px 6px; font-size: 15px; border-radius: 10px; text-align: center; }
.ions .res td { text-align: center; font-weight: 800; font-size: 16px; border-radius: 10px; padding: 7px 4px; background: var(--soft); }
.ions .res td.ok { background: var(--hop-l); color: var(--hop); }
.ions .res td.off { background: var(--amber-l); color: var(--amber-d); }
.w-h { font-size: 17px; margin: 20px 0 10px; }
.w-h small { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.salts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.salt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line2); }
.salt b { display: block; font-size: 15px; }
.salt small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.salt .u { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); flex: none; }
.salt input { width: 78px; padding: 7px 9px; font-size: 15px; border-radius: 10px; text-align: right; }
.w-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.w-grid > div { background: var(--soft); border-radius: 14px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.w-grid b { display: block; font-size: 20px; color: var(--ink); margin: 2px 0; }
.w-grid b.ok { color: var(--hop); } .w-grid b.off { color: var(--red); }
.w-grid small { display: block; font-size: 12px; }
.w-line { display: flex; gap: 12px; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.w-line span { color: var(--muted); flex: none; } .w-line b { text-align: right; font-weight: 700; }
.w-warn { margin: 12px 0 0; padding-left: 18px; font-size: 14px; color: var(--amber-d); }
.w-note { font-size: 13px; margin: 12px 0 0; }
@media (max-width: 700px) {
  .salts { grid-template-columns: 1fr; }
  .w-grid { grid-template-columns: 1fr 1fr; } .w-grid > div:last-child { grid-column: 1 / -1; }
  .rows .w-unit { width: 100%; }
  .rows tr.fixed td:last-child { display: none; }
}
@media (max-width: 700px) { .rows td { display: flex; align-items: center; gap: 6px; } .rows td > input, .rows td > select { flex: 1; min-width: 0; } }
.w-sum { cursor: pointer; list-style: none; margin-bottom: 0; }
.w-sum::-webkit-details-marker { display: none; }
.w-sum h2::after { content: ''; display: inline-block; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 0 0 4px 12px; transition: transform .2s; }
#w-det[open] .w-sum { margin-bottom: 12px; }
#w-det[open] .w-sum h2::after { transform: rotate(-135deg); margin-bottom: -2px; }
/* плашка параметров при прокрутке */
.live { position: fixed; left: 0; right: 0; z-index: 45; display: flex; align-items: center; gap: 4px; padding: 7px 14px; background: var(--stout); color: #f7ecd6;
  box-shadow: 0 8px 20px rgba(31, 21, 16, .2); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
.live.show { transform: none; opacity: 1; pointer-events: auto; }
.live-c { width: 14px; height: 30px; border-radius: 4px 4px 6px 6px; flex: none; margin-right: 6px; box-shadow: inset 0 3px 0 #fbf3df; }
.live > div { flex: 1; min-width: 0; text-align: center; border-radius: 8px; padding: 1px 0; transition: background .6s; }
.live small { display: block; font-size: 10px; color: #bda88a; line-height: 1.2; }
.live b { display: block; font-size: 15px; line-height: 1.3; white-space: nowrap; }
.live .out b { color: #f0896f; }
.live .ch { animation: livech 1.2s ease-out; }
@keyframes livech { 0% { background: rgba(227, 155, 45, .55); } 100% { background: transparent; } }
@media (min-width: 1001px) { .live { display: none; } }

/* статьи */
.post { max-width: 760px; font-size: 17px; line-height: 1.7; }
.post h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.6em; }
.post h3 { margin-top: 1.4em; }
.post ul, .post ol { padding-left: 1.3em; margin: 0 0 1em; }
.post li { margin-bottom: .35em; }
.post-tbl { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); margin: 0 0 1.2em; }
.post-tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.post-tbl th, .post-tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-tbl th { font-size: 12px; font-weight: 700; color: var(--muted); background: #fcf9f4; }
.post-tbl tr:last-child td { border-bottom: 0; }
.post-note { background: var(--amber-l); border-radius: 16px; padding: 14px 18px; margin: 0 0 1.2em; font-size: 16px; }
.post-src { margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--line2); font-size: 14px; color: var(--muted); }
.post-src ul { padding-left: 1.2em; margin: .4em 0 0; }
.post-rel { margin: 56px 0 24px; }
.post-rel h2, .post-group h2 { font-size: 26px; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.post-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.post-card b { font-size: 17px; line-height: 1.3; }
.post-card span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.post-group { margin: 36px 0; scroll-margin-top: 80px; }
.post-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.post-toc a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.post-toc a:hover { border-color: var(--amber); }

/* ---------- рецепт по фото ---------- */
.modal-in.ocr-in { max-width: 640px; }
.ocr-lead { font-size: 14px; margin: -4px 0 14px; line-height: 1.5; }
.ocr-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ocr-btns .btn { cursor: pointer; }
.ocr-prog { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.ocr-bar { height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; margin-bottom: 6px; }
.ocr-bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .3s; }
.ocr-in textarea { width: 100%; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; min-height: 160px; }
.ocr-found { margin-top: 12px; }
.ocr-sum { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 10px; }
.ocr-sum b { font-size: 16px; }
.ocr-sum span { font-size: 13px; color: var(--muted); }
.ocr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ocr-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--soft); }
.ocr-chip i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.ocr-chip.hop { background: var(--hop-l); }
.ocr-chip.yeast { background: var(--amber-l); }
.ocr-note { font-size: 12.5px; margin-top: 10px; }
@media (max-width: 560px) { .modal-in.ocr-in { padding: 20px 16px; } .ocr-btns .btn { flex: 1; justify-content: center; } }

/* подсказка стиля в конструкторе */
.st-hint { margin: 4px 0 14px; padding: 14px; background: var(--hop-l); color: var(--ink); border-radius: 14px; display: grid; gap: 8px; }
.st-hint b { font-size: 14px; color: var(--hop); }
.st-hint span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.st-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.st-pick:hover { border-color: var(--hop); }
.st-pick small { flex: none; font-size: 12px; color: var(--hop); font-weight: 700; }

/* подтверждение возраста 18+ */
html.ag-lock, html.ag-lock body { overflow: hidden; }
.ag { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(31, 21, 16, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ag-box { position: relative; width: 100%; max-width: 440px; background: var(--bg, #faf6ef); border-radius: 22px; padding: 36px 32px 28px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ag-box img { display: block; margin: 0 auto 14px; }
.ag-n { position: absolute; top: 18px; right: 18px; font-size: 13px; font-weight: 800; padding: 4px 9px; border: 1.5px solid var(--ink); border-radius: 8px; }
.ag-box h2 { font-size: 26px; margin-bottom: 10px; }
.ag-box p { color: var(--muted); margin: 0 0 22px; }
.ag-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ag-btns .btn { flex: 1 1 160px; }
.ag-box small { display: block; margin-top: 18px; font-size: 12px; color: var(--muted); }
html.ag-lock body::before { content: ""; position: fixed; inset: 0; z-index: 9998; background: rgba(31, 21, 16, .72); }

/* партии */
.b-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.b-status .seg { margin: 0; }
.due { display: inline-block; background: #fbe3dc; color: var(--red); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 99px; }
.b-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; margin: 18px 0 60px; }
.b-main, .b-side { display: grid; gap: 20px; }
.b-nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.b-nums > div { background: var(--soft); border-radius: 14px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.b-nums b { display: block; color: var(--ink); font-size: 19px; }
.b-nums small { display: block; font-size: 11.5px; }
.b-add { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr auto; gap: 10px; align-items: end; margin: 16px 0; }
.b-chart .chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: var(--line); }
.chart .ax { font: 600 11px var(--font); fill: var(--muted); }
.chart .lg { fill: none; stroke: var(--amber-d); stroke-width: 2.5; stroke-linejoin: round; }
.chart .lt { fill: none; stroke: var(--hop); stroke-width: 1.8; stroke-dasharray: 5 4; }
.chart .dg { fill: #fff; stroke: var(--amber-d); stroke-width: 2; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.legend span::before { content: ''; display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--amber-d); }
.legend .k2::before { background: repeating-linear-gradient(90deg, var(--hop) 0 5px, transparent 5px 9px); }
.stars { display: flex; gap: 4px; }
.stars button { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--line2); cursor: pointer; padding: 0 2px; }
.stars button.on { color: var(--amber); }
.b-row { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.b-row span { color: var(--muted); } .b-row small { grid-column: 2; text-align: right; color: var(--muted); font-size: 12px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos figure button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(31, 21, 16, .7); color: #fff; cursor: pointer; }
.ph-add { aspect-ratio: 1; border: 1.5px dashed var(--line2); border-radius: 12px; background: none; font: 700 22px var(--font); color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ph-add span { font-size: 11.5px; }
.bcard .bno { font-size: 13px; font-weight: 800; color: var(--amber-d); }
.bcard .pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--ink); }
.bcard .pill.ferment { background: var(--amber-l); color: var(--amber-d); }
.bcard .pill.condition { background: #e7eef7; color: #2f5880; }
.bcard .pill.done { background: var(--hop-l); color: #46601d; }
.bcard .pill.plan, .bcard .pill.archive { background: var(--soft); color: var(--muted); }
.bcard .rate { color: var(--amber); letter-spacing: 1px; font-size: 14px; }
.b-filter { margin: 0 0 16px; }
@media (max-width: 900px) {
  .b-grid { grid-template-columns: 1fr; }
  .b-nums { grid-template-columns: repeat(3, 1fr); }
  .b-add { grid-template-columns: 1fr 1fr; }
  .b-add .btn { grid-column: 1 / -1; }
}
