:root {
  color-scheme: light;
  --forest: #12382e;
  --forest-2: #1e5947;
  --ink: #172921;
  --muted: #6c7b70;
  --line: #dde5dd;
  --paper: #f6f7f1;
  --white: #fff;
  --orange: #f18b3b;
  --orange-soft: #fff0df;
  --green-soft: #e5f1e8;
  --red-soft: #fff0ea;
  --shadow: 0 14px 40px rgba(15, 42, 28, .07);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #ed9a4d; outline-offset: 2px; }
a { color: inherit; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.tiny { width: 14px; height: 14px; }
.site-shell { min-height: 100vh; padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(20px, calc((100vw - 1090px)/2)); background: rgba(250,251,246,.94); border-bottom: 1px solid rgba(222,228,217,.75); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; background: none; border: 0; text-align: left; color: var(--ink); flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; mix-blend-mode: multiply; }
.brand strong { display: block; font-size: 14px; letter-spacing: .13em; font-weight: 900; white-space: nowrap; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.top-location { display: flex; align-items: center; gap: 6px; max-width: 48%; min-height: 38px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--forest); font-size: 12px; font-weight: 700; box-shadow: 0 4px 16px rgba(18,56,46,.04); }
.top-location .icon { width: 16px; height: 16px; }
.top-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-banner { position: sticky; top: 74px; z-index: 19; padding: 8px 20px; background: #fed983; color: #523a0d; text-align: center; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.app-content { width: min(100% - 40px, 1090px); margin: 0 auto; padding: 24px 0 40px; }
.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; width: min(100%, 800px); height: calc(70px + env(safe-area-inset-bottom)); padding: 6px 7px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border: 1px solid #e7ece5; border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 35px rgba(16,48,32,.09); backdrop-filter: blur(16px); }
.bottom-nav button { position: relative; width: 20%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 0; color: #78877b; border: 0; border-radius: 13px; background: transparent; font-size: 10px; font-weight: 700; }
.bottom-nav button.active { color: var(--forest); background: var(--green-soft); }
.bottom-nav button.active .icon { stroke-width: 2.4; }
.nav-count { position: absolute; top: 0; right: calc(50% - 24px); min-width: 16px; height: 16px; padding: 1px 4px; border-radius: 20px; background: var(--orange); color: #fff; font-size: 10px; line-height: 14px; }
.page { animation: enter .2s ease-out; }
@keyframes enter { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { letter-spacing: -.035em; }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; }
h2 { font-size: clamp(22px, 3vw, 29px); line-height: 1.17; }
h3 { font-size: 18px; line-height: 1.22; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--forest-2); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow.light { color: #d8ebdf; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 31px 0 16px; }
.section-title h2 { margin: 5px 0 0; }
.section-title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.text-button { border: 0; background: transparent; color: var(--forest-2); font-size: 13px; font-weight: 800; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 17px; border: 1px solid transparent; border-radius: 12px; background: var(--forest); color: #fff; font-weight: 800; font-size: 13px; text-decoration: none; transition: transform .16s, background .16s; }
.button:hover:not(:disabled) { transform: translateY(-1px); background: #1d5545; }
.button.orange { background: var(--orange); color: #2b2c1b; }
.button.orange:hover:not(:disabled) { background: #ff9b4f; }
.button.light { background: #fff; color: var(--forest); }
.button.light:hover:not(:disabled) { background: #eaf5e9; }
.button.ghost { background: transparent; border-color: var(--line); color: var(--forest); }
.button.ghost:hover:not(:disabled) { background: var(--green-soft); }
.button.small { min-height: 35px; padding: 7px 12px; border-radius: 10px; font-size: 12px; }
.button.full { width: 100%; }
.button .icon { width: 17px; height: 17px; }
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; min-height: 355px; overflow: hidden; border-radius: 28px; background: radial-gradient(circle at 91% 18%, #2e7559 0, transparent 28%), linear-gradient(125deg, #10352b, #235944 80%); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; width: 350px; height: 350px; right: -120px; top: -180px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.035), 0 0 0 96px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02); }
.hero-copy { z-index: 1; padding: clamp(28px, 5vw, 52px); color: #fff; }
.hero h1 { max-width: 520px; margin: 14px 0 13px; }
.hero p { max-width: 440px; color: #d7eadf; line-height: 1.5; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.hero-panel { z-index: 1; display: flex; align-items: end; padding: 24px 31px 29px 0; }
.hero-bubble { width: 100%; padding: 22px; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: rgba(255,255,255,.13); color: #fff; backdrop-filter: blur(8px); }
.hero-bubble span { color: #d2e9d8; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.hero-bubble strong { display: block; margin: 8px 0; font-size: 21px; line-height: 1.2; }
.hero-bubble p { margin: 0; font-size: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.quick-card { display: flex; flex-direction: column; align-items: start; gap: 13px; min-height: 136px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 6px 20px rgba(15,42,28,.035); text-align: left; color: var(--ink); }
.quick-card:hover { border-color: #b4cfbb; transform: translateY(-1px); }
.quick-card .quick-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; background: var(--orange-soft); color: #d26e24; }
.quick-card:nth-child(2) .quick-icon { background: var(--green-soft); color: var(--forest); }
.quick-card:nth-child(3) .quick-icon { background: #eaf0f7; color: #466481; }
.quick-card strong { font-size: 15px; }
.quick-card small { color: var(--muted); line-height: 1.4; }
.scroll-row { display: flex; gap: 13px; overflow-x: auto; padding: 1px 1px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroll-row > * { scroll-snap-align: start; flex: 0 0 min(270px, 78vw); }
.store-card, .feed-card, .order-card, .chat-card, .profile-card, .cart-card, .notice-card { border: 1px solid var(--line); border-radius: 19px; background: var(--white); box-shadow: 0 5px 20px rgba(15,42,28,.035); }
.store-card { display: flex; flex-direction: column; gap: 13px; min-height: 178px; padding: 19px; }
.store-card.selected { border-color: #70a788; box-shadow: 0 0 0 2px rgba(75,143,102,.1); }
.store-card-top { display: flex; justify-content: space-between; gap: 8px; }
.store-card h3 { margin: 0 0 5px; }
.store-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.store-card .store-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.store-chat-link { align-self: start; padding: 0; font-size: 11px; }
.distance { color: var(--forest-2); font-weight: 800; font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 6px 9px; border-radius: 999px; background: var(--green-soft); color: var(--forest-2); font-size: 10px; font-weight: 800; white-space: nowrap; }
.tag.orange { background: var(--orange-soft); color: #a05216; }
.tag.neutral { background: #f0f3ee; color: #60736a; }
.tag.warn { background: var(--red-soft); color: #a04c30; }
.store-card .tag.warn { max-width: 100%; white-space: normal; line-height: 1.3; border-radius: 12px; }
.feed-card { overflow: hidden; min-height: 205px; padding: 20px; background: linear-gradient(145deg, #fff, #f8fbf5); }
.feed-card:nth-child(2n) { background: linear-gradient(145deg, #fff8ef, #fff); }
.feed-card .feed-visual { width: 41px; height: 41px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 13px; background: var(--orange-soft); color: #bb6121; font-size: 23px; }
.feed-card h3 { min-height: 43px; margin: 11px 0 7px; font-size: 17px; }
.feed-card p { color: var(--muted); font-size: 12px; line-height: 1.47; }
.feed-card a { display: inline-flex; align-items: center; gap: 5px; color: var(--forest-2); font-weight: 800; text-decoration: none; font-size: 12px; }
.channel-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 15px 0 2px; }
.channel-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 35px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--forest); font-size: 12px; font-weight: 800; text-decoration: none; }
.channel-links a:hover { border-color: #98c3a3; background: var(--green-soft); }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 19px; }
.page-heading h1 { margin: 5px 0 0; font-size: clamp(28px, 4vw, 39px); }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.searchbar { display: flex; align-items: center; gap: 10px; height: 51px; padding: 0 14px; border: 1px solid #cddbd0; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(15,42,28,.035); }
.searchbar:focus-within { border-color: #57a073; box-shadow: 0 0 0 3px rgba(84,163,110,.12); }
.searchbar .icon { color: var(--forest-2); }
.searchbar input { width: 100%; border: 0; outline: 0; background: none; color: var(--ink); font-size: 14px; }
.filters { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin: 14px 0 21px; padding-bottom: 5px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #5b6b60; font-size: 12px; font-weight: 700; }
.chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.catalog-back { display: inline-flex; align-items: center; gap: 6px; margin: -2px 0 12px; padding: 5px 0; border: 0; background: none; color: var(--forest-2); font-size: 12px; font-weight: 800; }
.catalog-back:hover, .catalog-breadcrumb button:hover { text-decoration: underline; }
.catalog-breadcrumb { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin: 0 0 19px; padding-bottom: 4px; color: #8a9a8d; white-space: nowrap; scrollbar-width: thin; }
.catalog-breadcrumb button { flex: none; max-width: 220px; overflow: hidden; padding: 0; border: 0; background: none; color: var(--forest-2); font-size: 11px; font-weight: 700; text-overflow: ellipsis; }
.catalog-breadcrumb button[aria-current] { color: var(--ink); }
.catalog-section-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 16px 0 13px; }
.catalog-section-head h2 { margin: 0; font-size: 21px; }
.catalog-section-head span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.group-search { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 0 12px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--forest-2); }
.group-search:focus-within { border-color: #57a073; box-shadow: 0 0 0 3px rgba(84,163,110,.12); }
.group-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.group-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; }
.catalog-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.catalog-tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 19px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 5px 20px rgba(15,42,28,.035); transition: transform .16s, border-color .16s, box-shadow .16s; }
.catalog-tile:hover { transform: translateY(-2px); border-color: #9ac5a7; box-shadow: 0 9px 26px rgba(15,42,28,.09); }
.catalog-tile-art { position: relative; display: grid; place-items: center; width: 100%; min-height: 116px; overflow: hidden; background: radial-gradient(circle at 85% 12%, rgba(255,255,255,.62), transparent 40%), linear-gradient(135deg,#e3efe3,#f2ecde); }
.catalog-tile:nth-child(3n+2) .catalog-tile-art { background: radial-gradient(circle at 85% 12%, rgba(255,255,255,.62), transparent 40%), linear-gradient(135deg,#e8efe0,#e4ede9); }
.catalog-tile:nth-child(3n+3) .catalog-tile-art { background: radial-gradient(circle at 85% 12%, rgba(255,255,255,.62), transparent 40%), linear-gradient(135deg,#f2e8dd,#e7efdf); }
.catalog-tile-mark { display: grid; place-items: center; width: 73px; height: 73px; border: 1px solid rgba(30,89,71,.15); border-radius: 22px; background: rgba(255,255,255,.75); color: var(--forest-2); font-size: 28px; font-weight: 900; letter-spacing: -.06em; }
.catalog-tile-image { position: absolute; inset: 0; width: 100%; height: 100%; padding: 12px; background: #fff; object-fit: contain; }
.catalog-tile-image.on-dark { padding: 19px; background: #1b1d1c; }
.catalog-tile-body { display: flex; flex: 1; flex-direction: column; gap: 6px; width: 100%; min-height: 116px; padding: 16px; }
.catalog-tile-body small { color: var(--forest-2); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.catalog-tile-body strong { overflow-wrap: anywhere; font-size: 17px; line-height: 1.22; }
.catalog-tile-body > span { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: auto; color: var(--muted); font-size: 11px; font-weight: 700; }
.catalog-tile-body .icon { color: var(--forest-2); }
.catalog-tile.regulated { border-color: #d9e1dc; box-shadow: none; }
.catalog-tile.regulated .catalog-tile-body { min-height: 139px; background: #fff; }
.catalog-tile.regulated .catalog-tile-body small { color: #6c7b70; }
.catalog-all-link { display: inline-flex; align-items: center; gap: 7px; margin: 14px 0 19px; padding: 7px 0; border: 0; background: none; color: var(--forest-2); font-size: 12px; font-weight: 800; }
.catalog-all-link:hover { text-decoration: underline; }
.catalog-freshness { margin: 2px 0 14px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.catalog-toolbar label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; }
.catalog-toolbar input { accent-color: var(--forest); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; min-height: 270px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 5px 20px rgba(15,42,28,.035); }
.product-card.regulated { min-height: 175px; box-shadow: none; }
.product-card.regulated.with-art { min-height: 290px; }
.product-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 120px; background: linear-gradient(135deg, #e6efe5, #f6eee2); color: #647f68; }
.product-image { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px; background: #fff; object-fit: contain; }
.product-card:nth-child(4n+2) .product-art { background: linear-gradient(135deg, #ebf0dd, #f2f5ec); }
.product-card:nth-child(4n+3) .product-art { background: linear-gradient(135deg, #f5e9db, #f5f3e9); }
.product-art .art-glyph { font-size: 38px; filter: saturate(.65); }
.product-art .art-note { position: absolute; right: 11px; bottom: 10px; color: #526959; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-body { display: flex; flex-direction: column; flex: 1; gap: 7px; padding: 15px; }
.product-body .category { color: var(--forest-2); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.product-body h3 { min-height: 40px; margin: 0; font-size: 15px; }
.product-description { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-body .stock-note { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--muted); font-size: 11px; }
.product-details-link { display: inline-flex; align-items: center; gap: 4px; align-self: start; padding: 0; border: 0; background: none; color: var(--forest-2); font-size: 11px; font-weight: 800; text-align: left; cursor: pointer; }
.product-details-link:hover { text-decoration: underline; }
.product-details-link .icon { width: 12px; height: 12px; }
.product-bottom { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin-top: auto; padding-top: 7px; }
.price { font-size: 17px; font-weight: 900; white-space: nowrap; }
.price.unknown { font-size: 12px; color: var(--muted); font-weight: 700; white-space: normal; }
.product-bottom .button { min-width: 72px; }
.stack { display: grid; gap: 12px; }
.split-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.65fr); gap: 20px; align-items: start; }
.notice-card { padding: 17px; color: #425749; line-height: 1.5; font-size: 13px; }
.notice-card strong { color: var(--forest); }
.empty-state, .system-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 270px; padding: 32px 20px; border: 1px dashed #ccdacc; border-radius: 19px; background: #fbfcf8; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 13px; border-radius: 19px; background: var(--green-soft); color: var(--forest-2); }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-state h2, .system-state h1 { margin-bottom: 7px; font-size: 20px; }
.empty-state p, .system-state p { max-width: 400px; color: var(--muted); line-height: 1.5; font-size: 13px; }
.empty-state .button, .system-state .button { margin-top: 8px; }
.system-state { min-height: min(60vh, 560px); border: 0; background: transparent; }
.loader { width: 42px; height: 42px; margin-bottom: 22px; border: 3px solid #d9e8db; border-top-color: var(--forest-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state .empty-icon { background: var(--red-soft); color: #b45036; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chat-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 17px; text-align: left; color: var(--ink); }
.chat-card:hover { border-color: #9ec8a8; }
.chat-avatar { display: grid; place-items: center; width: 43px; height: 43px; flex: none; border-radius: 14px; background: var(--green-soft); color: var(--forest-2); }
.chat-main { flex: 1; min-width: 0; }
.chat-main strong { display: block; font-size: 14px; }
.chat-main small { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.chat-meta { display: grid; justify-items: end; gap: 7px; color: var(--muted); font-size: 10px; }
.chat-thread { display: flex; flex-direction: column; height: min(66vh, 660px); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.thread-header { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.thread-header strong { font-size: 14px; }
.thread-header small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--forest); }
.messages { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; padding: 18px; background: #f8faf6; }
.message { align-self: start; max-width: min(83%, 470px); padding: 10px 13px; border-radius: 15px 15px 15px 3px; background: #fff; border: 1px solid var(--line); font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.mine { align-self: end; border-color: #d0e5d5; border-radius: 15px 15px 3px 15px; background: #e2f1e7; }
.message time { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; text-align: right; }
.message-form { display: flex; align-items: end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.message-form textarea { min-height: 43px; max-height: 100px; flex: 1; resize: vertical; padding: 11px; border: 1px solid var(--line); border-radius: 12px; outline-color: #82b799; font-size: 13px; }
.message-form .button { min-height: 43px; }
.cart-card, .order-card { padding: 17px; }
.cart-line { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.cart-line strong { display: block; margin-bottom: 5px; font-size: 14px; }
.cart-line small { color: var(--muted); font-size: 11px; }
.quantity-controls { display: flex; align-items: center; gap: 7px; flex: none; }
.quantity-controls button { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--forest); }
.quantity-controls .icon { width: 13px; height: 13px; }
.quantity-controls strong { min-width: 17px; text-align: center; }
.cart-card .line-bottom { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 13px; }
.checkout-panel { position: sticky; top: 93px; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.checkout-panel h2 { font-size: 21px; margin-bottom: 15px; }
.checkout-panel .summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.checkout-panel .summary-row strong { text-align: right; }
.checkout-panel .button { margin-top: 14px; }
.field { display: grid; gap: 7px; margin: 13px 0; color: #3a5143; font-size: 12px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d4dfd3; border-radius: 11px; background: #fff; color: var(--ink); outline-color: #82b799; font-size: 13px; font-weight: 500; }
.field textarea { min-height: 76px; resize: vertical; }
.field-help { margin: -4px 0 7px; color: var(--muted); line-height: 1.45; font-size: 11px; }
.profile-banner { display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: 20px; background: linear-gradient(125deg, #12382e, #256049); color: #fff; }
.profile-banner .avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: rgba(255,255,255,.18); font-size: 19px; font-weight: 800; }
.profile-banner h2 { margin: 0 0 3px; color: #fff; font-size: 21px; }
.profile-banner p { margin: 0; color: #d3eadc; font-size: 12px; }
.profile-card { padding: 19px; }
.profile-card h3 { margin-bottom: 14px; }
.profile-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.profile-row:last-child { border: 0; }
.profile-row span { color: var(--muted); }
.profile-row strong { max-width: 65%; text-align: right; }
.sub-list { display: grid; gap: 8px; }
.sub-list label { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; font-size: 12px; font-weight: 700; }
.sub-list input { accent-color: var(--forest); }
.order-card .order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-card .order-head strong { font-size: 14px; }
.order-card p { margin: 9px 0; color: var(--muted); font-size: 12px; }
.order-card .status-warning { padding: 8px 10px; border-radius: 10px; background: var(--orange-soft); color: #965015; line-height: 1.4; }
.order-card ul { margin: 10px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.7; }
.order-card .comment { margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--paper); color: var(--ink); line-height: 1.45; font-size: 12px; }
.registration { width: min(100%, 560px); margin: 30px auto 0; padding: clamp(22px,5vw,36px); border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.registration .logo-large { width: 72px; height: 72px; margin-bottom: 15px; object-fit: contain; }
.registration h1 { margin: 8px 0 10px; font-size: clamp(27px,5vw,37px); }
.registration p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.registration .button { margin-top: 6px; }
.consent-check { display: flex; align-items: start; gap: 10px; margin: 15px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf8; color: #405448; line-height: 1.5; font-size: 12px; }
.consent-check input { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: var(--forest); }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: 17px; }
.legal-links button { padding: 0; border: 0; background: transparent; color: var(--forest-2); font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.legal-body { overflow-wrap: anywhere; color: #31483b; line-height: 1.65; font-size: 13px; }
.legal-body h2 { margin: 0 0 12px; font-size: 19px; }
.legal-body h3 { margin: 16px 0 8px; font-size: 15px; }
.legal-body p { margin: 0 0 8px; }
.legal-gap { height: 8px; }
.contact-step { display: grid; gap: 10px; padding: 15px; border-radius: 15px; background: var(--green-soft); }
.contact-step p { margin: 0; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); width: min(calc(100% - 34px), 440px); padding: 12px 15px; border-radius: 13px; background: #173f34; color: #fff; box-shadow: 0 12px 35px rgba(12,38,25,.24); font-size: 12px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #793e2d; }
.overlay { position: fixed; z-index: 50; inset: 0; display: flex; align-items: end; justify-content: center; padding: 20px; background: rgba(14,35,26,.5); backdrop-filter: blur(3px); }
.sheet { width: min(100%, 650px); max-height: min(84vh, 780px); overflow-y: auto; padding: 21px; border-radius: 22px 22px 0 0; background: var(--paper); box-shadow: 0 20px 60px rgba(8,30,20,.3); }
.sheet-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.sheet-head h2 { margin: 3px 0 0; }
.sheet .store-card { margin-bottom: 9px; }
.sheet .store-card:last-child { margin-bottom: 0; }
.sheet .store-card { min-height: auto; }
.sheet .store-card-bottom { margin-top: 4px; }
.product-sheet-image { display: grid; place-items: center; height: 250px; overflow: hidden; margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--muted); font-size: 12px; }
.product-sheet-image img { width: 100%; height: 100%; object-fit: contain; }
.product-sheet-price { margin: 0 0 15px; color: var(--ink); font-size: 23px; font-weight: 900; }
.product-sheet h3 { margin: 15px 0 7px; font-size: 15px; }
.product-sheet-description { margin: 0; color: #43594b; line-height: 1.5; white-space: pre-line; font-size: 12px; }
.product-stock-list { display: grid; gap: 7px; margin-top: 12px; }
.product-stock-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.product-stock-row.selected { border-color: #92baa0; background: #f4faf5; }
.product-stock-row > div { flex: 1; min-width: 140px; }
.product-stock-row strong, .product-stock-row small { display: block; }
.product-stock-row strong { font-size: 12px; }
.product-stock-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.product-stock-row .text-button { font-size: 10px; }
.product-sheet-actions { display: flex; gap: 8px; margin-top: 17px; }
.small-note { color: var(--muted); font-size: 11px; line-height: 1.45; }
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .hero-copy { padding: 31px; }
  .hero h1 { max-width: 560px; }
  .products { grid-template-columns: repeat(2,1fr); }
  .catalog-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split-layout { grid-template-columns: 1fr; }
  .checkout-panel { position: static; }
}
@media (max-width: 520px) {
  .topbar { min-height: 66px; padding: 10px 15px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 12px; }
  .brand small { font-size: 10px; }
  .top-location { max-width: 42%; min-width: 0; padding: 5px 8px; font-size: 10px; }
  .top-location .tiny { display: none; }
  .demo-banner { top: 66px; }
  .app-content { width: calc(100% - 30px); padding-top: 16px; }
  .hero { min-height: 319px; border-radius: 21px; }
  .hero-copy { padding: 27px 24px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 13px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; flex: none; min-height: 44px; padding-inline: 15px; font-size: 12px; }
  .grid-3 { gap: 8px; }
  .quick-card { min-height: 130px; padding: 12px; gap: 10px; border-radius: 15px; }
  .quick-card .quick-icon { width: 34px; height: 34px; }
  .quick-card .quick-icon .icon { width: 18px; height: 18px; }
  .quick-card strong { font-size: 11px; line-height: 1.2; }
  .quick-card small { font-size: 10px; }
  .catalog-tiles { gap: 8px; }
  .catalog-tile { border-radius: 15px; }
  .catalog-tile-art { min-height: 83px; }
  .catalog-tile-mark { width: 56px; height: 56px; border-radius: 18px; font-size: 23px; }
  .catalog-tile-body { min-height: 104px; padding: 11px; }
  .catalog-tile-body small { font-size: 9px; }
  .catalog-tile-body strong { font-size: 14px; }
  .catalog-tile-body > span { font-size: 10px; }
  .catalog-tile.regulated .catalog-tile-body { min-height: 138px; }
  .catalog-section-head h2 { font-size: 18px; }
  .products { gap: 8px; }
  .product-card { border-radius: 15px; min-height: 259px; }
  .product-card.regulated.with-art { min-height: 285px; }
  .product-art { min-height: 100px; }
  .product-body { padding: 11px; }
  .product-body h3 { font-size: 12px; line-height: 1.3; min-height: 47px; }
  .product-bottom { align-items: center; }
  .product-bottom .button { min-width: auto; padding: 7px 8px; font-size: 10px; }
  .price { font-size: 14px; }
  .price.unknown { font-size: 10px; }
  .bottom-nav { border-radius: 16px 16px 0 0; }
  .bottom-nav button { font-size: 9px; }
  .bottom-nav .icon { width: 19px; height: 19px; }
  .sheet { width: calc(100% + 40px); margin: 0 -20px -20px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
