/* «Муравьиное логово» - стили сайта. Один шрифт (Manrope, без наклонного), мягкие формы 16-20 px,
   оранжевый только на кнопках и акцентах, графит для текста, тёплый бежевый фон разделов. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --fon: #ffffff;
  --bel: #ffffff;
  --bezh: #f5f0e8;
  --bezh-2: #ebe4d8;
  --liniya: #e3d9ca;
  --grafit: #221e1a;
  --tekst: #24201b;
  --tekst-2: #6d655b;
  --tekst-3: #776d62;
  --oranzh: #f09a07;
  --oranzh-2: #e08a00;
  --oranzh-fon: #f5f0e8;
  --ten-1: 0 0 0 1.5px #e3d9ca, 0 10px 30px -16px rgba(34, 30, 26, 0.25);
  --ten-2: 0 2px 6px rgba(60, 40, 15, 0.06), 0 14px 36px rgba(60, 40, 15, 0.1);
  --r: 18px;
  --r-s: 12px;
  --shir: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fon); color: var(--tekst);
  font-family: "Manrope", system-ui, sans-serif; font-weight: 500; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-style: normal;
}
em, i, cite, address { font-style: normal; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:root { color-scheme: only light; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.obertka { max-width: var(--shir); margin: 0 auto; padding: 0 24px; }
.skryto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(240, 154, 7, 0.55); outline-offset: 2px; border-radius: 8px; }

/* ---------- кнопки */
.knopka {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 0;
  background: var(--oranzh); color: #1f1a12; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.knopka:hover { background: var(--oranzh-2); }
.knopka:active { transform: translateY(1px); }
.knopka-svetl { background: var(--bel); color: var(--tekst); box-shadow: inset 0 0 0 1px var(--liniya); }
.knopka-svetl:hover { background: var(--bezh); }
.knopka-mal { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.knopka svg { width: 20px; height: 20px; flex: none; }

/* ---------- верхняя полоса (28.11: была чёрной и тяжёлой - стала светлой, едет вместе с шапкой, тоньше при прокрутке) */
.verh { background: var(--bezh); font-size: 14px; font-weight: 700; color: var(--grafit); border-bottom: 1px solid var(--liniya); }
.verh-in { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 16px; transition: height 0.25s ease; }
.verh-l, .verh-p { display: flex; align-items: center; white-space: nowrap; }
.verh-l { flex: 1; gap: 26px; max-width: 860px; }
.verh-p { gap: 12px; }
.verh-l a { position: relative; padding: 4px 0; transition: color 0.15s; }
.verh-l a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--oranzh); transform: scaleX(0); transition: transform 0.2s ease; }
.verh-l a:hover::after { transform: scaleX(1); }
.verh-chas { color: var(--tekst-2); font-weight: 600; font-size: 13.5px; }
@media (max-width: 1280px) { .verh-chas { display: none; } .verh-l { gap: 18px; } .verh { font-size: 13.5px; } }
.soc { display: flex; gap: 6px; }
.soc a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--grafit); background: var(--bel); transition: color 0.15s, background 0.15s, transform 0.15s; }
.soc a:hover { color: #fff; background: var(--grafit); transform: translateY(-1px); }
.soc svg { width: 17px; height: 17px; }
.verh .soc a { width: 28px; height: 28px; }
.soc-zv { fill: var(--bel); transition: fill 0.15s; }
.soc a:hover .soc-zv { fill: var(--grafit); }
.shapka.szhata .verh-in { height: 34px; }
/* кнопка «Муравьи» - переключатель */
.mur-kn { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 5px 0 10px; border: 0; border-radius: 14px; background: var(--bel); color: var(--grafit); font-weight: 700; font-size: 13px; transition: background 0.15s; }
.mur-kn:hover { background: #fff7e8; }
.mur-kn svg { width: 18px; height: 18px; flex: none; }
.mur-pere { position: relative; width: 30px; height: 18px; border-radius: 9px; background: var(--liniya); transition: background 0.2s; flex: none; }
.mur-pere::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(40, 25, 10, 0.25); transition: transform 0.2s cubic-bezier(.3,.7,.3,1.3); }
.mur-kn[aria-pressed="true"] .mur-pere { background: var(--oranzh); }
.mur-kn[aria-pressed="true"] .mur-pere::after { transform: translateX(12px); }
.mur-kn[aria-pressed="false"] svg { opacity: 0.45; }
.podval-mur { display: inline-flex; align-items: center; gap: 10px; }
.mur-kn-podval { background: rgba(255, 255, 255, 0.1); color: #fff; }
.mur-kn-podval:hover { background: rgba(255, 255, 255, 0.18); }
.mur-kn-podval span { display: none; }
.mur-kn-podval .mur-pere { background: rgba(255, 255, 255, 0.25); }

/* ---------- шапка */
.shapka { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--liniya); }
.shapka-in { display: flex; align-items: center; gap: 18px; height: 84px; }
.logo { display: flex; align-items: center; gap: 13px; flex: none; }
.logo img { width: 60px; height: 60px; border-radius: 50%; }
.logo b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.logo small { display: block; font-size: 13px; color: var(--tekst-2); font-weight: 600; margin-top: 2px; }
.knopka-katalog { padding: 0 20px 0 16px; }
.poisk { position: relative; flex: 1; min-width: 0; }
.poisk input {
  width: 100%; height: 48px; border: 0; border-radius: 14px; padding: 0 16px 0 46px;
  background: var(--bezh); outline: none; font-weight: 600; font-size: 15px; transition: box-shadow 0.15s, background 0.15s;
}
.poisk input:focus { background: var(--bel); box-shadow: 0 0 0 2px var(--oranzh), var(--ten-1); }
.poisk > svg { position: absolute; left: 15px; top: 14px; width: 20px; height: 20px; color: var(--tekst-3); pointer-events: none; }
.poisk-pech { position: absolute; left: 46px; top: 0; height: 48px; line-height: 48px; color: var(--tekst-3); font-size: 15px; font-weight: 600; pointer-events: none; white-space: nowrap; overflow: hidden; right: 16px; }
.poisk-pech::after { content: ""; display: inline-block; width: 1.5px; height: 18px; background: var(--tekst-3); margin-left: 2px; vertical-align: -3px; animation: kursor 1s steps(1) infinite; }
@keyframes kursor { 50% { opacity: 0; } }
.poisk-pods { position: absolute; left: 0; right: 0; top: 54px; background: var(--bel); border-radius: 16px; box-shadow: var(--ten-2); padding: 8px; display: none; z-index: 60; }
.poisk-pods.otkryto { display: block; }
.poisk-pods a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.poisk-pods a:hover, .poisk-pods a.akt { background: var(--bezh); }
.poisk-pods small { color: var(--tekst-2); font-size: 13px; }
.poisk-pods .pusto { padding: 10px 12px; color: var(--tekst-2); font-size: 14px; }
.korzina-kn { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px; background: var(--bezh); font-weight: 700; font-size: 15px; flex: none; transition: background 0.15s; }
.korzina-kn:hover { background: var(--bezh-2); }
.korzina-kn svg { width: 22px; height: 22px; }
.korzina-sch { position: absolute; left: 28px; top: 6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--oranzh); color: #1f1a12; font-size: 11.5px; font-weight: 800; line-height: 19px; text-align: center; }
.korzina-sch[data-n="0"] { display: none; }
.korzina-kn.pulse { animation: pulse 0.5s ease; }
@keyframes pulse { 40% { transform: scale(1.06); } }

/* ---------- меню каталога */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bel); border-bottom: 1px solid var(--liniya); box-shadow: 0 24px 40px rgba(60, 40, 15, 0.12); display: none; }
.mega.otkryto { display: block; }
.mega-in { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding: 22px 24px 28px; max-height: calc(100vh - 140px); overflow: auto; }
.mega-razdely { display: flex; flex-direction: column; gap: 2px; }
.mega-razdely a, .mega-razdely button { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-weight: 700; font-size: 15px; background: none; border: 0; text-align: left; }
.mega-razdely img { width: 34px; height: 34px; }
.mega-razdely .akt, .mega-razdely a:hover, .mega-razdely button:hover { background: var(--bezh); }
.mega-har { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { height: 36px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--bezh); font-weight: 700; font-size: 14px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--tekst); color: #fff; }
.mega-vidy { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 18px; }
.mega-vid { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.mega-vid:hover { background: var(--bezh); }
.mega-vid img { width: 56px; height: 44px; border-radius: 11px; object-fit: cover; background: var(--bezh); flex: none; }
.mega-vid b { display: block; font-size: 14.5px; line-height: 1.25; }
.mega-vid small { display: block; color: var(--tekst-2); font-size: 12.5px; }
.mega-vid .cena { margin-left: auto; font-weight: 800; font-size: 14px; white-space: nowrap; }
.mega-ferma { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--oranzh-fon); display: flex; align-items: center; gap: 14px; font-size: 14px; }
.mega-ferma img { width: 76px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--bel); }

/* ---------- первый экран: ваша колония */
.kol { padding: 20px 0 8px; }
.kol-scena {
  position: relative; height: clamp(560px, calc(100vh - 150px), 720px); border-radius: 26px; overflow: hidden;
  background: radial-gradient(110% 90% at 62% 42%, #ffffff 0%, var(--bezh) 70%);
  box-shadow: inset 0 0 0 1px rgba(120, 90, 50, 0.08);
}
.kol-scena canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.kol-scena canvas:active { cursor: grabbing; }
.kol-karta {
  position: absolute; left: 20px; top: 20px; width: 330px; z-index: 2;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); border-radius: 20px; padding: 22px 22px 20px; box-shadow: var(--ten-2);
}
.kol-nadz { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--tekst-2); }
.kol-nadz i { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.16); animation: zhiv 2.4s ease-in-out infinite; }
@keyframes zhiv { 50% { box-shadow: 0 0 0 7px rgba(76, 175, 80, 0.05); } }
.kol-karta h1 { font-size: 30px; margin-top: 6px; }
.kol-vid { margin-top: 12px; display: flex; flex-direction: column; }
.kol-vid b { font-size: 17px; }
.kol-vid small { font-size: 13.5px; color: var(--tekst-2); font-weight: 600; }
.kol-cifry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.kol-cifry div { background: var(--bezh); border-radius: 12px; padding: 8px 6px; text-align: center; }
.kol-cifry b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kol-cifry span { font-size: 11.5px; color: var(--tekst-2); font-weight: 600; }
.kol-sob { margin-top: 14px; min-height: 42px; font-size: 14px; line-height: 1.45; color: var(--tekst); font-weight: 600; }
.kol-sob.kol-mig { animation: mig 0.6s ease; }
@keyframes mig { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.kol-kupit { margin-top: 14px; width: 100%; }
.kol-kupit span { font-weight: 800; }
.kol-ferma-ss { display: block; margin-top: 10px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--tekst-2); }
.kol-ferma-ss:hover { color: var(--tekst); }

.kol-panel {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  pointer-events: none;
}
.kol-panel > * { pointer-events: auto; }
.kol-gr { display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-radius: 16px; padding: 5px; box-shadow: var(--ten-1); }
.kol-gr-imya { font-size: 12.5px; font-weight: 700; color: var(--tekst-2); padding: 0 8px 0 10px; white-space: nowrap; }
.kol-kn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border: 0; border-radius: 12px; background: none; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background 0.15s; }
.kol-kn:hover { background: var(--bezh); }
.kol-kn[aria-pressed="true"] { background: var(--tekst); color: #fff; }
.kol-kn:disabled { opacity: 0.38; cursor: not-allowed; }
.kol-kn svg { width: 18px; height: 18px; flex: none; }
.kol-kn-kv { width: 38px; padding: 0; justify-content: center; }
.kol-kamera { position: absolute; right: 20px; top: 20px; z-index: 2; }
details.kol-vidy { position: relative; }
details.kol-vidy summary { list-style: none; }
details.kol-vidy summary::-webkit-details-marker { display: none; }
.kol-vidy-spisok { position: absolute; bottom: 52px; left: 0; width: 320px; max-height: 380px; overflow: auto; background: var(--bel); border-radius: 18px; box-shadow: var(--ten-2); padding: 8px; }
.kol-vidy-gr { font-size: 12px; font-weight: 800; color: var(--tekst-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 10px 4px; }
.kol-vidy-p { display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 10px; padding: 7px 10px; }
.kol-vidy-p:hover { background: var(--bezh); }
.kol-vidy-p span { display: block; font-weight: 700; font-size: 14px; }
.kol-vidy-p small { display: block; font-size: 12.5px; color: var(--tekst-2); }
.kol-podsk { position: absolute; right: 22px; top: 80px; z-index: 2; font-size: 13px; font-weight: 600; color: var(--tekst-2); background: rgba(255, 255, 255, 0.75); padding: 7px 12px; border-radius: 10px; transition: opacity 0.3s; }
.kol-mini { display: none; }
.kol-zagr { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tekst-3); font-weight: 700; font-size: 14px; transition: opacity 0.4s; }
.kol-scena.gotovo .kol-zagr { opacity: 0; pointer-events: none; }
.kol-scena.net-3d .kol-zagr { opacity: 1; }

/* ---------- муравьи несут товар в корзину */
.nesut { position: fixed; z-index: 100; pointer-events: none; width: 64px; height: 64px; }
.nesut img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; box-shadow: var(--ten-2); }
.nesut canvas { position: absolute; left: -18px; top: 34px; }

/* ---------- узкие экраны */
@media (max-width: 1180px) {
  .verh-p a.mozhno-skryt { display: none; }
  .logo small { display: none; }
}
@media (max-width: 900px) {
  .verh { display: none; }
  .shapka-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo b { font-size: 16px; }
  .logo img { width: 46px; height: 46px; }
  .knopka-katalog { order: 3; height: 44px; }
  .poisk { order: 4; flex-basis: calc(100% - 140px); }
  .poisk input { height: 44px; }
  .poisk-pech { height: 44px; line-height: 44px; }
  .korzina-kn { margin-left: auto; height: 44px; }
  .korzina-txt { display: none; }
  .mega-in { grid-template-columns: 1fr; }
  .kol-scena { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .kol-scena canvas { position: relative; height: 62vh; min-height: 380px; max-height: 560px; order: 1; }
  .kol-mini { display: flex; position: absolute; left: 12px; top: 12px; z-index: 2; flex-direction: column; background: rgba(255, 255, 255, 0.9); border-radius: 14px; padding: 8px 12px; box-shadow: var(--ten-1); }
  .kol-mini b { font-size: 16px; font-weight: 800; }
  .kol-mini span { font-size: 12.5px; color: var(--tekst-2); font-weight: 600; }
  .kol-karta { position: relative; left: auto; top: auto; width: auto; margin: 0 12px 12px; order: 3; box-shadow: var(--ten-1); padding: 16px; }
  .kol-karta .kol-nadz, .kol-karta h1, .kol-karta .kol-vid { display: none; }
  .kol-cifry { margin-top: 0; }
  .kol-cifry b { font-size: 18px; }
  .kol-panel { position: relative; left: auto; right: auto; bottom: auto; order: 2; margin: 10px 12px 12px; }
  .kol-kamera { position: relative; right: auto; top: auto; order: 2; margin: 0 12px 10px; align-self: flex-start; }
  .kol-podsk { display: none; }
  .kol-vidy-spisok { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 60vh; z-index: 80; }
}
@media (max-width: 520px) {
  .obertka { padding: 0 14px; }
  .kol-karta h1 { font-size: 24px; }
  .kol-gr-imya { display: none; }
}

/* ---------- кнопка «Назад» */
.nazad { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; margin: 18px 0 4px; border: 0; border-radius: 12px; background: var(--bezh); font-weight: 700; font-size: 14.5px; color: var(--tekst); transition: background 0.15s; }
.nazad:hover { background: var(--bezh-2); }
.nazad svg { width: 18px; height: 18px; }

/* ---------- окно «Менеджер ответит» */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-kn { display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 18px; background: var(--grafit); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(30, 20, 10, 0.28); transition: transform 0.15s; position: relative; }
.chat-kn:hover { transform: translateY(-2px); }
.chat-kn svg { width: 22px; height: 22px; }
.chat-kn .chat-tochka { position: absolute; left: 34px; top: 12px; box-shadow: 0 0 0 2px var(--grafit); }
.chat.otkryt .chat-kn { display: none; }
.chat-tochka { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #4caf50; }
.chat-okno { width: 370px; height: min(560px, calc(100vh - 120px)); background: var(--bel); border-radius: 22px; box-shadow: 0 20px 60px rgba(30, 20, 10, 0.25), 0 0 0 1px rgba(60, 40, 15, 0.06); display: flex; flex-direction: column; overflow: hidden; }
.chat-shapka { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; background: var(--grafit); color: #fff; }
.chat-shapka img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.chat-shapka b { display: block; font-size: 14.5px; font-weight: 800; }
.chat-shapka small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.chat-zakr { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 22px; line-height: 1; }
.chat-spisok { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bezh); }
.chat-s { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.chat-s a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.chat-s-m { align-self: flex-start; background: var(--bel); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(60, 40, 15, 0.06); }
.chat-s-ya { align-self: flex-end; background: var(--oranzh); color: #1f1a12; border-bottom-right-radius: 6px; }
.chat-pech { display: flex; gap: 4px; padding: 14px; }
.chat-pech i { width: 7px; height: 7px; border-radius: 50%; background: var(--tekst-3); animation: pech 1s infinite; }
.chat-pech i:nth-child(2) { animation-delay: 0.15s; } .chat-pech i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pech { 50% { opacity: 0.3; transform: translateY(-2px); } }
.chat-svyaz { display: inline-flex; gap: 6px; margin-left: 2px; }
.chat-svyaz a { text-decoration: none !important; background: var(--bezh); border-radius: 8px; padding: 1px 8px; }
.chat-bystro { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; background: var(--bezh); }
.chat-bystro:not(:empty) { padding-bottom: 10px; }
.chat-bystro .chip { height: 32px; font-size: 13px; background: var(--bel); box-shadow: inset 0 0 0 1px var(--liniya); }
.chat-forma { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--liniya); }
.chat-forma input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 12px; background: var(--bezh); padding: 0 14px; font-weight: 600; font-size: 15px; outline: none; }
.chat-forma input:focus { box-shadow: 0 0 0 2px var(--oranzh); background: var(--bel); }
.chat-forma button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--oranzh); color: #1f1a12; display: grid; place-items: center; }
.chat-forma button svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-kn span { display: none; }
  .chat-kn { width: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .chat-kn .chat-tochka { left: 36px; top: 10px; }
  .chat-okno { width: calc(100vw - 24px); height: calc(100vh - 90px); }
}
.chat-okno[hidden] { display: none; }

/* ================================================================ как приложение: плавные переходы и отклик */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-uhod 0.22s ease both; }
::view-transition-new(root) { animation: vt-prihod 0.32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vt-uhod { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-prihod { from { opacity: 0; transform: translateY(10px); } }
::view-transition-group(*) { animation-duration: 0.38s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
.shapka { view-transition-name: shapka; transition: box-shadow 0.2s; }
.shapka.szhata { box-shadow: 0 6px 24px rgba(40, 25, 10, 0.08); }
.shapka-in { transition: height 0.25s ease; }
.shapka.szhata .shapka-in { height: 68px; }
.logo img { transition: width 0.25s ease, height 0.25s ease; }
.shapka.szhata .logo img { width: 48px; height: 48px; }
.knopka, .kart-kn, .kol-kn, .chip, .mp, .sostav, .korz-n button, .nazad { transition: transform 0.12s ease, background 0.15s, box-shadow 0.15s, color 0.15s; }
.knopka:active, .kart-kn:active, .kol-kn:active, .chip:active, .mp:active, .sostav:active, .nazad:active { transform: scale(0.96); }
.poyav { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.poyav.vidno { opacity: 1; transform: none; }
img.gruzitsya { background: linear-gradient(100deg, var(--bezh) 30%, #fbf8f3 50%, var(--bezh) 70%); background-size: 300% 100%; animation: blik 1.2s linear infinite; }
@keyframes blik { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .poyav { opacity: 1; transform: none; transition: none; }
  img.gruzitsya { animation: none; }
}

/* ---------- кнопки: один язык (капс с разрядкой, как в образце) */
.knopka { height: 52px; padding: 0 24px; border-radius: 12px; font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.knopka svg { width: 18px; height: 18px; }
.knopka-mal { height: 44px; padding: 0 18px; font-size: 13px; }
.knopka-svetl, .knopka-vtor { background: var(--bel); color: var(--tekst); box-shadow: inset 0 0 0 2px var(--grafit); }
.knopka-svetl:hover, .knopka-vtor:hover { background: var(--grafit); color: #fff; }
.knopka-temn { background: var(--grafit); color: #fff; }
.knopka-temn:hover { background: #000; }
.knopka-katalog { text-transform: none; letter-spacing: 0; font-size: 15px; height: 48px; }
.korzina-kn { background: var(--bel); box-shadow: inset 0 0 0 2px var(--grafit); }
.korzina-kn:hover { background: var(--grafit); color: #fff; }
.poisk input { background: var(--bel); box-shadow: inset 0 0 0 1.5px var(--liniya); }
.chat-kn { box-shadow: 0 0 0 2px var(--oranzh), 0 10px 30px rgba(30, 20, 10, 0.28); }
.kol-kupit { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; letter-spacing: 0.05em; font-size: 13px; text-align: center; }

/* ---------- круг 2: чат кружком, шапка телефона, «Покупателю», статьи по группам, страница вида */
.chat { right: max(24px, env(safe-area-inset-right, 0px)); bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
.chat-kn { width: 60px; height: 60px; padding: 0; border-radius: 30px; justify-content: flex-start; overflow: hidden; transition: width 0.25s ease, transform 0.15s; }
.chat-kn svg { margin-left: 19px; flex: none; }
.chat-kn span { opacity: 0; white-space: nowrap; transition: opacity 0.2s; }
.chat-kn:hover, .chat-kn:focus-visible { width: 236px; }
.chat-kn:hover span, .chat-kn:focus-visible span { opacity: 1; }
.chat-kn .chat-tochka { left: 38px; top: 14px; }
.info-nav a.akt { font-weight: 800; box-shadow: inset 4px 0 0 var(--oranzh); background: var(--bezh); }
.info-blok { scroll-margin-top: 124px; }
.vid-info .kart-metka { position: static; display: inline-block; }
.vid-fakty dd { font-size: 17px; font-weight: 800; }
.statya-k[data-r="start"]::before { background-image: url("../img/ikonki/podbor.webp"); }
.statya-k[data-r="korm"]::before { background-image: url("../img/ikonki/korm.webp"); }
.statya-k[data-r="ferma"]::before { background-image: url("../img/ikonki/fermy.webp"); }
.statya-k[data-r="beda"]::before { background-image: url("../img/ikonki/garantiya.webp"); }
.statya-k[data-r="detyam"]::before { background-image: url("../img/ikonki/nabory.webp"); }
@media (max-width: 560px) {
  .chat-kn:hover, .chat-kn:focus-visible { width: 60px; }
  .chat-kn:hover span { opacity: 0; }
  .knopka-katalog span { display: none; }
  .knopka-katalog { width: 48px; padding: 0; order: 3; flex: none; }
  .poisk { flex-basis: calc(100% - 64px); }
  .shapka-in { row-gap: 8px; }
  .logo img { width: 40px; height: 40px; }
  .logo b { font-size: 15px; }
}

/* ---------- 28.11: кнопка Ozon - в цветах Ozon, узнаваемо (фермы продаём только там) */
.knopka-ozon { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 52px; padding: 0 20px; border-radius: 14px; background: #005bff; color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(0, 91, 255, 0.8); transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.knopka-ozon b { font-size: 22px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-top: -3px; }
.knopka-ozon svg { width: 17px; height: 17px; flex: none; opacity: 0.85; }
.knopka-ozon:hover { background: #0047d9; transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(0, 91, 255, 0.9); }
.knopka-ozon:active { transform: scale(0.97); }
.cena-ozon { color: #005bff; font-weight: 800; letter-spacing: -0.04em; font-size: 16px !important; }
@media (max-width: 560px) { .knopka-ozon { height: 46px; padding: 0 12px; font-size: 13.5px; } .knopka-ozon b { font-size: 19px; } }
