:root {
  --bg: #faf8f4;
  --card: #ffffff;
  --tile: #f3eee5;
  --ink: #1b1813;
  --muted: #77706a;
  --line: rgba(27, 24, 19, .09);
  --honey: #c8862a;
  --honey-lt: #f3c77d;
  --dark: #17130d;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
em { font-style: italic; color: var(--honey); }
p { margin: 0; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--honey); margin-bottom: 8px; }
.muted { color: var(--muted); max-width: 46ch; }
section { padding-block: clamp(48px, 6vw, 80px); }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }

/* BUTTONS */
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 0; background: var(--ink); color: #fff; text-decoration: none; font-size: .88rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s; }
.btn:hover { transform: translateY(-2px); background: var(--honey); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--honey-lt), #d8902c); color: var(--ink); }
.btn-gold:hover { background: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* NAV: floating glass capsule */
.nav { position: fixed; top: 14px; left: 50%; z-index: 50; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; color: #fff; border-radius: 0; background: rgba(23, 19, 13, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 10px 40px rgba(0, 0, 0, .15); transform: translate(-50%, -140%); transition: transform 1s var(--ease), background .5s; }
.loaded .nav { transform: translate(-50%, 0); transition-delay: .2s, 0s; }
.nav.solid { background: rgba(23, 19, 13, .9); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: 14px; }
.logo { width: 26px; height: 26px; transition: transform 1s var(--ease); }
.brand:hover .logo { transform: rotate(120deg); }
.wordmark { font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
.wordmark i { color: var(--honey-lt); margin-left: .28em; }
.nav nav { position: relative; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.nav ul a { display: block; padding: 8px 14px; font-size: .82rem; font-weight: 500; color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .3s; }
.nav ul a:hover, .nav ul .on { color: #fff; }
.glide { position: absolute; top: 0; left: 0; height: 100%; border-radius: 0; background: rgba(255, 255, 255, .12); opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; }
.lang { display: flex; padding: 3px; border-radius: 0; background: rgba(255, 255, 255, .08); margin: 0 4px; }
.lang button { border: 0; background: none; color: rgba(255, 255, 255, .55); font-size: .68rem; font-weight: 600; padding: 6px 9px; border-radius: 0; cursor: pointer; transition: background .3s, color .3s; }
.lang [aria-pressed="true"] { background: #fff; color: var(--ink); }
.order-btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 0; background: linear-gradient(135deg, var(--honey-lt), #d8902c); color: var(--ink); font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .4s var(--ease); }
.order-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s var(--ease) 2s infinite; }
@keyframes shine { 0%, 65% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.order-btn svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.order-btn:hover { transform: scale(1.04); }
.order-btn:hover svg { transform: translateX(3px); }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; position: relative; margin-left: 4px; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .5s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 22px; }
.nav.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* HERO: compact split */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: 112px; padding-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 0; background: var(--card); border: 1px solid var(--line); font-size: .75rem; font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #5a9a4a; box-shadow: 0 0 0 0 rgba(90, 154, 74, .5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(90, 154, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(90, 154, 74, 0); } }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 300; }
.split-lines > span { display: block; overflow: hidden; padding-bottom: .05em; }
.split-lines > span > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.loaded .split-lines > span > span { transform: none; }
.loaded .split-lines > span:nth-child(2) > span { transition-delay: .1s; }
.loaded .split-lines > span:nth-child(3) > span { transition-delay: .2s; }
.lede { color: var(--muted); max-width: 42ch; margin: 18px 0 26px; font-size: 1rem; }
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) .45s, transform 1s var(--ease) .45s; }
.loaded .fade-in { opacity: 1; transform: none; }
.hero-art { position: relative; }
.hero-img { margin: 0; border-radius: 0; overflow: hidden; aspect-ratio: 5 / 4; clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease) .2s; }
.loaded .hero-img { clip-path: inset(0 0 0 0); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 2.4s var(--ease) .2s; }
.loaded .hero-img img { transform: scale(1); }
.seal { position: absolute; top: -26px; left: -26px; width: 104px; height: 104px; border-radius: 50%; background: var(--card); box-shadow: 0 14px 30px rgba(27, 24, 19, .12); display: grid; place-items: center; }
.seal svg:first-child { position: absolute; inset: 0; animation: rotate 18s linear infinite; }
.seal text { font: 600 9.4px var(--sans); letter-spacing: .14em; fill: var(--ink); }
.seal-bee { width: 40px; height: 40px; animation: bob 3s ease-in-out infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.float-card { position: absolute; right: -18px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 0; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); box-shadow: 0 14px 30px rgba(27, 24, 19, .14); animation: float 5s ease-in-out infinite; }
.float-card img { width: 42px; height: 42px; border-radius: 0; object-fit: cover; mix-blend-mode: multiply; }
.float-card small { display: block; font-size: .68rem; color: var(--muted); }
.float-card b { font-size: .85rem; font-weight: 600; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* VALUES */
.values { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 24px; margin-bottom: 0; padding-inline: 0; border-block: 1px solid var(--line); padding-block: 18px; }
.values li { padding: 0 18px; display: flex; flex-direction: column; }
.values li + li { border-left: 1px solid var(--line); }
.values b { font-size: .85rem; font-weight: 600; }
.values span { font-size: .8rem; color: var(--muted); }

/* PRODUCTS */
.q-mini { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--honey); color: var(--honey); font-size: .65rem; font-weight: 700; vertical-align: 1px; }
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 0; background: var(--card); border: 1px solid var(--line); margin-bottom: 24px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 8px 16px; border-radius: 0; font-size: .82rem; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .3s; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs button small { opacity: .6; margin-left: 4px; font-size: .7rem; }
.tab-glide { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 0; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 0; background: var(--card); border: 1px solid var(--line); padding: 8px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27, 24, 19, .08); border-color: transparent; }
.card.hide { display: none; }
.card.pop { animation: pop .6s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.tile { border-radius: 0; background: var(--tile); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .tile img { transform: scale(1.08); }
.card-body { padding: 12px 6px 4px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 8px; flex: 1; }
.card-body .cat-label { grid-column: 1 / -1; font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--honey); }
.card-body h3 { grid-column: 1 / -1; font-size: 1.02rem; font-weight: 400; letter-spacing: -.01em; }
.card-body .size { font-size: .78rem; color: var(--muted); }
.price { font-weight: 600; font-size: .98rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.q { position: absolute; top: 16px; right: 16px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: .75rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(27, 24, 19, .1); transition: background .3s, color .3s, transform .4s var(--ease); }
.q::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--honey); animation: ping 3s var(--ease) infinite; animation-delay: var(--d, 0s); }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
.q:hover, .q:focus-visible { background: var(--honey); color: #fff; transform: scale(1.12); }
.downloads { display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.downloads button { background: none; border: 0; padding: 0 0 2px; border-bottom: 1px solid var(--ink); font-size: .85rem; cursor: pointer; }
.downloads button:hover { color: var(--honey); border-color: var(--honey); }

/* PRODUCT POPUP */
.info { border: 0; padding: 0; width: min(92vw, 680px); border-radius: 0; overflow: hidden; background: var(--card); color: var(--ink); display: grid; grid-template-columns: 1fr 1.25fr; box-shadow: 0 40px 100px rgba(0, 0, 0, .3); }
.info:not([open]) { display: none; }
.info[open] { animation: bloom .6s var(--ease); }
@keyframes bloom { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.info::backdrop { background: rgba(23, 19, 13, .5); backdrop-filter: blur(6px); }
.info figure { margin: 0; background: var(--tile); display: grid; place-items: center; min-height: 260px; }
.info figure img { width: 70%; border-radius: 0; animation: rise .8s var(--ease) both; }
.info-body { padding: 36px 30px 30px; display: flex; flex-direction: column; gap: 12px; }
.info-body > * { animation: rise .6s var(--ease) both; }
.info-body > :nth-child(2) { animation-delay: .05s; } .info-body > :nth-child(3) { animation-delay: .1s; } .info-body > :nth-child(4) { animation-delay: .15s; } .info-body > :nth-child(5) { animation-delay: .2s; } .info-body > :nth-child(6) { animation-delay: .25s; } .info-body > :nth-child(7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.info .eyebrow { margin: 0; }
.info h3 { font-size: 1.8rem; font-weight: 300; }
.info-price { font-weight: 600; }
.info-body > p:not([class]) { color: var(--muted); font-size: .92rem; }
.info-tip { padding: 12px 14px; border-radius: 0; background: var(--bg); font-size: .85rem; }
.info-tip::before { content: "Tip — "; font-weight: 600; color: var(--honey); }
:lang(ru) .info-tip::before { content: "Совет — "; }
.info-note { font-size: .75rem; color: var(--muted); }
.info-note:empty { display: none; }
.info .btn { align-self: flex-start; margin-top: 6px; }
.info .close, .viewer .close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card); font-size: 1.2rem; cursor: pointer; z-index: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); transition: transform .4s var(--ease); }
.info .close:hover, .viewer .close:hover { transform: rotate(90deg); }

/* VIEWER (price list / brochure images) */
.viewer { border: 0; padding: 0; background: none; max-width: min(92vw, 560px); overflow: visible; }
.viewer::backdrop { background: rgba(23, 19, 13, .75); backdrop-filter: blur(6px); }
.viewer[open] { animation: bloom .6s var(--ease); }
.viewer img { max-height: 80vh; border-radius: 0; }
.viewer .btn { margin-top: 12px; }

/* ABOUT */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about h2 { margin-bottom: 14px; }
.about-text .muted { margin-bottom: 20px; }
blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; padding-left: 16px; border-left: 2px solid var(--honey); }
.eco { border-radius: 0; padding: 26px; background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.eco::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(243, 199, 125, .35), transparent 70%); animation: drift 10s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-60px, 80px); } }
.eco-title { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 14px; position: relative; }
.eco ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; position: relative; }
.eco li { font-size: .85rem; padding-left: 22px; position: relative; color: rgba(255, 255, 255, .85); }
.eco li::before { content: ""; position: absolute; left: 0; top: .35em; width: 12px; height: 12px; border-radius: 50%; background: var(--honey-lt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8l4-4.2' fill='none' stroke='%2317130d' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% no-repeat; transform: scale(0); transition: transform .5s var(--ease); }
.eco.in li::before { transform: scale(1); }
.eco.in li:nth-child(2)::before { transition-delay: .06s; } .eco.in li:nth-child(3)::before { transition-delay: .12s; } .eco.in li:nth-child(4)::before { transition-delay: .18s; }
.eco.in li:nth-child(5)::before { transition-delay: .24s; } .eco.in li:nth-child(6)::before { transition-delay: .3s; } .eco.in li:nth-child(7)::before { transition-delay: .36s; } .eco.in li:nth-child(8)::before { transition-delay: .42s; }

/* JOURNAL */
.journal { padding-top: 0; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.notes article { padding: 20px; border-radius: 0; background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.notes article:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27, 24, 19, .07); }
.notes span { font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--honey); }
.notes h3 { font-size: 1.1rem; margin: 6px 0; }
.notes p { font-size: .85rem; color: var(--muted); }

/* ORDER */
#order { padding-top: 0; }
.order { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding: 32px 36px; border-radius: 0; background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.order::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 120%, rgba(243, 199, 125, .3), transparent 50%); }
.order > * { position: relative; }
.order h2 { font-size: 1.7rem; }
.order p { color: rgba(255, 255, 255, .65); font-size: .9rem; margin-top: 4px; }
.phone { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--honey-lt); text-decoration: none; white-space: nowrap; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 24px 32px; font-size: .78rem; color: var(--muted); }
.foot a { text-decoration: none; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* MOBILE */
@media (max-width: 900px) {
  .nav { left: 10px; right: 10px; transform: translateY(-140%); }
  .loaded .nav { transform: none; }
  .brand { margin-right: auto; }
  .menu-btn { display: block; }
  .glide { display: none; }
  .nav nav { position: fixed; inset: -11px -11px auto; height: 100svh; background: var(--dark); clip-path: circle(0 at calc(100% - 36px) 36px); transition: clip-path .8s var(--ease); z-index: -1; display: flex; flex-direction: column; justify-content: center; padding: 0 28px; }
  .nav.open nav { clip-path: circle(150% at calc(100% - 36px) 36px); }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { font: 300 2.4rem var(--serif); color: #fff; padding: 4px 0; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .nav.open ul a { opacity: 1; transform: none; }
  .nav.open ul li:nth-child(2) a { transition-delay: .06s; } .nav.open ul li:nth-child(3) a { transition-delay: .12s; } .nav.open ul li:nth-child(4) a { transition-delay: .18s; }
  .order-btn { padding: 10px 12px; }
  .order-btn span, .wordmark i { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 96px; }
  .hero-art { margin: 0 8px; }
  .seal { width: 84px; height: 84px; top: -20px; left: -12px; }
  .float-card { right: -6px; }
  .values { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .values li:nth-child(3) { border-left: 0; }
  .about { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr 1fr; }
  .order { grid-template-columns: 1fr; padding: 28px 24px; gap: 16px; }
  .info { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .info figure { min-height: 180px; }
  .info figure img { width: 46%; }
  .info-body { padding: 24px 22px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .notes, .eco ul { grid-template-columns: 1fr; }
  .card-body { grid-template-columns: 1fr; }
  .q { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .fade-in, .split-lines > span > span { opacity: 1; transform: none; }
  .hero-img { clip-path: none; }
}

/* values icons */
.values li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
.values svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; background: #f3eee5; stroke: var(--honey); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* CHAT WIDGET */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 13px 18px; border: 0; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; box-shadow: 0 12px 30px rgba(27, 24, 19, .25); transition: transform .4s var(--ease), background .3s; animation: fab-in .8s var(--ease) 1.2s both; }
@keyframes fab-in { from { opacity: 0; transform: translateY(20px); } }
.chat-fab:hover { background: var(--honey); transform: translateY(-2px); }
.chat-fab svg { width: 18px; fill: none; stroke: var(--honey-lt); stroke-width: 1.8; stroke-linejoin: round; }
.chat-fab:hover svg { stroke: var(--ink); }
.chat-badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; background: #d9443a; color: #fff; font: 700 .7rem/20px var(--sans); text-align: center; font-style: normal; animation: pop .5s var(--ease); }
.chat-open .chat-fab { opacity: 0; pointer-events: none; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100svh - 110px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(27, 24, 19, .25); animation: chat-in .5s var(--ease); }
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(24px) scale(.97); transform-origin: bottom right; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--dark); color: #fff; }
.chat-head .logo { width: 30px; height: 30px; }
.chat-head div { flex: 1; display: flex; flex-direction: column; }
.chat-head b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.chat-head small { font-size: .72rem; color: rgba(255, 255, 255, .6); display: flex; align-items: center; gap: 6px; }
.chat-x { width: 32px; height: 32px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.2rem; cursor: pointer; }
.chat-x:hover { background: rgba(255, 255, 255, .2); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 84%; display: flex; flex-direction: column; animation: rise .4s var(--ease) both; }
.msg p { padding: 10px 13px; font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { font-size: .66rem; color: var(--muted); margin-top: 3px; }
.msg.farm { align-self: flex-start; }
.msg.farm p { background: var(--card); border: 1px solid var(--line); }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me p { background: var(--ink); color: #fff; }
.sys { align-self: stretch; padding: 12px; font-size: .8rem; color: var(--muted); background: #fbf3e2; border-left: 2px solid var(--honey); animation: rise .5s var(--ease) both; }
.sys.err { background: #fbe9e7; border-color: #d9443a; color: #8a2a22; }
.email-ask p { margin-bottom: 8px; color: var(--ink); }
.row { display: flex; gap: 6px; }
.email-ask input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .82rem; }
.email-ask button { border: 0; background: var(--honey); color: #fff; padding: 0 14px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.chat-form { padding: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; background: var(--card); }
.chat-form input, .chat-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: .88rem; resize: none; }
.chat-form input:focus, .chat-form textarea:focus, .email-ask input:focus { outline: 2px solid var(--honey-lt); outline-offset: -1px; }
.chat-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.c-send { width: 44px; flex: none; border: 0; background: var(--ink); cursor: pointer; transition: background .3s; }
.c-send:hover { background: var(--honey); }
.c-send:disabled { opacity: .5; }
.c-send svg { width: 18px; fill: none; stroke: #fff; stroke-width: 2; }
@media (max-width: 560px) {
  .chat { right: 0; bottom: 0; width: 100vw; height: 100svh; border: 0; }
  .chat-fab { right: 12px; bottom: 12px; }
  .chat-fab .fab-label { display: none; }
}
