@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/fonts/nunito-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/fonts/nunito-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* А-Флора — тёплый семейный стиль. Цвета заданы переменными: меняйте здесь. */
:root {
  --bg: #F6F0E3; --surface: #FFFCF5; --soft: #EEE5D0; --line: #DDD0B6;
  --ink: #2B2620; --muted: #6A6150;
  --green: #2F5A3F; --green-d: #234531; --green-soft: #E1E8D3;
  --accent: #9C4A2F; --accent-d: #82391F; --butter: #E9D8A6;
  --shadow: 0 1px 2px rgba(60,40,15,.06), 0 10px 30px -8px rgba(60,40,15,.16);
  --r: 14px; --r-s: 10px; --ease: cubic-bezier(.22,.8,.3,1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 68px;
}
:root[data-theme="dark"] {
  --bg: #161510; --surface: #1F1D16; --soft: #27241B; --line: #3A3629;
  --ink: #EDE6D3; --muted: #A59D88;
  --green: #9CC59A; --green-d: #B4D6B1; --green-soft: #243124;
  --accent: #E0946F; --accent-d: #EBA987; --butter: #4A4125;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px -8px rgba(0,0,0,.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161510; --surface: #1F1D16; --soft: #27241B; --line: #3A3629;
    --ink: #EDE6D3; --muted: #A59D88;
    --green: #9CC59A; --green-d: #B4D6B1; --green-soft: #243124;
    --accent: #E0946F; --accent-d: #EBA987; --butter: #4A4125;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px -8px rgba(0,0,0,.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding: 84px 0 calc(var(--tabbar-h) + 28px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 6vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar__in { width: min(1180px, 100% - 24px); margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 22px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; }
.topnav { display: none; gap: 4px; margin-left: 8px; }
.topnav a { color: var(--ink); padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.topnav a:hover, .topnav a.on { background: var(--soft); text-decoration: none; }
.search { flex: 1; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 14px; min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 10px 4px; outline: none; }
.iconbtn { border: 0; background: transparent; font-size: 18px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.cartlink { position: relative; display: none; width: 44px; height: 44px; place-items: center; font-size: 22px; border-radius: 50%; color: var(--ink); }
.cartlink:hover { background: var(--soft); text-decoration: none; }
.cartlink__n, .tabbar b { background: var(--accent); color: #fff; font: 700 12px/1 var(--sans); border-radius: 999px; padding: 4px 6px; min-width: 20px; text-align: center; }
.cartlink__n { position: absolute; top: 2px; right: 0; }

/* ---------- нижнее меню (телефон) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabbar-h); font-size: 12px; color: var(--muted); }
.tabbar a span { font-size: 22px; line-height: 1; }
.tabbar a.on { color: var(--green); font-weight: 700; }
.tabbar a:hover { text-decoration: none; }
.tabbar b { position: absolute; top: 6px; left: calc(50% + 6px); }

/* ---------- общие блоки ---------- */
main { min-height: 60vh; outline: none; }
.section { padding: 36px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section__head h2 { margin: 0; }
.more { font-weight: 600; white-space: nowrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); padding: 18px 0 4px; }
.crumbs a { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 2px solid transparent; font: 600 16px var(--sans); cursor: pointer; background: var(--green); color: #fff; text-decoration: none; }
.btn:hover { background: var(--green-d); text-decoration: none; }
.btn--accent { background: var(--accent); } .btn--accent:hover { background: var(--accent-d); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); } .btn--ghost:hover { background: var(--green-soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--green); cursor: pointer; text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-size: 15px; cursor: pointer; font-family: inherit; }
.chip:hover { text-decoration: none; background: var(--green-soft); }
.chip[aria-pressed="true"], .chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* ---------- главная ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--green-soft), var(--butter)); border-radius: 0 0 36px 36px; }
.hero__in { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 44px 0 52px; display: grid; gap: 28px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: .35em; max-width: 16ch; }
.hero p { font-size: 19px; max-width: 46ch; color: var(--ink); opacity: .85; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__art { display: none; justify-self: end; width: min(340px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--butter); border: 10px solid color-mix(in srgb, var(--surface) 70%, transparent); overflow: hidden; box-shadow: var(--shadow); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--surface) 35%, transparent); }
.hero::before { width: 260px; height: 260px; right: -80px; top: -90px; }
.hero::after { width: 160px; height: 160px; left: -60px; bottom: -70px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); min-height: 132px; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.tile__icon { font-size: 30px; line-height: 1; }
.tile__t { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.15; }
.tile__s { font-size: 14px; color: var(--muted); line-height: 1.35; }
.tile:nth-child(4n+1) { background: var(--green-soft); } .tile:nth-child(4n+2) { background: var(--butter); } .tile:nth-child(4n+3) { background: var(--soft); }

.people { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.people::-webkit-scrollbar { height: 6px; } .people::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.person { flex: 0 0 168px; scroll-snap-align: start; text-align: center; padding: 14px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.person:hover { text-decoration: none; box-shadow: var(--shadow); }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; background: var(--butter); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line); }
.avatar--lg { width: 140px; height: 140px; }
.person__n { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.person__r { font-size: 14px; color: var(--muted); }

.values { display: grid; gap: 14px; }
.value { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.value__i { font-size: 30px; } .value h3 { margin: 6px 0; } .value p { margin: 0; color: var(--muted); }

/* ---------- товары ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.rail .card { flex: 0 0 200px; scroll-snap-align: start; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card__img { display: block; aspect-ratio: 4 / 3; background: var(--soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; opacity: .55; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; }
.card__name { color: var(--ink); font-weight: 600; line-height: 1.25; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__name:hover { text-decoration: none; color: var(--green); }
.card__foot { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.card__foot .add { width: 100%; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.card__foot .add:hover { text-decoration: none; }
.price { font-weight: 700; font-size: 18px; white-space: nowrap; }
.price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.add { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--green); color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.add:hover { background: var(--green-d); }
.add.is-choose { background: var(--green-soft); color: var(--green-d); border: 1px solid var(--green); }

.page-head { padding: 22px 0 8px; }
.page-head p { color: var(--muted); max-width: 60ch; }

/* ---------- карточка товара ---------- */
.pdp { display: grid; gap: 24px; padding: 12px 0 24px; }
.gallery__main { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__price { font-size: 30px; font-weight: 700; margin: 8px 0 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.qty button { width: 44px; height: 48px; border: 0; background: transparent; font-size: 22px; color: var(--ink); cursor: pointer; border-radius: 14px; }
.qty output { min-width: 34px; text-align: center; font-weight: 700; }
.buyrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0; }
.maker-box { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--butter); color: var(--ink); margin: 16px 0; }
.maker-box:hover { text-decoration: none; box-shadow: var(--shadow); }
.maker-box .avatar { width: 64px; height: 64px; margin: 0; flex: none; }
.maker-box small { display: block; opacity: .75; }
.desc { white-space: pre-line; color: var(--ink); opacity: .9; }

/* ---------- корзина ---------- */
.cart { display: grid; gap: 20px; padding: 8px 0 24px; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; }
.line__img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.line__name { font-weight: 600; line-height: 1.25; color: var(--ink); }
.rm { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; min-height: 44px; padding: 0 6px; }
.summary { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); align-self: start; position: sticky; top: 76px; }
.summary__row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 12px; }
.meter { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 8px 0 6px; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .25s; }
.note { font-size: 14px; color: var(--muted); }

.about p { max-width: 62ch; font-size: 18px; }
.sheet { max-width: 720px; }

/* ---------- подвал ---------- */
.footer { margin-top: 40px; background: var(--soft); border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer__in { display: grid; gap: 18px; }
.footer__brand { font-family: var(--serif); font-weight: 700; font-size: 22px; }
.footer__links { display: flex; flex-direction: column; gap: 4px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; opacity: 0; pointer-events: none; transition: .22s; z-index: 60; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.skeleton { height: 220px; border-radius: var(--r); background: linear-gradient(90deg, var(--soft), var(--surface), var(--soft)); background-size: 200% 100%; animation: sh 1.2s infinite linear; }
@keyframes sh { to { background-position: -200% 0; } }
.notice { padding: 14px 16px; border-radius: var(--r-s); background: var(--butter); color: var(--ink); margin: 12px 0; }

/* ---------- широкие экраны ---------- */
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .pdp { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cart { grid-template-columns: 1fr 360px; }
  .hero__in { grid-template-columns: 1.3fr 1fr; padding: 64px 0 72px; }
  .hero__art { display: block; }
  .footer__in { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 980px) {
  body { padding-bottom: 0; --tabbar-h: 0px; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .cartlink { display: grid; }
  .search { max-width: 360px; margin-left: auto; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .toast { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* на тёмной теме светлая кнопка-акцент: текст делаем тёмным для читаемости */
:root[data-theme="dark"] .btn--accent { color: #2B1A10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--accent { color: #2B1A10; } }


/* ---------- вход, оформление заказа, кабинет ---------- */
.narrow { max-width: 520px; margin: 0 auto; }
.card-form { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--green-soft); border-color: var(--green); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.code-input { text-align: center; letter-spacing: .4em; font-size: 26px !important; }
.err { padding: 12px 14px; border-radius: var(--r-s); background: #F8DDD3; color: #7A2A12; margin: 0 0 14px; }
:root[data-theme="dark"] .err { background: #4A2A20; color: #F4C9B8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { background: #4A2A20; color: #F4C9B8; } }
.checkout { display: grid; gap: 20px; padding: 8px 0 28px; }
.checkout h2 { font-size: 22px; margin: 22px 0 10px; }
.pay { display: grid; gap: 8px; }
.pay label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; min-height: 48px; }
.pay label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.pay label.off { opacity: .55; cursor: not-allowed; }
.pay input { width: 20px; height: 20px; accent-color: var(--green); }
.sumline { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 16px; }
.sumline.total { font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.sumline small { color: var(--muted); display: block; }
.order { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.order__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-d); font-size: 13px; font-weight: 600; }
.order ul { margin: 10px 0; padding-left: 20px; color: var(--muted); }
.done { text-align: center; padding: 40px 0; }
.done .big { font-size: 56px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (min-width: 720px) { .checkout { grid-template-columns: 1fr 360px; } }

/* ---------- окно владельца ---------- */
.atabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 0 -2px; scrollbar-width: thin; }
.atab { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; }
.atab.on { background: var(--green); color: #fff; border-color: var(--green); }
.aperiod { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; color: var(--muted); }
.aperiod select { padding: 8px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.abody { display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { padding: 14px 16px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
.kpi__v { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--green-d); }
.kpi__l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.kpi__s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.acard { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.acard h3 { margin: 0 0 10px; font-size: 16px; }
.chart { width: 100%; height: auto; display: block; }
.hl { display: grid; gap: 10px; }
.hl__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.hl__name { overflow-wrap: anywhere; }
.hl__bar { height: 8px; border-radius: 99px; background: var(--soft); margin-top: 4px; }
.hl__bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); }
.pre { white-space: pre-wrap; margin: 0; line-height: 1.5; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.elist { display: grid; gap: 6px; }
.erow { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
.erow:hover { border-color: var(--green); }
.edit { margin-top: 12px; display: grid; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { padding: 6px 10px; border-radius: 99px; border: 1px solid var(--green); background: var(--green-soft); color: var(--green-d); font: inherit; font-size: 13px; cursor: pointer; }
.chip--add { background: transparent; }
.found { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* =====================================================================
   Оформление v2: спокойный, «бумажный», семейный стиль + живые детали
   ===================================================================== */
body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  font-size: 17px; line-height: 1.6;
}
body.noscroll { overflow: hidden; }
.ico { display: inline-flex; line-height: 0; }
.ico svg { display: block; }
h1, h2, h3 { letter-spacing: -.012em; }
h1 { font-weight: 600; } h2 { font-weight: 600; }
.lead { font-family: var(--serif); font-size: clamp(19px, 2.6vw, 23px); line-height: 1.5; color: var(--ink); opacity: .86; max-width: 56ch; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-bottom: 16px; }

/* --- шапка --- */
.topbar { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.menubtn { color: var(--ink); flex: none; }
.menubtn:hover, .iconbtn:hover { background: var(--soft); }
.iconbtn { display: inline-grid; place-items: center; color: var(--muted); transition: background .2s, transform .2s var(--ease); }
.iconbtn:active { transform: scale(.92); }
.brand img { border-radius: 9px; }
.brand__name { letter-spacing: .01em; }
.search { transition: box-shadow .25s, border-color .25s; background: color-mix(in srgb, var(--surface) 90%, transparent); }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent); }
.cartlink { color: var(--ink); transition: background .2s, transform .2s var(--ease); }
.cartlink:active { transform: scale(.92); }
.cartlink__n, .tabbar b { background: var(--accent); }
.cartlink.on, .topnav a.on { color: var(--green); }
.topnav a { position: relative; transition: background .2s; }
.topnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.topnav a:hover::after, .topnav a.on::after { transform: scaleX(1); }
.topnav a:hover, .topnav a.on { background: transparent; text-decoration: none; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.bump { animation: bump .45s var(--ease); }

/* --- нижнее меню --- */
.tabbar { left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 22px; padding-bottom: 0;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 12px 34px -10px rgba(40,28,10,.35); }
.tabbar a { min-height: 60px; gap: 3px; font-size: 11.5px; letter-spacing: .01em; transition: color .25s; -webkit-tap-highlight-color: transparent; }
.tabbar a .ico { position: relative; z-index: 1; transition: transform .35s var(--ease); }
.tabbar a::before { content: ""; position: absolute; top: 7px; left: 50%; width: 52px; height: 30px; border-radius: 99px; background: var(--green-soft); transform: translateX(-50%) scale(.4); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
.tabbar a.on::before { transform: translateX(-50%) scale(1); opacity: 1; }
.tabbar a.on .ico { transform: translateY(-1px) scale(1.06); }
.tabbar a:active .ico { transform: scale(.88); }
.tabbar a.on { color: var(--green); font-weight: 600; }
.tabbar b { top: 7px; left: calc(50% + 8px); z-index: 2; }
body { padding-bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); border-radius: 12px; box-shadow: var(--shadow); }

/* --- боковое меню --- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(30,22,10,.45); opacity: 0; transition: opacity .28s; backdrop-filter: blur(2px); }
.scrim.on { opacity: 1; }
.drawer { position: fixed; z-index: 61; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: var(--surface); border-right: 1px solid var(--line);
  transform: translateX(-102%); transition: transform .32s var(--ease); display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top)) 16px 20px; overflow-y: auto; box-shadow: 24px 0 60px -20px rgba(30,22,10,.45); }
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head .brand { font-size: 22px; }
.drawer__tag { color: var(--muted); font-family: var(--serif); font-style: italic; margin: 8px 0 18px; }
.drawer__nav { display: grid; gap: 2px; }
.drawer__item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 12px; border-radius: 12px; color: var(--ink); font: 500 17px var(--sans); background: none; border: 0; cursor: pointer; text-align: left;
  opacity: 0; transform: translateX(-12px); transition: background .2s; }
.drawer.open .drawer__item { opacity: 1; transform: none; transition: background .2s, opacity .35s var(--ease), transform .4s var(--ease); }
.drawer.open .drawer__item:nth-child(1) { transition-delay: .05s, .05s, .05s; } .drawer.open .drawer__item:nth-child(2) { transition-delay: .09s, .09s, .09s; }
.drawer.open .drawer__item:nth-child(3) { transition-delay: .13s, .13s, .13s; } .drawer.open .drawer__item:nth-child(4) { transition-delay: .17s, .17s, .17s; }
.drawer.open .drawer__item:nth-child(5) { transition-delay: .21s, .21s, .21s; } .drawer.open .drawer__item:nth-child(6) { transition-delay: .25s, .25s, .25s; }
.drawer__item:hover, .drawer__item.on { background: var(--green-soft); text-decoration: none; color: var(--green-d); }
.drawer__item .ico { color: var(--green); }
.drawer__sep { height: 1px; background: var(--line); margin: 14px 4px; }
.drawer__btn[hidden] { display: none; }
.drawer__foot { margin-top: auto; padding-top: 18px; font-size: 14px; }

/* --- кнопки --- */
.btn { border-radius: 12px; letter-spacing: .01em; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 14px -8px rgba(30,60,40,.6);
  transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 20px -8px rgba(30,60,40,.55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { box-shadow: none; } .btn--ghost:hover { box-shadow: none; }
.btn--accent { box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 6px 14px -8px rgba(120,50,20,.7); }

/* --- главная --- */
.hero { background: radial-gradient(120% 140% at 85% 0%, #3C6B4C 0%, #2B5139 45%, #20402D 100%); color: #F4EBD5; border-radius: 0 0 28px 28px; box-shadow: 0 20px 40px -24px rgba(20,40,25,.7); }
.hero::before, .hero::after { display: none; }
.hero__in { padding: 48px 0 56px; }
.hero h1 { color: #FBF5E4; font-weight: 600; max-width: 18ch; }
.hero p { color: #F4EBD5; opacity: .86; }
.hero .btn--ghost { color: #F4EBD5; border-color: rgba(244,235,213,.55); } .hero .btn--ghost:hover { background: rgba(244,235,213,.12); }
.hero .btn--accent { background: #D8A24E; color: #2A1D08; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); } .hero .btn--accent:hover { background: #E4B15F; }
.hero__text > * { animation: rise .8s var(--ease) both; }
.hero__text > *:nth-child(2) { animation-delay: .08s; } .hero__text > *:nth-child(3) { animation-delay: .16s; } .hero__text > *:nth-child(4) { animation-delay: .24s; }
.hero__art { display: none; position: relative; justify-self: end; width: min(320px, 100%); aspect-ratio: 4 / 5; border: 0; background: none; border-radius: 0; overflow: visible; }
.hero__arch { position: absolute; inset: 0; border-radius: 999px 999px 18px 18px; background: linear-gradient(160deg, rgba(244,235,213,.16), rgba(244,235,213,.04)); border: 1px solid rgba(244,235,213,.28); }

.hero__art .hero__sprig { position: absolute; width: 62%; height: auto; left: 20%; bottom: 6%; object-fit: contain; opacity: .9; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.hero__art .hero__sprig--b { width: 38%; left: 8%; bottom: 6%; opacity: .45; animation-duration: 9s; animation-delay: -3s; transform: scaleX(-1); }
@keyframes sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.4deg); } }
.hero__sprig--b { animation-name: sway2; } @keyframes sway2 { 0%, 100% { transform: scaleX(-1) rotate(-3deg); } 50% { transform: scaleX(-1) rotate(3deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.section { padding: 30px 0; }
.section__head h2 { position: relative; }
.section__head h2::after { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin-top: 8px; border-radius: 2px; }
.more { font-size: 15px; }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick__item { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.quick__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); text-decoration: none; }
.quick__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.quick__ic { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); transition: transform .4s var(--ease), background .3s; }
.quick__item:hover .quick__ic { transform: rotate(-8deg) scale(1.08); background: var(--green); color: #fff; }
.quick__t { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.15; }
.quick__s { font-size: 13px; color: var(--muted); line-height: 1.3; }

.tile { background: var(--surface) !important; border-radius: var(--r); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.tile::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); opacity: .8; transition: top .3s var(--ease), bottom .3s var(--ease); }
.tile:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tile:hover::before { top: 8px; bottom: 8px; }
.tile__icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 26px; border-radius: 50%; background: var(--soft); }
.tile__t { font-weight: 600; }

.person { border-radius: var(--r); transition: transform .3s var(--ease), box-shadow .3s; }
.person:hover { transform: translateY(-3px); }
.avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }

.values { gap: 12px; }
.value { border-radius: var(--r); position: relative; }
.value__i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--butter); color: var(--green-d); font-size: 26px; margin-bottom: 8px; }

/* --- карточки товаров --- */
.card { border-radius: var(--r); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--green) 30%, var(--line)); }
.card__media { position: relative; overflow: hidden; }
.card__img { aspect-ratio: 1 / 1; }
.card__img img { transition: transform .7s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__img .ph { color: var(--green); }
.card__name { font-family: var(--serif); font-weight: 600; font-size: 17px; }
.price { font-family: var(--serif); font-size: 20px; color: var(--green-d); }
.add { border-radius: 10px; transition: background .2s, transform .15s var(--ease); }
.add:active { transform: scale(.96); }
@keyframes done { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.add.done { animation: done .6s ease-out; }

.heart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(6px); color: var(--muted); box-shadow: 0 2px 8px rgba(40,28,10,.18); transition: transform .2s var(--ease), color .2s, background .2s; }
.heart:hover { color: var(--accent); }
.heart svg { transition: fill .2s; }
.heart[aria-pressed="true"] { color: var(--accent); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
.heart.pop { animation: pop .45s var(--ease); }
.heart--lg { position: static; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--surface); box-shadow: none; }
.empty__ic { color: var(--accent); opacity: .8; margin-bottom: 10px; display: flex; justify-content: center; }

/* --- текстовые страницы --- */
.prose { max-width: 720px; padding: 10px 0 24px; }
.prose h1 { margin-top: 12px; }
.prose__sec { padding: 22px 0 4px; border-top: 1px solid var(--line); margin-top: 22px; }
.prose__sec:first-of-type { border-top: 0; margin-top: 8px; }
.prose__sec h2 { font-size: clamp(22px, 3.4vw, 28px); }
.prose p { font-size: 18px; }
.zones { display: grid; gap: 10px; margin: 14px 0 6px; }
.zone { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); }
.zone__n { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.zone__p { margin: 2px 0 4px; } .zone__p strong { font-size: 20px; color: var(--green-d); font-family: var(--serif); }
.botcards { display: grid; gap: 10px; margin: 12px 0; }
.botcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.botcard h3 { margin: 0; flex: 1; }
.botcard__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }

/* --- появление при прокрутке и смена страниц --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in .quick__item, .reveal.in .tile, .reveal.in .value, .reveal.in .card, .reveal.in .person { animation: rise .7s var(--ease) both; }
.reveal.in .quick__item:nth-child(2), .reveal.in .tile:nth-child(2), .reveal.in .value:nth-child(2), .reveal.in .card:nth-child(2), .reveal.in .person:nth-child(2) { animation-delay: .06s; }
.reveal.in .quick__item:nth-child(3), .reveal.in .tile:nth-child(3), .reveal.in .value:nth-child(3), .reveal.in .card:nth-child(3), .reveal.in .person:nth-child(3) { animation-delay: .12s; }
.reveal.in .quick__item:nth-child(4), .reveal.in .tile:nth-child(4), .reveal.in .value:nth-child(4), .reveal.in .card:nth-child(4), .reveal.in .person:nth-child(4) { animation-delay: .18s; }
.reveal.in .quick__item:nth-child(5), .reveal.in .tile:nth-child(5), .reveal.in .card:nth-child(5), .reveal.in .person:nth-child(5) { animation-delay: .24s; }
main.enter { animation: pageIn .45s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.grid .card { animation: rise .6s var(--ease) both; }
.grid .card:nth-child(2) { animation-delay: .04s; } .grid .card:nth-child(3) { animation-delay: .08s; } .grid .card:nth-child(4) { animation-delay: .12s; }
.grid .card:nth-child(n+5) { animation-delay: .16s; }

.footer { background: #20402D; color: #E9DFC4; border-top: 0; margin-top: 56px; padding-bottom: calc(50px + var(--tabbar-h)); }
.footer a, .footer .muted { color: #E9DFC4; opacity: .85; } .footer__brand { color: #FBF5E4; }
.footer a:hover { opacity: 1; }

@media (min-width: 720px) {
  .quick { grid-template-columns: repeat(5, 1fr); }
  .quick__item { grid-template-columns: 1fr; row-gap: 6px; text-align: left; padding: 18px; }
  .quick__ic { grid-row: auto; }
  .quick__item:last-child:nth-child(odd) { grid-column: auto; }
  .hero__art { display: block; }
  .botcards { grid-template-columns: repeat(3, 1fr); } .botcard { flex-direction: column; text-align: center; padding: 22px 14px; } .botcard h3 { flex: none; }
}
@media (min-width: 980px) {
  body { padding-bottom: 0; }
  .menubtn { display: none; }
  .footer { padding-bottom: 36px; }
  .cartlink { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__sprig { animation: none !important; }
}
.tabbar a span.tab__l { font-size: 11.5px; line-height: 1.1; }
.tabbar a .ico { font-size: 0; }
.eyebrow { font-size: 11px; letter-spacing: .12em; line-height: 1.4; }
.hero p { font-size: 17px; }
.quick__t { font-size: 16px; } .quick__item { padding: 12px; }
@media (min-width: 720px) { .hero p { font-size: 19px; } .eyebrow { font-size: 12px; letter-spacing: .16em; } }
main:focus, main:focus-visible { outline: none; }
.drawer { box-shadow: none; visibility: hidden; transition: transform .32s var(--ease), visibility 0s .32s; }
.drawer.open { box-shadow: 24px 0 60px -20px rgba(30,22,10,.45); visibility: visible; transition: transform .32s var(--ease), visibility 0s; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* --- профиль, окно, блок «боты» во входе --- */
.profile { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.profile__ava { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 600 28px var(--serif); grid-row: span 2; }
.profile__name { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.profile__line { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.profile__line .ico { color: var(--green); }
.profile__info { display: grid; gap: 3px; }
.profile__edit { grid-column: 1 / -1; margin-top: 10px; }
.modal__overlay { position: fixed; inset: 0; z-index: 80; background: rgba(30,22,10,.5); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); animation: fadeIn .2s; }
.modal { width: min(460px, 100%); max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 18px; padding: 24px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); transform: translateY(16px) scale(.97); opacity: 0; transition: transform .28s var(--ease), opacity .25s; }
.modal.on { transform: none; opacity: 1; }
.modal__title { font-size: 24px; margin-bottom: 14px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.notice--err { background: #F4D9CF; color: #5A1F0E; } 
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.botsbox { margin-top: 18px; padding: 18px; border-radius: var(--r); background: var(--green-soft); }
.botsbox h3 { font-size: 18px; margin-bottom: 4px; }
.botsbox__row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.botsbox__row .btn { min-height: 42px; padding: 0 16px; }
:root[data-theme="dark"] .notice--err { background: #4A261B; color: #F6D8CC; }

/* --- админка: заказы и клиенты --- */
.olist { display: grid; gap: 10px; }
.ocard { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s; }
.ocard:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.ocard--warn { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ocard__top { display: flex; align-items: baseline; gap: 10px; } .ocard__sum { margin-left: auto; font-family: var(--serif); font-size: 18px; color: var(--green-d); }
.ocard__name { font-weight: 500; }
.ocard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge--soft { background: var(--soft); color: var(--muted); } .badge--warn { background: #F4D9CF; color: #7A2A10; }
.acard textarea, .acard select, .acard input:not([type=checkbox]), .modal textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }

/* ---- Сводка и аналитика (этап 6) ---- */
.delta { font-weight: 700; color: var(--muted); } .delta--up { color: var(--green); } .delta--down { color: var(--accent); }
.big { margin: 0 0 6px; font: 600 22px var(--serif); }
.progress { height: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--butter)); border-radius: 999px; transition: width .8s var(--ease); }
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-s); background: var(--soft); border-left: 4px solid var(--line); }
.alert a { color: var(--ink); }
.alert__i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--surface); }
.alert--bad { border-left-color: var(--accent); } .alert--warn { border-left-color: #C9962B; } .alert--good { border-left-color: var(--green); } .alert--info { border-left-color: var(--line); }
.alert--bad .alert__i { color: var(--accent); } .alert--good .alert__i { color: var(--green); }
.digest { background: linear-gradient(180deg, var(--green-soft), var(--surface)); }
.digest__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.digest__top h3 { margin: 0; }
.digest__head { font: 600 19px/1.4 var(--serif); margin: 10px 0; }
.digest__list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.pairs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pairlist { display: grid; gap: 14px; }
.pair { padding-bottom: 12px; border-bottom: 1px dashed var(--line); } .pair:last-child { border-bottom: 0; }
.pair__names { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.pair__plus { color: var(--accent); font-weight: 800; }
.heat { display: grid; grid-template-columns: 28px repeat(24, 1fr); gap: 2px; align-items: center; font-size: 11px; color: var(--muted); overflow-x: auto; }
.heat__c { display: block; aspect-ratio: 1; min-width: 10px; border-radius: 3px; background: color-mix(in srgb, var(--green) calc(var(--a) * 100%), var(--soft)); }
.heat__h, .heat__d { text-align: center; }
.ins > summary { cursor: pointer; font: 600 17px var(--serif); margin-bottom: 10px; }
.ins h4 { margin: 18px 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.segs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.seg { padding: 12px; border-radius: var(--r-s); background: var(--soft); }
.seg__n { font: 600 26px var(--serif); color: var(--green); } .seg__t { font-weight: 700; margin-bottom: 4px; }
.draft { display: grid; gap: 10px; }
.sec { margin: 18px 0 4px; font: 600 19px var(--serif); }

/* ---- КБЖУ и подбор (этап 7) ---- */
.card__kbju { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.card__kbju b { color: var(--green); font-weight: 700; }
.nut { margin: 18px 0; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s, none); }
.nut__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.nut__head h3 { margin: 0; }
.nut__per { font-size: 14px; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 2px 10px; }
.nut__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nut__t { display: grid; justify-items: center; gap: 0; padding: 12px 4px; border-radius: var(--r-s); background: var(--soft); text-align: center; border-top: 4px solid var(--line); }
.nut__t strong { font: 600 24px/1.1 var(--serif); }
.nut__t small { font-size: 12px; color: var(--muted); }
.nut__t span { font-size: 13px; margin-top: 2px; }
.nut__t.nut__k { border-top-color: var(--accent); } .nut__t.nut__p { border-top-color: var(--green); } .nut__t.nut__f { border-top-color: #C9962B; } .nut__t.nut__c { border-top-color: #7B8FA6; }
.nut__bar { display: flex; height: 10px; margin: 12px 0 8px; border-radius: 999px; overflow: hidden; gap: 2px; }
.nut__bar i { display: block; min-width: 6px; transition: flex .8s var(--ease); }
.nut__bar .nut__p { background: var(--green); } .nut__bar .nut__f { background: #C9962B; } .nut__bar .nut__c { background: #7B8FA6; }
.facts { display: grid; gap: 12px; margin: 12px 0 18px; }
.facts__r h4 { margin: 0 0 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
.facts__r p { margin: 0; }
.chip--static { cursor: default; min-height: 32px; font-size: 14px; background: var(--green-soft); }
.pick { margin: 0 0 22px; }
.pick > .btn { width: 100%; justify-content: center; }
.filt { margin-top: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.filt__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 22px; }
.filt h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.filt__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; }
.filt__sort { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.filt__sort select, .filt input[type=text] { min-height: 44px; border-radius: var(--r-s); border: 1px solid var(--line); padding: 0 12px; background: var(--bg, #fff); font: inherit; color: var(--ink); }
.filt input[type=text] { margin-top: 8px; width: 100%; }
.pick__res { margin-top: 16px; }
.rng__top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.rng__v { font-weight: 400; color: var(--green); font-size: 14px; }
.rng__track { position: relative; height: 34px; margin-top: 4px; }
.rng__bg, .rng__fill { position: absolute; top: 15px; height: 4px; border-radius: 4px; }
.rng__bg { left: 0; right: 0; background: var(--line); }
.rng__fill { background: var(--green); }
.rng__track input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.rng__track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: grab; }
.rng__track input[type=range]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--green); cursor: grab; }
.rng__track input[type=range]::-webkit-slider-runnable-track { background: none; }
.rng__track input[type=range]::-moz-range-track { background: none; }
@media (max-width: 520px) { .nut__tiles { grid-template-columns: repeat(2, 1fr); } }

.footer__social { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; }
.footer__social a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { font-size: 13px; }
.brand__logo { object-fit: contain; border-radius: 8px; }
.faq { display: grid; gap: 10px; margin: 18px 0; }
.faq__i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 16px; }
.faq__i summary { cursor: pointer; padding: 14px 0; font: 600 17px var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__i summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq__i[open] summary::after { content: '−'; }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i p { margin: 0 0 14px; }

/* этап 8: диалоги с менеджером */
.chatlog { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; padding: 12px; margin: 12px 0; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg, #f4f4f4); border: 1px solid var(--line); align-self: flex-start; }
.bubble small { display: block; margin-top: 4px; }
.bubble--staff { align-self: flex-end; background: var(--accent, #2f7d4f); color: #fff; border-color: transparent; }
.bubble--staff small { color: rgba(255,255,255,.8); }
.bubble--system { align-self: center; font-size: 13px; opacity: .8; }

/* ====== этап 9: зелёный + красный ====== */
:root {
  --accent: #C8372D; --accent-d: #A32A22; --red-soft: #FBE4DF; --red-ink: #8E1F18;
  --green: #2F5A3F; --green-d: #234531; --green-soft: #E1E8D3;
}
:root[data-theme="dark"] { --accent: #EE6B5C; --accent-d: #F58A7D; --red-soft: #3A2220; --red-ink: #F6A99F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #EE6B5C; --accent-d: #F58A7D; --red-soft: #3A2220; --red-ink: #F6A99F; } }
a:hover { color: var(--accent-d); }
.btn--accent { background: var(--accent); box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 8px 18px -8px rgba(200,55,45,.75); }
.btn--accent:hover { background: var(--accent-d); box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 12px 22px -8px rgba(200,55,45,.7); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.price { color: var(--accent-d); }
.price small { color: var(--muted); }
.topbar { border-bottom: 1px solid var(--line); box-shadow: 0 2px 0 -1px color-mix(in srgb, var(--accent) 55%, transparent); }
.eyebrow { color: #FFB8AE; }
.hero { background: radial-gradient(90% 120% at 100% 100%, rgba(200,55,45,.55) 0%, rgba(200,55,45,0) 55%), radial-gradient(120% 140% at 85% 0%, #3C6B4C 0%, #2B5139 45%, #20402D 100%); }
.hero .btn--ghost { color: #F4EBD5; border-color: rgba(244,235,213,.55); } .hero .btn--ghost:hover { background: rgba(244,235,213,.14); }
.tabbar a.on { color: var(--accent-d); } .tabbar a::before { background: var(--red-soft); }
.topnav a::after { background: var(--accent); }
.badge { background: var(--green-soft); color: var(--green-d); }
.badge--soft { background: var(--soft); color: var(--muted); }
.quick__item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.quick__ic { background: var(--red-soft); color: var(--accent-d); }
.quick__item:hover .quick__ic { background: var(--accent); color: #fff; }
.quick__item:nth-child(even) .quick__ic { background: var(--green-soft); color: var(--green); }
.quick__item:nth-child(even):hover .quick__ic { background: var(--green); color: #fff; }
.section__head .more { color: var(--accent-d); }
.chip[aria-pressed="true"], .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rng__v { color: var(--accent-d); }
input[type=range] { accent-color: var(--accent); }
.drawer__item.on { background: var(--red-soft); color: var(--red-ink); }
@media (min-width: 880px) { .quick { grid-template-columns: repeat(6, 1fr); } }

/* кнопка «Фильтры» — небольшая, справа */
.pick__bar { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.pick > .btn { width: auto; }
.pick__btn { gap: 6px; padding: 0 14px 0 12px; border-color: var(--line); color: var(--ink); background: var(--surface); }
.pick__btn:hover { background: var(--red-soft); border-color: var(--accent); color: var(--red-ink); }
.pick__btn[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* постоянный заказ: промо и описание */
.promo { display: grid; gap: 14px; align-items: center; padding: 22px; border-radius: 22px; color: #fff; background: radial-gradient(120% 160% at 0% 0%, #3C6B4C 0%, #2B5139 55%, #234531 100%); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.promo::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(200,55,45,.5); filter: blur(2px); }
.promo > * { position: relative; z-index: 1; }
.promo__ic { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: var(--accent); color: #fff; flex: none; box-shadow: 0 8px 18px -8px rgba(200,55,45,.9); }
.promo h2 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.promo p { margin: 0; opacity: .92; max-width: 56ch; }
@media (min-width: 760px) { .promo { grid-template-columns: auto 1fr auto; padding: 26px 30px; gap: 22px; } }
.sintro { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 22px; }
.sintro__top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.sintro h2 { margin: 0 0 6px; font-size: 24px; } .sintro p { margin: 0; }
.steps { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 12px; }
.steps__i { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.steps__i p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.steps__n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; }
.steps__i:nth-child(2) .steps__n { background: var(--accent); }
.sintro__note { padding: 10px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green-d); font-size: 15px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.sub { font-size: 22px; margin: 26px 0 12px; }
.order--pick .btn { margin-top: 6px; }
.hero .btn--accent { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 22px -8px rgba(200,55,45,.85); }
.hero .btn--accent:hover { background: #D9453A; color: #fff; }

/* ---------- этап 9: граммовки, счётчик, чаты, акции, повтор заказа ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
:root[data-theme="dark"] .chip.on { color: #14210f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { color: #14210f; } }
.buy { display: block; }
.buy .add { width: 100%; }
.stepper, .qty { display: inline-flex; align-items: center; justify-content: space-between; gap: 4px; border-radius: 12px; background: var(--green-soft); border: 1px solid var(--green); }
.stepper { width: 100%; min-height: 44px; padding: 0 4px; }
.stepper button, .qty button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--green-d); font: 700 22px var(--sans); cursor: pointer; }
.stepper button:hover, .qty button:hover { background: rgba(47,90,63,.14); }
.stepper b, .qty b { min-width: 28px; text-align: center; font-size: 17px; }
.qty { min-height: 36px; } .qty button { width: 34px; height: 34px; }
.card__foot { gap: 8px; }

.chatlist { display: flex; flex-direction: column; gap: 10px; }
.chatrow { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.chatrow:hover { text-decoration: none; border-color: var(--green); }
.chatrow__ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--green-soft); color: var(--green-d); }
.chatrow__ic--promos { background: #F8DDD3; color: #9C2F25; }
.chatrow__ic--news { background: var(--butter); color: #6a5a1f; }
.chatrow__ic--support { background: #DDE7F3; color: #2b4a6b; }
.chatrow__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chatrow__p { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatrow__m { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.chatrow__at { font-size: 12px; color: var(--muted); }
.chatrow__n { background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 8px; font: 700 12px/1 var(--sans); }
.chathint { font-size: 14px; }
.chatpage { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.chathead { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.chathead .iconbtn svg { transform: rotate(180deg); }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 290px); min-height: 260px; overflow-y: auto; padding: 10px 2px; }
.thread__empty { margin: auto; text-align: center; max-width: 32ch; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; word-wrap: break-word; }
.msg--shop { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 6px; }
:root[data-theme="dark"] .msg--me { color: #14210f; }
.msg__t { font-weight: 700; margin-bottom: 2px; }
.msg__b { white-space: pre-wrap; }
.msg__a { display: inline-block; margin-top: 6px; font-weight: 600; }
.msg__at { font-size: 11px; opacity: .65; text-align: right; margin-top: 4px; }
.composer { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: calc(var(--tabbar-h) + 8px); }
.composer textarea { flex: 1; min-height: 48px; max-height: 140px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; resize: none; }
.composer .btn { min-width: 52px; padding: 0; }

.repeat, .suggest { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; }
.repeat__ic, .suggest__ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--green-soft); color: var(--green-d); flex: none; }
.suggest { background: linear-gradient(120deg, #FBE9E3, var(--surface)); border-color: #E9C2B5; }
.suggest__ic { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .suggest { background: var(--surface); }
.repeat__t, .suggest__t { flex: 1; min-width: 220px; }
.repeat h2, .suggest h2 { margin: 0 0 4px; font-size: 22px; }
.repeat p, .suggest p { margin: 0; color: var(--muted); }
.rep { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rep__i { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rep__n small { color: var(--muted); } .rep__p { font-weight: 600; min-width: 70px; text-align: right; }
@media (max-width: 480px) { .rep__i { grid-template-columns: 1fr auto auto; } .rep__p { grid-column: 1; text-align: left; } }

.promos { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; }
.pcard { flex: 0 0 min(88%, 460px); scroll-snap-align: start; padding: 20px; border-radius: 22px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.pcard--0 { background: radial-gradient(120% 140% at 0% 0%, #D4493A 0%, #A8281F 70%); }
.pcard--1 { background: radial-gradient(120% 140% at 0% 0%, #3C6B4C 0%, #234531 75%); }
.pcard--2 { background: radial-gradient(120% 140% at 0% 0%, #C9772F 0%, #8E4A1B 75%); }
.pcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.12); }
.pcard > * { position: relative; z-index: 1; }
.pcard h3 { color: #fff; margin: 10px 0 6px; font-size: 24px; }
.pcard p { margin: 0 0 10px; opacity: .93; }
.pcard__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.pcard__tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 700; }
.pcard__left { opacity: .9; }
.pcard__code { display: inline-block; margin: 2px 0 12px; padding: 8px 14px; border-radius: 12px; border: 2px dashed rgba(255,255,255,.7); background: transparent; color: #fff; font: 500 15px var(--sans); cursor: pointer; }
.pcard__code b { letter-spacing: .08em; }
.pcard .rail { margin-top: 6px; }
.pcard .card { color: var(--ink); }
.aperiod { flex-wrap: wrap; } .aperiod input[type=date] { padding: 7px 10px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
[hidden] { display: none !important; }


/* =====================================================================
   ЭТАП 10 — новый вид под логотип aflora: свежий зелёный, красно-оранжевый
   «цветок», округлый шрифт Nunito, воздух и мягкие тени. Цвета — переменные ниже.
   ===================================================================== */
:root {
  --bg: #F6F8F1; --surface: #FFFFFF; --soft: #ECF1E4; --line: #E2E8D8;
  --ink: #1A2218; --muted: #66705F;
  --green: #2F7D32; --green-d: #1E5C25; --green-soft: #E3F0DC;
  --accent: #D8381F; --accent-d: #B72A12; --butter: #FBE9B7;
  --grad-flower: linear-gradient(135deg, #F0662B 0%, #D8381F 48%, #B8183A 100%);
  --grad-leaf: linear-gradient(135deg, #3E9A3F 0%, #2F7D32 55%, #1E5C25 100%);
  --shadow: 0 1px 2px rgba(26,40,20,.05), 0 12px 32px -12px rgba(26,50,20,.18);
  --shadow-lg: 0 2px 4px rgba(26,40,20,.06), 0 24px 48px -16px rgba(26,50,20,.28);
  --r: 20px; --r-s: 14px;
  --serif: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0F1510; --surface: #18211A; --soft: #1F2A21; --line: #2B3A2D;
  --ink: #EEF3E8; --muted: #9CA997;
  --green: #7FCB7E; --green-d: #A3DDA1; --green-soft: #1F3322;
  --accent: #F2704A; --accent-d: #F78A68; --butter: #4A4125;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F1510; --surface: #18211A; --soft: #1F2A21; --line: #2B3A2D;
  --ink: #EEF3E8; --muted: #9CA997;
  --green: #7FCB7E; --green-d: #A3DDA1; --green-soft: #1F3322;
  --accent: #F2704A; --accent-d: #F78A68; --butter: #4A4125;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
} }
body { font-size: 16.5px; font-weight: 500; letter-spacing: .005em; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 3vw, 30px); }

/* цены — чёрные (цвет текста), без красного */
.price, .card .price, .pcard .price, .zone__p strong, .ocard__sum, .sumline strong, .total strong { color: var(--ink); font-family: var(--sans); font-weight: 800; }
.price small { color: var(--muted); }

/* шапка */
.topbar { background: color-mix(in srgb, var(--surface) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: none; }
.brand { font-family: var(--sans); font-weight: 900; letter-spacing: -.03em; font-size: 23px; color: var(--green-d); }
.brand img { height: 34px; width: auto; border-radius: 0; }
.searchbox, .topbar input[type=search], .topbar input[type=text] { border-radius: 999px; background: var(--soft); border: 1px solid transparent; }

/* кнопки: пилюли, у главной — градиент цветка */
.btn { border-radius: 999px; font-weight: 800; letter-spacing: .01em; min-height: 50px; padding: 0 26px; box-shadow: none; border-width: 2px; transition: transform .15s var(--ease), box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--grad-flower); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -10px rgba(216,56,31,.7); }
.btn--accent:hover { background: var(--grad-flower); filter: brightness(1.06); box-shadow: 0 14px 26px -10px rgba(216,56,31,.75); }
.btn:not(.btn--accent):not(.btn--ghost) { background: var(--grad-leaf); color: #fff; box-shadow: 0 10px 22px -12px rgba(30,92,37,.7); }
.btn--ghost { background: transparent; color: var(--green-d); border-color: color-mix(in srgb, var(--green) 55%, transparent); }
.btn--ghost:hover { background: var(--green-soft); }
:root[data-theme="dark"] .btn--accent, :root[data-theme="dark"] .btn:not(.btn--ghost) { color: #fff; }
.card .add { border-radius: 999px; min-height: 44px; font-weight: 800; background: var(--grad-flower); color: #fff; border: 0; box-shadow: 0 8px 18px -10px rgba(216,56,31,.8); }

/* главный экран: тот же любимый градиент, но свежее — зелёный лист + тёплое «свечение цветка» */
.hero { background:
    radial-gradient(60% 80% at 100% 100%, rgba(240,102,43,.55) 0%, rgba(240,102,43,0) 62%),
    radial-gradient(70% 90% at 0% 0%, #57B04F 0%, rgba(87,176,79,0) 60%),
    linear-gradient(150deg, #2F7D32 0%, #1E5C25 55%, #174A1F 100%);
  color: #fff; border-radius: 0 0 40px 40px; box-shadow: 0 28px 50px -30px rgba(23,74,31,.8); }
.hero::before { display: block; content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -120px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero::after { display: block; content: ""; position: absolute; width: 200px; height: 200px; left: -70px; bottom: -90px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero h1 { color: #fff; font-weight: 900; font-size: clamp(30px, 6.4vw, 52px); line-height: 1.05; letter-spacing: -.03em; max-width: 16ch; }
.hero p { color: #fff; opacity: .92; }
.hero .eyebrow { color: #FFD9A8; }
.hero .btn--accent { background: #fff; color: #B72A12; box-shadow: 0 14px 28px -14px rgba(0,0,0,.5); }
.hero .btn--accent:hover { background: #fff; filter: none; transform: translateY(-1px); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.2); }
.hero__arch { background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.04)); border-color: rgba(255,255,255,.35); }

/* плитки на главной */
.quick, .tile { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.quick:hover, .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.quick__t, .tile__t { font-family: var(--sans); font-weight: 800; }
.quick__ic, .tile__ic { background: var(--green-soft); color: var(--green-d); border-radius: 16px; }
.quick:nth-child(3n+2) .quick__ic, .tile:nth-child(3n+2) .tile__ic { background: #FBE3DB; color: #B72A12; }
.quick:nth-child(3n) .quick__ic, .tile:nth-child(3n) .tile__ic { background: var(--butter); color: #7A5A12; }

/* карточки товара */
.card { border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__img { background: var(--soft); }
.card__name { font-family: var(--sans); font-weight: 800; font-size: 16px; color: var(--ink); }
.chip { font-weight: 700; border-width: 1.5px; }
.chip.on { background: var(--grad-leaf); border-color: transparent; color: #fff; }
.stepper { background: var(--green-soft); border-color: transparent; border-radius: 999px; }
.stepper button { border-radius: 999px; color: var(--green-d); }

/* нижнее меню — «стеклянная» капсула */
.tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); border-radius: 26px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: 0 18px 40px -18px rgba(20,50,20,.45); }
.tabbar a { font-weight: 700; font-size: 11.5px; }
.tabbar a.on { color: var(--green-d); }
.tabbar a.on > span:first-child, .tabbar a.on svg { color: var(--accent); }

/* блоки: аккуратнее и воздушнее */
.section { margin-top: 38px; }
.section__head h2 { margin-bottom: 14px; }
.card-form, .ocard, .order, .acard, .kpi { border-radius: var(--r); box-shadow: var(--shadow); }
input, select, textarea { border-radius: 14px; }
.notice { border-radius: 16px; }
.badge { font-weight: 800; }
.chatrow, .repeat, .suggest { border-radius: 22px; }
.suggest { background: linear-gradient(120deg, #FFF1EB, var(--surface) 70%); border-color: #F5CDBF; }
.repeat { background: linear-gradient(120deg, var(--green-soft), var(--surface) 70%); border-color: color-mix(in srgb, var(--green) 25%, var(--line)); }
.pcard { border-radius: 26px; }
.pcard--0 { background: radial-gradient(120% 140% at 0% 0%, #F0662B 0%, #C42A1D 55%, #A8183A 100%); }
.pcard--1 { background: radial-gradient(120% 140% at 0% 0%, #4FA84A 0%, #2F7D32 55%, #1E5C25 100%); }
.pcard--2 { background: radial-gradient(120% 140% at 0% 0%, #F2A33A 0%, #D9772A 60%, #B5541C 100%); }

.brand__logo { height: 38px; width: auto; border-radius: 0; object-fit: contain; }
.brand--logo .brand__name { display: none; }
.drawer__head .brand__logo { height: 44px; }
:root[data-theme="dark"] .brand__logo { background: #fff; padding: 3px 8px; border-radius: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__logo { background: #fff; padding: 3px 8px; border-radius: 10px; } }
.card__img, .card__media { background: linear-gradient(160deg, var(--green-soft), #F4F8EE); }
.card__img .ph { color: var(--green); opacity: .5; }
.hero { background:
    radial-gradient(46% 58% at 96% 104%, rgba(255,112,48,.95) 0%, rgba(240,80,40,.55) 38%, rgba(240,80,40,0) 72%),
    radial-gradient(70% 90% at 0% 0%, #5CB854 0%, rgba(92,184,84,0) 60%),
    linear-gradient(150deg, #2F7D32 0%, #1E5C25 60%, #19501F 100%); }

/* чаты: финальный вид */
.chatrow { transition: transform .15s var(--ease), box-shadow .2s; }
.chatrow:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.chatrow--new { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.chatrow--new strong { color: var(--ink); }
.chatrow__ic { border-radius: 18px; }
.chatrow__ic--orders { background: var(--green-soft); color: var(--green-d); }
.chatrow__mute { color: var(--muted); }
.chatnote { font-size: 14px; text-align: center; }
.chatlist .linkbtn { align-self: flex-end; }
.chathead { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px 10px; box-shadow: var(--shadow); }
.chathead__t { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.chathead__t small { color: var(--muted); font-weight: 600; }
.chathead__ic { width: 40px; height: 40px; border-radius: 14px; flex: none; display: grid; place-items: center; }
.chathead .iconbtn svg { transform: none; }
.chathead__back svg { transform: rotate(180deg) !important; }
.thread { padding: 12px 2px 4px; }
.daysep { align-self: center; margin: 6px 0; }
.daysep span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }
.msg { border-radius: 20px; box-shadow: 0 1px 2px rgba(20,40,20,.05); }
.msg--shop { border-bottom-left-radius: 6px; }
.msg--me { background: var(--grad-leaf); border-bottom-right-radius: 6px; color: #fff; }
.msg--orders { border-left: 4px solid var(--green); }
.msg--promos { border-left: 4px solid var(--accent); background: linear-gradient(120deg, #FFF3EE, var(--surface)); }
.msg--news { border-left: 4px solid #E2A93B; }
.msg__a { padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-d); font-weight: 800; font-size: 14px; }
.msg__a:hover { text-decoration: none; filter: brightness(.97); }
.msg__ok { display: inline-flex; vertical-align: middle; opacity: .9; }
.msg__ok svg { stroke-width: 2.2; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { padding: 9px 14px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--green) 45%, var(--line)); background: var(--surface); color: var(--green-d); font: 700 14px var(--sans); cursor: pointer; }
.qchip:hover { background: var(--green-soft); }
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 6px; box-shadow: var(--shadow); align-items: center; }
.composer textarea { border: 0; background: transparent; min-height: 40px; padding: 10px 6px; outline: 0; }
.composer .btn { min-height: 44px; width: 44px; min-width: 44px; padding: 0; }
.composer__att { color: var(--green-d); }
.chatrow, .chatrow:hover { color: var(--ink); }
.chatrow strong { color: var(--ink) !important; }
body:has(.chatpage) .footer { display: none; }
.notice { background: color-mix(in srgb, var(--butter) 55%, var(--surface)); border: 1px solid color-mix(in srgb, var(--butter) 80%, var(--line)); }
.chip[aria-pressed="true"], .chip.on { background: var(--grad-leaf); border-color: transparent; color: #fff; }
.gallery__main { background: linear-gradient(160deg, var(--green-soft), #F4F8EE); border-radius: 26px; box-shadow: var(--shadow); }
.pdp__price { color: var(--ink); font-weight: 900; }

/* подсказка установки приложения */
.inst { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto; padding: 12px 12px 12px 16px; background: var(--card, #fff); color: var(--ink); border: 1px solid var(--line, #dfe6d6); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.inst__t { flex: 1; display: grid; gap: 2px; }
.inst__t small { color: var(--muted, #667); line-height: 1.35; }

/* кнопки «В корзину» — зелёные (красный оставлен для акцентов) */
.card .add, .buy .add, .add { background: var(--grad-leaf, linear-gradient(135deg, #3B9440, #2F7D32)); color: #fff; border: 0; box-shadow: 0 8px 18px -10px rgba(47,125,50,.8); }
.card .add:hover, .buy .add:hover, .add:hover { background: #2F7D32; }
.add.is-choose { background: var(--green-soft); color: var(--green-d); border: 1px solid var(--green); box-shadow: none; }
.btn--green { background: var(--grad-leaf, linear-gradient(135deg, #3B9440, #2F7D32)); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -10px rgba(47,125,50,.75); }
.btn--green:hover { background: #2F7D32; }
