/* ============================================================
   MolecularMeal — main page (pure HTML/CSS)
   Design tokens from Figma
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@400;500;600;700&family=Rubik:wght@400;500;700&family=Roboto:wght@400;500;700&family=Montserrat:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* colors */
  --text-primary: #1e2025;
  --text-primary-inverse: #ffffff;
  --text-secondary: rgba(30, 32, 37, 0.6);
  --text-tertiary: rgba(17, 30, 63, 0.45);
  --text-accent: #1fb59c;
  --bg-primary: #1e2025;
  --bg-primary-bg: #f5f8fa;
  --bg-tertiary: #ffffff;
  --bg-secondary: rgba(17, 30, 63, 0.05);
  --bg-accent: #1fb59c;
  --bg-accent-subdued: rgba(15, 207, 175, 0.12);
  --border-primary: rgba(17, 30, 63, 0.18);
  --border-tertiary: rgba(17, 30, 63, 0.05);
  --border-accent: #1fb59c;
  --yellow-main: #fe7024;
  --teal: #18a2b0;          /* header buttons / phone / links */
  --black: #000000;

  /* radius */
  --radius-pill: 96px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-36: 36px;

  /* shadow */
  --shadow-s: 0 1px 4px rgba(60, 83, 135, 0.09), 0 1px 10px 1px rgba(60, 83, 135, 0.05);

  /* layout */
  --bar-w: 1360px;       /* header bars max inner width */
  --content-w: 1280px;   /* main sections max inner width */
  --gutter: clamp(16px, 4vw, 40px);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geologica', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary-bg);   /* #f5f8fa — light grey page bg so white blocks stand out */
  -webkit-font-smoothing: antialiased;
  line-height: 1.25;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.page {
  width: 100%;
  margin: 0 auto;
  /* clip (а не hidden) — обрезает горизонтальный выход за экран,
     но НЕ создаёт scroll-контейнер, иначе position:sticky у шапки ломается (Chrome) */
  overflow-x: clip;
}

/* shared container for main content sections */
.container {
  width: 100%;
  max-width: calc(var(--content-w) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  font: 400 16px/1.25 'Geologica', sans-serif;
  white-space: nowrap;
}
.btn--accent { background: var(--teal); color: #fff; }
.btn--grey   { background: #898989; color: #fff; }
.btn--lg     { padding: 16px 24px; font-size: 18px; letter-spacing: .5px; }

/* ---- inter-section spacing: единый ритм задаётся padding секций (.mm-section), без внешних margin ---- */
main > section { margin-top: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.header { position: sticky; top: 0; z-index: 50; box-shadow: 0 6px 24px rgba(30,32,37,.08); }

/* ── Единая светлая шапка (липкая) ── */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg-tertiary); box-shadow: 0 1px 0 rgba(27,29,34,.06), 0 6px 20px rgba(20,40,60,.05); }
/* ряд 1: тонкая утилитарная полоса — навигация + график + телефон */
.header__top {
  display: flex;
  justify-content: center;
  max-height: 56px;
  padding: 0 var(--gutter);
  background: var(--bg-primary-bg);
  border-bottom: 1px solid rgba(27,29,34,.07);
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease;
}
/* верхний ряд (навигация Главная/Доставка/…/ОПТ) НЕ сворачиваем при скролле — пусть всегда виден */
/* .header--compact .header__top { max-height: 0; opacity: 0; border-bottom-color: transparent; } */
.header__top-inner {
  width: 100%;
  max-width: var(--content-w);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 500 13.5px 'Geologica', sans-serif;
  flex-wrap: wrap;
  /* у ссылок padding 14px по бокам — сдвигаем строку влево на эти 14px,
     чтобы текст «Главная» вставал ровно по левому краю контента (как лого/секции) */
  margin-left: -14px;
}
.header__top-aside { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header__top-nav a { position: relative; white-space: nowrap; padding: 7px 14px; color: var(--text-secondary); transition: color .15s; }
.header__top-nav a:hover { color: var(--teal); }
.header__top-nav a.is-active { color: var(--teal); font-weight: 600; }
/* активный пункт — подчёркивание тил-линией снизу (без заливки) */
.header__top-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}
.header__top-nav a.header__top-cta { color: var(--teal); font-weight: 700; letter-spacing: .3px; }
.header__top-aside { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header__hours {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
}
.header__hours svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--teal); }
.header__hours-sep { color: rgba(27,29,34,.25); }
.header__hours-muted { color: var(--text-secondary); }
.header__top-div { flex: 0 0 auto; width: 1px; height: 18px; background: rgba(27,29,34,.16); }
.header__top-phone { display: inline-flex; align-items: center; gap: 7px; font: 600 13.5px 'Geologica', sans-serif; color: var(--text-primary); text-decoration: none; white-space: nowrap; transition: color .15s; }
.header__top-phone svg { color: var(--teal); flex: 0 0 auto; }
.header__top-phone:hover { color: var(--teal); }

/* ряд 2: основной — лого + командный модуль + иконки */
.header__main {
  display: flex;
  justify-content: center;
  padding: 12px var(--gutter);
}
.header__main-inner {
  width: 100%;
  max-width: var(--content-w);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}
.header__logo-link { flex: 0 0 auto; display: block; }
.header__logo { width: 150px; height: 35px; display: block; }

/* ── ФИШЕЧКА: компактный модуль Каталог + Поиск (одна пилюля, по референсу) ── */
.header__finder {
  position: relative;
  flex: 0 1 460px; min-width: 0;
  display: flex; align-items: center;
  height: 50px; padding: 4px 8px 4px 4px;
  background: #fff; border: 1.5px solid rgba(27,29,34,.12); border-radius: 100px;
  transition: border-color .15s, box-shadow .15s;
}
.header__finder:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,162,176,.1); }
.header__finder .catalog-menu { position: relative; display: flex; }

/* Каталог — мягкая кнопка внутри пилюли */
/* ============================================================
   КАТАЛОГ · мега-меню — editorial card grid + merchandising band
   FULLY REPLACES the old block in style.css L188–L317
   (.catalog-btn … .catalog-menu__sub a:hover, incl. .header__finder-div).
   Drop-in against the PHP-generated <ul><li>; child texts may end "(N)".
   Tokens verified against style.css :root. Light-only, on-brand.
   NOTE: bump the stylesheet cache version (header.tpl: style.css?v=37).
   ============================================================ */

/* --- триггер «Каталог» (мягкая пилюля) --- */
.catalog-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--bg-accent-subdued);
  color: var(--teal);
  border: none;
  border-radius: 100px;
  font: 500 14px 'Geologica', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}
.catalog-menu:hover .catalog-btn,
.catalog-menu.is-open .catalog-btn {
  background: rgba(24,162,176,.18);
  box-shadow: 0 0 0 3px rgba(24,162,176,.10);
}
.catalog-btn__ico { width: 17px; height: 17px; display: block; flex: 0 0 auto; transition: transform .2s ease; }
.catalog-menu:hover .catalog-btn__ico,
.catalog-menu.is-open .catalog-btn__ico { transform: rotate(90deg); }

/* тонкий вертикальный разделитель в пилюле поиска */
.header__finder-div { flex: 0 0 auto; width: 1px; height: 22px; background: rgba(27,29,34,.15); margin: 0 12px; }

/* ------------------------------------------------------------
   ПАНЕЛЬ
   ------------------------------------------------------------ */
/* ПАНЕЛЬ — скролл-контейнер: ограничивает высоту и скроллит ВЕРТИКАЛЬНО.
   Высота/overflow живут ЗДЕСЬ, а не на multicol-сетке, иначе колонки при
   нехватке высоты «переливаются» в лишнюю 5-ю колонку за overflow-x:hidden. */
.catalog-menu__panel {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 100;
  width: min(400px, calc(100vw - 40px));
  max-height: min(640px, 80vh);
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(31,181,156,.05), transparent 42%),
    var(--bg-primary-bg);
  border: 1px solid var(--border-tertiary, rgba(17,30,63,.05));
  border-radius: var(--radius-16, 16px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 22px 54px rgba(60,83,135,.20),
    0 6px 16px rgba(60,83,135,.10);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(60,83,135,.28) transparent;
}
/* верхняя градиентная «корона» — закреплена при скролле */
.catalog-menu__panel::before {
  content: '';
  position: sticky;
  display: block;
  top: 0;
  height: 3px;
  margin-bottom: -3px;
  border-radius: var(--radius-16, 16px) var(--radius-16, 16px) 0 0;
  background: linear-gradient(90deg, var(--teal), var(--bg-accent));
  z-index: 2;
}
.catalog-menu__panel::-webkit-scrollbar { width: 9px; }
.catalog-menu__panel::-webkit-scrollbar-thumb { background: rgba(60,83,135,.22); border-radius: 96px; border: 3px solid transparent; background-clip: content-box; }
.catalog-menu__panel::-webkit-scrollbar-thumb:hover { background: rgba(60,83,135,.36); background-clip: content-box; }

/* СПИСОК — одна колонка, разделы друг под другом (аккордеон) */
.catalog-menu__list {
  margin: 0;
  padding: 12px 12px 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* появление */
.catalog-menu:hover .catalog-menu__panel,
.catalog-menu.is-open .catalog-menu__panel {
  display: block;
  animation: catMenuIn .2s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes catMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-menu:hover .catalog-menu__panel,
  .catalog-menu.is-open .catalog-menu__panel { animation: none; }
}

/* шапка панели (заголовок + крестик) — только на мобиле (на весь экран) */
.catalog-menu__bar { display: none; }
.catalog-menu__bar-title { font: 600 17px 'Rubik', sans-serif; color: var(--text-primary); }
.catalog-menu__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 50%;
  background: #fff; color: var(--text-primary);
  border: 1px solid var(--border-tertiary, rgba(17,30,63,.06));
  box-shadow: var(--shadow-s, 0 1px 4px rgba(60,83,135,.09));
}
.catalog-menu__close:active { background: var(--bg-secondary, rgba(17,30,63,.05)); }

/* «мостик»: невидимая зона под кнопкой — меню не закрывается на зазоре */
.catalog-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: min(400px, calc(100vw - 40px));
  height: 18px;
  display: none;
}
.catalog-menu:hover::after { display: block; }

/* ------------------------------------------------------------
   HERO «Все товары» — на всю ширину, над сеткой карточек
   ------------------------------------------------------------ */
.catalog-menu__all {
  margin: 0 0 8px;
}
.catalog-menu__all > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-radius: var(--radius-12, 12px);
  background:
    radial-gradient(120% 200% at 100% 0%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(92deg, var(--teal) 0%, var(--bg-accent) 100%);
  color: #fff;
  font: 600 15px/1.1 'Geologica', sans-serif;
  letter-spacing: .01em;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(24,162,176,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.catalog-menu__all > a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}
.catalog-menu__all > a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(24,162,176,.38);
}
.catalog-menu__all > a:hover::after { transform: translateX(120%); }
.catalog-menu__all-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #fff;
  background: rgba(255,255,255,.16);
  border-radius: 10px;
}
.catalog-menu__all-ico svg { width: 18px; height: 18px; }
.catalog-menu__all-txt { flex: 1 1 auto; min-width: 0; }
.catalog-menu__all-txt::after {
  content: 'Полный каталог ингредиентов и оборудования';
  display: block;
  margin-top: 3px;
  font: 400 11.5px/1.2 'Geologica', sans-serif;
  letter-spacing: 0;
  color: rgba(255,255,255,.82);
}
.catalog-menu__all-arrow {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
  transition: transform .18s ease;
}
.catalog-menu__all > a:hover .catalog-menu__all-arrow { transform: translateX(4px); }

/* ------------------------------------------------------------
   РАЗДЕЛ — строка аккордеона (одна колонка)
   Строка = название-ссылка (переход в раздел) + шеврон-кнопка (раскрытие).
   Лист без подкатегорий — просто ссылка со стрелкой →, без шеврона.
   ------------------------------------------------------------ */
.catalog-menu__item {
  border-radius: var(--radius-12, 12px);
  transition: background .15s ease;
}
.catalog-menu__item.is-expanded { background: var(--bg-accent-subdued); }

/* верхняя строка раздела */
.catalog-menu__row {
  display: flex;
  align-items: stretch;
  gap: 2px;
  border-radius: var(--radius-12, 12px);
}

/* название раздела — основная зона, ведёт В РАЗДЕЛ */
.catalog-menu__link {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--radius-12, 12px);
  font: 500 14px/1.3 'Geologica', sans-serif;
  color: var(--text-primary);
  transition: background .15s ease, color .15s ease;
}
.catalog-menu__link::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(24,162,176,.14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.catalog-menu__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.catalog-menu__go {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity .15s ease, transform .15s ease;
}
.catalog-menu__link:hover {
  background: #fff;
  color: var(--teal);
  box-shadow: var(--shadow-s, 0 1px 4px rgba(60,83,135,.09));
}
.catalog-menu__link:hover::before { transform: scale(1.18); box-shadow: 0 0 0 4px rgba(24,162,176,.2); }
.catalog-menu__link:hover .catalog-menu__go { opacity: 1; transform: translateX(0); }

/* шеврон-кнопка — раскрывает подкатегории, не уходит со страницы */
.catalog-menu__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-12, 12px);
  color: var(--text-tertiary, rgba(17,30,63,.5));
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.catalog-menu__toggle:hover { background: #fff; color: var(--teal); box-shadow: var(--shadow-s, 0 1px 4px rgba(60,83,135,.09)); }
.catalog-menu__toggle-count {
  font: 500 11px/1 'Geologica', sans-serif;
  min-width: 16px;
  text-align: center;
}
.catalog-menu__chev { width: 16px; height: 16px; transition: transform .2s ease; }
.catalog-menu__item.is-expanded .catalog-menu__toggle { color: var(--teal); }
.catalog-menu__item.is-expanded .catalog-menu__chev { transform: rotate(180deg); }

/* выдвижной ящик подкатегорий — плавное раскрытие через grid-rows */
.catalog-menu__drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.catalog-menu__item.is-expanded .catalog-menu__drawer { grid-template-rows: 1fr; }
.catalog-menu__drawer-inner { overflow: hidden; min-height: 0; }
@media (prefers-reduced-motion: reduce) {
  .catalog-menu__drawer { transition: none; }
}

/* «Перейти в раздел» — крупная подсказка-ссылка в начале списка */
.catalog-menu__sub-all {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 8px 6px 26px;
  padding: 7px 11px;
  border-radius: 8px;
  font: 600 12px/1 'Geologica', sans-serif;
  letter-spacing: .01em;
  color: var(--teal);
  background: rgba(24,162,176,.08);
  transition: background .14s ease, gap .14s ease;
}
.catalog-menu__sub-all svg { width: 15px; height: 15px; flex: 0 0 auto; }
.catalog-menu__sub-all:hover { background: rgba(24,162,176,.16); color: var(--teal); gap: 10px; }

/* список подкатегорий */
.catalog-menu__sub {
  margin: 0 8px 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.catalog-menu__sub li { margin: 0; }
.catalog-menu__sub a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px 7px 26px;
  font: 400 13px/1.3 'Geologica', sans-serif;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: background .14s ease, color .14s ease, padding-left .14s ease;
}
.catalog-menu__sub a::before {
  content: '';
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-primary, rgba(17,30,63,.22));
  transition: background .14s ease, transform .14s ease;
}
.catalog-menu__sub a:hover {
  background: #fff;
  color: var(--teal);
  padding-left: 29px;
  box-shadow: var(--shadow-s, 0 1px 4px rgba(60,83,135,.09));
}
.catalog-menu__sub a:hover::before { background: var(--teal); transform: scale(1.5); }

/* текст пункта тянется (эллипсис), бейдж-счётчик прижат вправо */
.catalog-menu__sub a .cm-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-menu__sub a .cm-count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 1px 7px;
  font: 500 10.5px/1.5 'Geologica', sans-serif;
  text-align: center;
  color: var(--text-tertiary, rgba(17,30,63,.45));
  background: var(--bg-primary-bg);
  border-radius: 96px;
  transition: color .14s ease, background .14s ease;
}
.catalog-menu__sub a:hover .cm-count { color: var(--teal); background: rgba(24,162,176,.12); }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
/* мобильно: меню открывается НА ВЕСЬ ЭКРАН в одну колонку, по тапу (is-open).
   Панель — position:fixed относительно вьюпорта, а не узкой кнопки (раньше уезжала за экран). */
@media (max-width: 580px) {
  /* на тач-устройствах НЕ открываем по hover — только по клику */
  .catalog-menu:hover .catalog-menu__panel { display: none; }
  .catalog-menu.is-open .catalog-menu__panel {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: none;
    border-radius: 0;
    z-index: 1000;
  }
  .catalog-menu__panel::before { display: none; }   /* «корону» заменяет шапка */
  .catalog-menu::after { display: none; }            /* мостик не нужен */
  .catalog-menu__bar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 3;
    padding: 14px 16px;
    background: var(--bg-primary-bg);
    border-bottom: 1px solid var(--border-tertiary, rgba(17,30,63,.06));
  }
  .catalog-menu__list { padding: 10px 12px 28px; }
  .catalog-menu__all > a { padding: 14px 16px; }
  .catalog-menu__all-txt::after { display: none; }
  .catalog-btn { padding: 0 14px; }
  .catalog-btn__txt { display: none; }
  body.catalog-open { overflow: hidden; }
}

/* поиск — без своей рамки (рамка у пилюли), простая лупа справа */
.search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.search input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  min-width: 0;
  font: 400 14.5px/1.3 'Geologica', sans-serif;
  color: var(--text-primary);
}
.search input::placeholder { color: var(--text-tertiary); }
.search__submit {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.search__submit:hover { color: var(--teal); background: var(--bg-primary-bg); }

/* ============================================================
   ПОИСК · выпадающая панель подсказок
   Якорится к пилюле .header__finder (position:relative).
   Пусто+фокус → популярные товары; ввод → живые результаты.
   ============================================================ */
.search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid rgba(27,29,34,.08);
  border-radius: 18px;
  box-shadow: 0 18px 46px -18px rgba(20,30,50,.34), 0 4px 14px -8px rgba(20,30,50,.18);
  padding: 14px 14px 12px;
  animation: mmSuggestIn .16s ease;
}
.search-suggest[hidden] { display: none; }
@keyframes mmSuggestIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* «корона» — стрелочка к пилюле */
.search-suggest::before {
  content: ""; position: absolute; top: -6px; left: 38px;
  width: 12px; height: 12px; background: #fff;
  border-left: 1px solid rgba(27,29,34,.08); border-top: 1px solid rgba(27,29,34,.08);
  transform: rotate(45deg); border-radius: 3px 0 0 0;
}

.search-suggest__head {
  font: 600 11.5px/1 'Geologica', sans-serif;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 4px 6px 10px;
}

/* популярные товары — чипсы */
.search-suggest__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-suggest__chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  background: var(--bg-accent-subdued);
  color: var(--teal);
  border-radius: 100px;
  font: 500 13px 'Geologica', sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .12s;
}
.search-suggest__chip:hover { background: rgba(24,162,176,.18); transform: translateY(-1px); }

/* живые результаты */
.search-suggest__live { display: none; }
.search-suggest.is-live .search-suggest__pop { display: none; }
.search-suggest.is-live .search-suggest__live { display: block; }

.search-suggest__row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px; margin: 0 -2px;
  border-radius: 12px;
  text-decoration: none; color: var(--text-primary);
  transition: background .12s;
}
.search-suggest__row:hover,
.search-suggest__row.is-active { background: var(--bg-primary-bg); }
.search-suggest__row-img {
  flex: 0 0 auto; width: 46px; height: 46px;
  border-radius: 10px; object-fit: cover;
  background: var(--bg-primary-bg);
  border: 1px solid rgba(27,29,34,.06);
}
.search-suggest__row-body { min-width: 0; flex: 1 1 auto; }
.search-suggest__row-name {
  font: 400 13.5px/1.3 'Geologica', sans-serif;
  color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-suggest__row-price {
  margin-top: 3px;
  font: 600 13px 'Geologica', sans-serif; color: var(--teal);
  display: flex; align-items: baseline; gap: 8px;
}
.search-suggest__row-old { font-weight: 400; font-size: 12px; color: var(--text-tertiary); text-decoration: line-through; }

.search-suggest__all {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding: 11px 12px;
  border-top: 1px solid rgba(27,29,34,.08);
  font: 600 13px 'Geologica', sans-serif; color: var(--teal);
  text-decoration: none;
}
.search-suggest__all:hover { color: var(--text-primary); }
.search-suggest__all span:last-child { transition: transform .15s; }
.search-suggest__all:hover span:last-child { transform: translateX(3px); }

.search-suggest__empty {
  padding: 18px 8px 16px; text-align: center;
  font: 400 13.5px 'Geologica', sans-serif; color: var(--text-tertiary);
}
.search-suggest__empty b { color: var(--text-primary); font-weight: 600; }

/* скелетон-строки подсказок (показываются, пока грузятся результаты — без мелькания «популярного») */
.search-suggest__row--skel { pointer-events: none; }
.search-suggest__row--skel .sk {
  display: block;
  background: linear-gradient(100deg, #eef1f4 30%, #f7f9fb 50%, #eef1f4 70%);
  background-size: 200% 100%;
  animation: mmShimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
}
.search-suggest__row--skel .search-suggest__row-img.sk { width: 46px; height: 46px; border-radius: 10px; }
.search-suggest__row--skel .sk--line { height: 12px; margin: 4px 0; }
.search-suggest__row--skel .sk--short { width: 55%; }
@media (prefers-reduced-motion: reduce) { .search-suggest__row--skel .sk { animation: none; } }

/* плашка телефона — заполняет место рядом с поиском */
.header__phone {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 11px;
  height: 48px; padding: 0 18px 0 7px; border-radius: 100px;
  background: var(--bg-primary-bg); border: 1px solid transparent; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.header__phone:hover { background: #fff; border-color: rgba(24,162,176,.3); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(24,162,176,.12); }
.header__phone-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; flex: 0 0 auto; }
.header__phone-txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.header__phone-num { font: 600 15px 'Geologica', sans-serif; color: var(--text-primary); }
.header__phone:hover .header__phone-num { color: var(--teal); }
.header__phone-hours { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }

/* CTA-плашка «Бесплатный подбор» — заполняет место рядом с поиском */
.header__cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 20px 0 8px; border-radius: 100px;
  background: var(--bg-accent-subdued); border: 1px solid transparent; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.header__cta:hover { background: rgba(24,162,176,.18); border-color: rgba(24,162,176,.3); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(24,162,176,.14); }
.header__cta-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; flex: 0 0 auto; }
.header__cta-txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.header__cta-title { font: 600 14px 'Geologica', sans-serif; color: var(--text-primary); }
.header__cta-sub { font-size: 11.5px; color: var(--teal); }

/* «маячок» консультации: раз в 3с иконка пульсирует и от неё расходятся круги-волны
   (как камень, брошенный в воду). Пульс — на самой иконке (svg), волны — на контейнере
   (он не масштабируется, поэтому круги расходятся ровно). */
.header__cta-ico svg { position: relative; z-index: 1; transform-origin: center; animation: ctaBeat 3s ease-in-out infinite; }
.header__cta-ico::before, .header__cta-ico::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--teal); opacity: 0; pointer-events: none;
  animation: ctaRipple 3s ease-out infinite;
}
.header__cta-ico::after { animation-delay: .5s; }   /* второй круг — чуть позже первого */
@keyframes ctaBeat {
  0%   { transform: scale(1); }
  6%   { transform: scale(1.18); }
  13%  { transform: scale(.95); }
  20%  { transform: scale(1.06); }
  27%, 100% { transform: scale(1); }
}
@keyframes ctaRipple {
  0%        { transform: scale(1); opacity: .5; }
  35%       { transform: scale(1.8); opacity: 0; }
  100%      { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .header__cta-ico svg, .header__cta-ico::before, .header__cta-ico::after { animation: none; }
}

/* иконки — прижаты вправо */
.header__icons { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.header__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--text-primary);
  background: var(--bg-primary-bg);
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.header__icon:hover { color: var(--teal); background: #fff; border-color: rgba(24,162,176,.3); transform: translateY(-1px); }
.header__icon svg { display: block; }

/* hero */
.hero {
  position: relative;
  height: clamp(560px, 56vw, 806px);
  overflow: hidden;
}
.hero__bg, .hero__product {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__product { object-position: right center; }
.hero::after {  /* darkening for legible text on the left */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--bar-w);
  height: 100%;
  margin: 0 auto;
  padding: 81px var(--gutter) 0;
}
.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.13vw, 45px);
  line-height: 1.0;
  letter-spacing: -.25px;
  color: #fff;
  text-transform: uppercase;
  max-width: 470px;
  margin: 0 0 28px;
}
.hero__lead {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.74vw, 25px);
  line-height: 1.24;
  letter-spacing: -.25px;
  color: #fff;
  max-width: 540px;
  margin: 0 0 28px;
}
.hero__lead b { font-weight: 600; }
.hero__lead p { margin: 0 0 20px; }
.hero__lead p:last-child { margin-bottom: 0; }
.hero__actions { position: absolute; top: auto; bottom: clamp(40px, 7.6vw, 110px); left: var(--gutter); display: flex; gap: 25px; flex-wrap: wrap; }

/* category tags bar under hero */
.tags {
  background: var(--bg-tertiary);
  display: flex;
  justify-content: center;
  padding: 4px var(--gutter) 12px;
  border-radius: 0 0 var(--radius-36) var(--radius-36);
}
.tags__inner {
  position: relative;
  width: 100%;
  max-width: var(--content-w); /* выровнять ряд тегов с контентом секций (110px), а не по bar-w */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.tag {
  width: 114px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  text-align: center;
}
.tag__icon {
  position: relative;
  width: 69px;
  height: 45px;
  overflow: hidden;
}
.tag__icon img { position: absolute; max-width: none; }
/* per-icon crop/zoom to match Figma framing (values relative to 69x45 box) */
.tag:nth-child(1)  .tag__icon img { width: 124.09%; height: 190.28%; left: -11.19%; top: -34.58%; }
.tag:nth-child(2)  .tag__icon img { width: 119.77%; height: 185.10%; left: -9.84%;  top: -43.02%; }
.tag:nth-child(3)  .tag__icon img { width: 108.93%; height: 168.34%; left: -4.98%;  top: -34.68%; transform: scaleX(-1); }
.tag:nth-child(4)  .tag__icon img { width: 94.03%;  height: 144.17%; left: 3.84%;   top: -22.49%; }
.tag:nth-child(5)  .tag__icon img { width: 98.24%;  height: 151.82%; left: 0.62%;   top: -25.36%; transform: scaleX(-1); }
.tag:nth-child(6)  .tag__icon img { width: 97.14%;  height: 150.12%; left: -0.11%;  top: -25.71%; }
.tag:nth-child(7)  .tag__icon img { width: 101.76%; height: 157.26%; left: -1.35%;  top: -28.38%; }
.tag:nth-child(8)  .tag__icon img { width: 100%;    height: 154.55%; left: -0.37%;  top: -28.37%; transform: scaleX(-1); }
.tag:nth-child(9)  .tag__icon img { width: 102.68%; height: 158.69%; left: -1.84%;  top: -28.62%; }
.tag:nth-child(10) .tag__icon img { width: 100%;    height: 154.55%; left: 0;       top: -24.41%; }
.tag__label {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.1;
  color: var(--text-primary);
}
.tag__label a { text-decoration: underline; }
.tags__next {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: var(--radius-24);
  box-shadow: 0 0 5px #edf5fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tags__next::before {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
  transform: rotate(-45deg);
  margin-left: -3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* часы в шапке: прячем части по мере сужения, чтобы навигация помещалась в строку */
/* «· Не работаем в праздничные дни» — прячем ВСЕГДА: внутренний контейнер шапки
   ограничен 1280px независимо от ширины экрана, и на широких мониторах (1920px+)
   этот хвост не помещался → верхняя навигация ломалась на 2 строки. */
.header__hours > :nth-child(5), .header__hours > :nth-child(6) { display: none; }
@media (max-width: 1340px) {
  .header__hours > :nth-child(3), .header__hours > :nth-child(4) { display: none; } /* «· Сб–Вс: выходной» */
}
@media (max-width: 1100px) {
  .header__hours { display: none; }
  .header__finder { max-width: none; }
  .hero__title { max-width: min(470px, 54%); }
  .hero__lead  { max-width: min(540px, 62%); }
}

/* узковато для 7 пунктов меню + телефона: на ≤960px прячем телефон в верхней
   строке, чтобы навигация оставалась в одну строку (телефон есть в кнопке
   «Получить консультацию» и возвращается на экранах шире 960px) */
@media (max-width: 960px) {
  .header__top-phone, .header__top-div { display: none; }
}
@media (max-width: 860px) {
  .header__top-nav { gap: 2px; }
}

@media (max-width: 768px) {
  .header__top { display: none; }
  .header__main-inner { flex-wrap: wrap; gap: 12px 16px; }
  .header__logo-link { order: 1; }
  .header__icons { order: 1; margin-left: auto; }
  .header__finder { order: 2; flex: 1 1 100%; max-width: none; }
  .header__cta { display: none; }   /* плашку «Получить консультацию» на мобиле прячем */

  .hero { height: auto; min-height: 480px; }
  .hero__bg { object-position: center; }
  .hero__product { opacity: .4; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 100%); }
  .hero__content { padding-top: 40px; padding-bottom: 40px; }
  .hero__title, .hero__lead { max-width: 100%; }
  .hero__actions { position: static; left: auto; bottom: auto; margin-top: 24px; }

  .tags__inner { overflow-x: auto; gap: 16px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .tag { flex: 0 0 auto; }
  .tags__next { display: none; }
}

@media (max-width: 480px) {
  .header__icons { gap: 6px; }
  .header__icon { width: 42px; height: 42px; }
  .catalog-btn { padding: 0 16px; }
  .catalog-btn__txt { display: none; }   /* на мобиле только иконка + шеврон */
  .hero__title { font-size: 28px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* ── amoCRM онлайн-чат: нативная кнопка (многоканальная), наши цвета + иконка, без приветствия ── */
/* холдер держим в правом нижнем углу */
.amo-button-holder,
#amo_social_button .amo-button-holder {
  left: auto !important; right: 24px !important; bottom: 24px !important; top: auto !important;
}
/* приветственный «пузырь» убираем — занимал много места */
.amobutton_greeting { display: none !important; }
/* бабл-приветствие онлайн-чата (livechat): #bubble.styles_bubble__… — если он в DOM страницы, скрываем */
#bubble[class*="styles_bubble"], #bubble.bottom-right { display: none !important; }
/* кнопку перекрашиваем в наши цвета + своя иконка чата */
#amobutton.amo-button--main {
  background-color: var(--teal) !important;
  border-color: var(--teal) !important;
  box-shadow: 0 8px 24px rgba(24,162,176,.34) !important;
}
#amobutton .amo-button--main-icon-inner { position: relative; }
#amobutton .amo-button--main-icon-inner > svg { display: none !important; }
#amobutton .amo-button--main-icon-inner::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 30px; height: 30px;
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-8.5 8.5 8.5 8.5 0 0 1-3.8-.9L3 21l1.9-5.7A8.38 8.38 0 0 1 4 11.5 8.5 8.5 0 0 1 12.5 3 8.38 8.38 0 0 1 21 11.5z'/></svg>") center / 28px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-8.5 8.5 8.5 8.5 0 0 1-3.8-.9L3 21l1.9-5.7A8.38 8.38 0 0 1 4 11.5 8.5 8.5 0 0 1 12.5 3 8.38 8.38 0 0 1 21 11.5z'/></svg>") center / 28px no-repeat;
}
#amobutton .amo-button--close-icon { stroke: #fff !important; fill: #fff !important; }

/* Нативную кнопку amoCRM держим скрытой, пока её не вызвали из единого виджета связи
   (класс body.mm-amo-on ставит JS при клике на «Онлайн-чат»). */
body:not(.mm-amo-on) .amo-button-holder,
body:not(.mm-amo-on) #amo_social_button .amo-button-holder,
body:not(.mm-amo-on) #bubble { display: none !important; }

/* ── Единый виджет связи (molecmag): Telegram + WhatsApp + онлайн-чат amoCRM ── */
.mm-cw { position: fixed; right: 24px; bottom: 24px; z-index: 1030;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.mm-cw.is-amo { display: none; }   /* активна нативная кнопка amo — свой виджет прячем, чтобы не дублировать */
.mm-cw__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96); transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.mm-cw.is-open .mm-cw__menu { opacity: 1; visibility: visible; transform: none; }
.mm-cw__item { box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px;
  width: 190px; height: 48px; padding: 0 16px 0 9px; border: 0; cursor: pointer; border-radius: 999px; background: #fff;
  color: var(--text-primary, #1b1d22);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 26px rgba(20,40,60,.16); transition: transform .14s ease, box-shadow .14s ease; }
.mm-cw__item:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(20,40,60,.22); }
.mm-cw__label { display: inline-block; }
.mm-cw__ic { box-sizing: border-box; display: inline-flex; width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  align-items: center; justify-content: center; color: #fff; }
.mm-cw__ic svg { width: 18px; height: 18px; display: block; }
.mm-cw__item--tg   .mm-cw__ic { background: #229ED9; }
.mm-cw__item--wa   .mm-cw__ic { background: #25D366; }
.mm-cw__item--chat .mm-cw__ic { background: var(--teal, #18a2b0); }
.mm-cw__fab { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal, #18a2b0); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(24,162,176,.42); transition: transform .16s ease, box-shadow .16s ease; }
.mm-cw__fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(24,162,176,.5); }
.mm-cw__fab svg { position: absolute; width: 26px; height: 26px; display: block; transition: opacity .16s ease, transform .16s ease; }
.mm-cw__fab-close { opacity: 0; transform: rotate(-45deg); }
.mm-cw.is-open .mm-cw__fab-open  { opacity: 0; transform: rotate(45deg); }
.mm-cw.is-open .mm-cw__fab-close { opacity: 1; transform: none; }
/* мягкий пульс для привлечения внимания (только когда меню закрыто) */
.mm-cw:not(.is-open) .mm-cw__fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(24,162,176,.45); animation: mm-cw-pulse 2.6s infinite; }
@keyframes mm-cw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(24,162,176,.45); }
  70% { box-shadow: 0 0 0 14px rgba(24,162,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(24,162,176,0); }
}
@media (prefers-reduced-motion: reduce) { .mm-cw .mm-cw__fab::after { animation: none; } }
@media (max-width: 600px) {
  /* поднимаем выше панели Safari/жеста (safe-area) + запас, чтобы тень не обрывалась о низ */
  .mm-cw { right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 106px); }
  .mm-cw__fab { width: 52px; height: 52px; }
}
@media (max-width: 768px) {
  .mm-cw { transition: transform .28s ease, opacity .28s ease; }
  /* пока открыт нижний попап подписки — временно прячем FAB, чтобы не пересекался с ним */
  body.mm-tgpop-open .mm-cw { transform: translateY(180%); opacity: 0; pointer-events: none; }
}

/* ── Панель встроенного онлайн-чата amoCRM (mode:frame, чат рендерится в #mmChatHolder) ── */
.mm-chatpanel { position: fixed; right: 24px; bottom: 24px; z-index: 1031;
  width: 372px; max-width: calc(100vw - 28px); height: 544px; max-height: calc(100vh - 92px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 18px; border: 1px solid rgba(27,29,34,.08);
  box-shadow: 0 24px 60px rgba(20,40,60,.28);
  /* держим в раскладке даже скрытой, чтобы amo отрисовал iframe в правильном размере */
  visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(12px) scale(.98);
  transform-origin: right bottom; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.mm-chatpanel.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
.mm-chatpanel__head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 8px 0 18px; background: var(--teal, #18a2b0); color: #fff; }
.mm-chatpanel__title { font-weight: 600; font-size: 15px; }
.mm-chatpanel__close { width: 36px; height: 36px; border: 0; background: transparent; color: #fff; cursor: pointer;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.mm-chatpanel__close:hover { background: rgba(255,255,255,.18); }
.mm-chatpanel__close svg { width: 20px; height: 20px; display: block; }
.mm-chatpanel__body { flex: 1 1 auto; position: relative; overflow: hidden; background: #fff; }
/* холдер выше видимой области на высоту amo-шапки (~56px) и сдвинут вверх: amo рисует чат на
   ВСЮ высоту холдера (шапка+переписка+поле), синяя шапка уходит за верхний край, а поле ввода
   остаётся ровно внизу — без белой полосы снизу. Оставляем только нашу шапку с крестиком. */
.mm-chatpanel__frame { position: absolute; left: 0; right: 0; top: -56px; height: calc(100% + 56px); }
.mm-chatpanel__frame iframe { width: 100% !important; height: 100% !important; border: 0 !important; display: block; }
@media (max-width: 480px) {
  .mm-chatpanel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 76px); }
}
