/* ==========================================================================
   Fitness Formula — редизайн 2026
   Шапка «Поиск в центре» (Шапка 02) + футер «Светлый модульный» (Футер 02)
   Прототип для согласования. Шрифты и логотип берутся из /public проекта.
   ========================================================================== */

/* ------------------------------- Шрифты --------------------------------- */
@font-face{font-family:'Proxima Nova';src:url('../fonts/ProximaNova-Regular.woff2') format('woff2'),url('../fonts/ProximaNova-Regular.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Proxima Nova';src:url('../fonts/ProximaNova-Semibold.woff2') format('woff2'),url('../fonts/ProximaNova-Semibold.woff') format('woff');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Proxima Nova';src:url('../fonts/ProximaNova-Bold.woff2') format('woff2'),url('../fonts/ProximaNova-Bold.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Uni Sans Caps';src:url('../fonts/UniSansHeavyCapsItalic.woff2') format('woff2'),url('../fonts/UniSansHeavyCapsItalic.woff') format('woff');font-weight:900;font-style:italic;font-display:swap}

/* ------------------------------- Токены --------------------------------- */
:root{
  /* синий: в шапке — проектный, в футере макет использует более яркий CTA */
  --blue:#007dbb;
  --blue-hover:#006a9e;
  --blue-bright:#0d82e8;
  --blue-bright-hover:#0a6fce;

  --navy:#123a63;          /* заголовки, пункты меню, иконки */
  --ink:#2b3c5e;           /* основной текст */
  --muted:#6b7b96;         /* второстепенный текст */
  --muted-2:#8b97ad;       /* подписи под иконками действий, плейсхолдеры */

  --red:#e72419;
  --red-badge:#e11a10;

  --tint:#e8f6fe;          /* сервисная строка */
  --tint-soft:#eef6fe;     /* блок подписки в футере */
  --panel:#f5f7fa;         /* панель преимуществ */
  --chip:#f4f7fb;          /* чипы на мобильном */
  --social:#f0f4f8;        /* плашки соцсетей */

  --border:#e6ecf3;
  --border-soft:#eef1f5;

  --r-sm:8px;
  --r:12px;
  --r-lg:16px;
  --pill:999px;

  --container:1366px;      /* ширина контента по макетам: Desktop 1366 px */
  --gutter:20px;

  --font:'Proxima Nova','Segoe UI',Roboto,Arial,sans-serif;
  --font-caps:'Uni Sans Caps','Proxima Nova',Arial,sans-serif;
}

/* ------------------------------- База ----------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font);
  font-size:15px;
  line-height:1.45;
  color:var(--ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{list-style:none;margin:0;padding:0}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
svg{display:block}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.container{max-width:calc(var(--container) + var(--gutter) * 2);padding:0 var(--gutter);margin:0 auto;width:100%}
.ic{width:20px;height:20px;fill:currentColor;flex:none}
.ic--stroke{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* пунктирное подчёркивание (город, телефон, ссылка «в Тамбов») */
.dashed{border-bottom:1px dashed currentColor;padding-bottom:1px}

/* ==========================================================================
   ШАПКА
   ========================================================================== */
/* z-index 56: выше .catalog-backdrop (55), иначе затемнение перекрывает
   выпадающее мегаменю, которое лежит внутри шапки */
.hdr{background:#fff;position:relative;z-index:56}
.hdr--sticky{position:sticky;top:0}

/* --- сервисная строка --- */
/* высоты и отступы — по замерам макета, пересчитанным в CSS-пиксели */
.hdr__top{background:var(--tint);font-size:13px;font-weight:600}
.hdr__top-in{display:flex;align-items:center;height:56px;gap:24px}
.hdr__top-left{display:flex;align-items:center;min-width:0}
.hdr__city{margin-right:46px}
.hdr__free{display:inline-flex;align-items:center;gap:8px;color:var(--muted);margin-right:30px}
.hdr__top a{display:inline-flex;align-items:center;gap:8px;color:var(--muted);transition:color .18s}
.hdr__top a:hover{color:var(--blue)}
.hdr__top .ic{width:17px;height:17px;color:var(--navy)}
.hdr__city{color:var(--blue)!important}
.hdr__city .ic{color:var(--blue)}
.hdr__links{margin-left:auto;display:flex;align-items:center;gap:26px}
.hdr__links a{color:var(--ink)}

/* --- основная строка --- */
.hdr__main{display:flex;align-items:center;gap:22px;padding:22px 0}
.hdr__logo{flex:none}
.hdr__logo img{width:135px;height:36px}

.btn-catalog{
  display:inline-flex;align-items:center;gap:10px;flex:none;
  height:47px;padding:0 21px;border:0;border-radius:var(--r);
  background:var(--blue);color:#fff;font-size:15px;font-weight:600;white-space:nowrap;
  transition:background .18s;
}
.btn-catalog:hover{background:var(--blue-hover)}
/* иконка плиток → крестик при открытом меню */
.btn-catalog__tiles{width:18px;height:18px}
.btn-catalog__x{display:none;width:16px;height:16px}
.btn-catalog.is-open .btn-catalog__tiles{display:none}
.btn-catalog.is-open .btn-catalog__x{display:block}

/* --- поиск --- */
.search{flex:1;min-width:0}
.search__form{
  display:flex;align-items:center;gap:8px;height:52px;padding:5px 5px 5px 18px;
  background:#fff;border:2px solid var(--blue);border-radius:var(--pill);
  transition:box-shadow .18s;
}
.search__form:focus-within{box-shadow:0 0 0 3px rgba(0,125,187,.16)}
.search__form .ic{width:19px;height:19px;color:var(--navy)}
.search__input{
  flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;
  font-size:15px;font-weight:400;
}
.search__input::placeholder{color:var(--muted-2)}
/* кнопка растягивается по внутренней высоте капсулы (38px) и повторяет её
   внутренний радиус: 26 (внешний) − 2 (рамка) − 5 (паддинг) = 19px = половина
   высоты кнопки, поэтому pill даёт ровное концентричное скругление */
.search__btn{
  flex:none;align-self:stretch;display:inline-flex;align-items:center;justify-content:center;
  padding:0 26px;border:0;border-radius:var(--pill);
  background:var(--blue);color:#fff;font-size:15px;font-weight:700;
  transition:background .18s;
}
.search__btn:hover{background:var(--blue-hover)}

/* --- действия --- */
.hdr__actions{display:flex;align-items:center;gap:4px;margin-left:auto}
.act{
  position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;
  min-width:62px;padding:6px 8px;border-radius:var(--r);color:var(--ink);
  transition:background .18s,color .18s;
}
.act:hover{background:var(--tint);color:var(--blue)}
.act .ic{width:24px;height:24px;color:var(--navy);transition:color .18s}
.act:hover .ic{color:var(--blue)}
.act__label{font-size: 12px;font-weight:600;line-height:1;color:var(--ink)}
.act__count{
  position:absolute;top:0;right:11px;min-width:19px;height:19px;padding:0 5px;
  display:flex;align-items:center;justify-content:center;border-radius:var(--pill);
  background:var(--red-badge);color:#fff;font-size:11px;font-weight:700;
}

/* ==========================================================================
   ВЫПАДАЮЩЕЕ МЕНЮ КАТАЛОГА
   ========================================================================== */
.catalog-menu{
  position:absolute;left:0;right:0;top:100%;z-index:60;
  background:#fff;border-top:1px solid var(--border-soft);
  box-shadow:0 18px 40px rgba(18,58,99,.12);
}
.catalog-menu[hidden]{display:none}
/* высоту задаёт контент активной панели — без пустоты внизу */
.catalog-menu__in{display:flex;gap:0;min-height:0;align-items:stretch}

/* --- левая колонка: разделы --- */
.catalog-menu__aside{
  flex:none;width:296px;padding:14px 12px 14px 0;
  border-right:1px solid var(--border-soft);
  display:flex;flex-direction:column;gap:2px;
}
.catalog-menu__root{
  display:flex;align-items:center;gap:12px;width:100%;
  padding:11px 12px;border:0;border-radius:var(--r);
  background:transparent;color:var(--navy);
  font-family:inherit;font-size:15px;font-weight:600;text-align:left;
  cursor:pointer;transition:background .16s,color .16s;
}
.catalog-menu__root .ic{width:20px;height:20px;color:var(--muted);flex:none}
.catalog-menu__root .catalog-menu__chev{
  margin-left:auto;width:13px;height:13px;color:var(--muted-2);
  opacity:0;transition:opacity .16s;
}
.catalog-menu__root:hover{background:var(--panel)}
.catalog-menu__root.is-active{background:var(--tint);color:var(--blue-bright)}
.catalog-menu__root.is-active .ic{color:var(--blue-bright)}
.catalog-menu__root.is-active .catalog-menu__chev{opacity:1}

/* --- правая часть: панели --- */
.catalog-menu__panels{flex:1;min-width:0;padding:22px 0 22px 28px}
.catalog-menu__panel[hidden]{display:none}
.catalog-menu__panel.is-active{display:flex;gap:28px;animation:menu-in .2s ease}
@keyframes menu-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.catalog-menu__grid{
  flex:1;min-width:0;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px 24px;align-content:start;
}
.catalog-menu__col{min-width:0}
.catalog-menu__h{
  display:block;margin-bottom:9px;
  font-size:14px;font-weight:700;color:var(--navy);
}
.catalog-menu__h:hover{color:var(--blue-bright)}
.catalog-menu__list{display:flex;flex-direction:column;gap:7px}
.catalog-menu__list a{
  font-size:13.5px;line-height:1.3;color:var(--ink);
  transition:color .16s;
}
.catalog-menu__list a:hover{color:var(--blue-bright)}

/* --- промо-блок --- */
.catalog-menu__promo{
  position:relative;overflow:hidden;
  flex:none;width:228px;padding:22px 20px 24px;border-radius:var(--r-lg);
  background:var(--blue);
  display:flex;flex-direction:column;align-items:flex-start;gap:6px;
}
.catalog-menu__promo-h{font-size:19px;font-weight:700;color:#fff}
.catalog-menu__promo-t{font-size:13px;line-height:1.4;color:rgba(255,255,255,.85);margin-bottom:10px}
.catalog-menu__promo .btn{margin-top:auto;z-index:1}
/* фото товара снизу справа, обрезается скруглением блока */
.catalog-menu__promo-img{
  position:absolute;right:-14px;bottom:-10px;width:132px;height:auto;
  pointer-events:none;z-index:0;filter:drop-shadow(0 10px 18px rgba(18,58,99,.25));
}
/* текст и кнопка над фото */
.catalog-menu__promo-h,
.catalog-menu__promo-t{position:relative;z-index:1}
/* фото не выше нижней половины блока — текст остаётся чистым */
.catalog-menu__promo-img{
  max-height:112px;object-fit:contain;object-position:center bottom;
}
/* фото не перекрывает кнопку: она прижата к низу, поэтому фото смещаем вправо-вниз */
.catalog-menu__promo .btn{
  max-width:150px;
}

/* затемнение под меню: скрыто, пока меню закрыто — иначе прозрачный
   слой перехватывает клики по всей странице */
.catalog-backdrop{
  position:fixed;inset:0;z-index:55;background:rgba(18,58,99,.32);
  opacity:0;visibility:hidden;pointer-events:none;
  /* transition только для opacity: visibility переключается мгновенно,
     иначе слой остаётся «видимым» на время анимации */
  transition:opacity .2s;
}
.catalog-backdrop.is-show{opacity:1;visibility:visible;pointer-events:auto}

/* --- строка меню --- */
.hdr__nav{border-top:1px solid var(--border-soft)}
.hdr__nav-in{display:flex;align-items:center;justify-content:center;gap:38px;height:60px}
.nav-item{
  display:inline-flex;align-items:center;gap:9px;
  font-size:15px;font-weight:600;color:var(--navy);transition:color .18s;
}
.nav-item:hover{color:var(--blue)}
.nav-item .ic{width:22px;height:22px;color:var(--navy)}
.nav-item .ic--stroke{width:11px;height:8px}
.nav-item.is-sale{color:var(--red)}
.nav-item.is-sale:hover{color:#c81c13}
.nav-item.is-sale .ic{color:var(--red)}

/* --- бургер (виден только на мобильном) --- */
.hdr__burger{
  display:none;width:44px;height:44px;margin-left:-8px;align-items:center;justify-content:center;
  border:0;background:transparent;border-radius:10px;color:var(--navy);
  transition:background .18s;
}
.hdr__burger:hover{background:var(--tint)}
.hdr__burger .ic{width:22px;height:16px;stroke-width:2.2}

/* ==========================================================================
   МОБИЛЬНАЯ ШАПКА
   ========================================================================== */
.hdr-m{background:#fff}
.hdr-m__top{background:var(--tint);font-size:13px;font-weight:600}
.hdr-m__top-in{display:flex;align-items:center;justify-content:space-between;gap:10px;height:40px}
.hdr-m__top a{display:inline-flex;align-items:center;gap:7px;color:var(--ink);white-space:nowrap}
.hdr-m__top .ic{width:15px;height:15px;color:var(--navy)}
.hdr-m__free{display:inline-flex;align-items:center;gap:7px;color:var(--ink);white-space:nowrap;font-size:13px}

.hdr-m__main{display:flex;align-items:center;gap:10px;padding:15px 0}
.hdr-m__logo{flex:none;margin:0 auto}
.hdr-m__logo img{width:117px;height:31px}
.hdr-m__actions{display:flex;align-items:center;gap:14px;margin-left:auto}
.hdr-m__act{position:relative;width:24px;height:26px;display:flex;align-items:center;justify-content:center;color:var(--navy)}
.hdr-m__act .ic{width:23px;height:23px}
.hdr-m__count{
  position:absolute;top:-3px;right:-7px;min-width:17px;height:17px;padding:0 4px;
  display:flex;align-items:center;justify-content:center;border-radius:var(--pill);
  background:var(--red-badge);color:#fff;font-size:10px;font-weight:700;
}
.hdr-m__burger{
  width:26px;height:26px;display:flex;align-items:center;justify-content:center;
  border:0;background:transparent;color:var(--navy);padding:0;margin-left:2px;
}
.hdr-m__burger svg{width:22px;height:22px}

.hdr-m__search{padding-bottom:12px}
.hdr-m__search-form{
  display:flex;align-items:center;gap:8px;height:49px;padding:3px 3px 3px 15px;
  border:2px solid var(--blue);border-radius:var(--pill);background:#fff;
}
.hdr-m__search-form .ic{width:18px;height:18px;color:var(--navy);flex:none}
.hdr-m__search-input{flex:1;min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:14px}
.hdr-m__search-input::placeholder{color:var(--muted-2)}
/* тот же принцип: 24.5 − 2 − 3 ≈ 19.5px = половина высоты кнопки (39px) */
.hdr-m__search-btn{
  flex:none;align-self:stretch;display:inline-flex;align-items:center;justify-content:center;
  padding:0 18px;border:0;border-radius:var(--pill);
  background:var(--blue);color:#fff;font-size:14px;font-weight:700;
}

.hdr-m__chips{display:flex;gap:2px;overflow-x:auto;padding:0 0 14px;scrollbar-width:none}
.hdr-m__chips::-webkit-scrollbar{display:none}
.chip{
  display:inline-flex;align-items:center;gap:5px;flex:none;height:38px;padding:0 9px;
  background:var(--chip);border-radius:var(--pill);
  font-size:12px;font-weight:600;color:var(--navy);letter-spacing:-.01em;
}
.chip .ic{width:14px;height:14px;color:var(--navy)}
.chip.is-sale{color:var(--red)}
.chip.is-sale .ic{color:var(--red);width:16px;height:16px}

/* --- открытое мобильное меню (выезжающая панель слева) --- */
.mmenu{
  position:fixed;top:0;left:0;bottom:0;z-index:100;
  width:min(88vw,340px);background:#fff;overflow:hidden;
  transform:translateX(-102%);
  transition:transform .28s ease;
  box-shadow:0 0 40px rgba(18,58,99,.18);
}
.mmenu.is-open{transform:none}
.mmenu__main{height:100%;overflow-y:auto}
.mmenu-backdrop{
  position:fixed;inset:0;z-index:99;background:rgba(18,58,99,.45);
  opacity:0;pointer-events:none;transition:opacity .28s ease;
}
.mmenu-backdrop.is-show{opacity:1;pointer-events:auto}
body.is-mmenu-open{overflow:hidden}

/* --- панель каталога внутри меню: плитки категорий --- */
.mmenu__catalog{
  position:absolute;inset:0;z-index:2;background:#fff;
  overflow-y:auto;padding:0 20px 20px;display:none;
}
.mmenu.is-catalog .mmenu__catalog{display:block}
.mmenu.is-catalog .mmenu__main{display:none}
.mmenu__cat-head{
  position:sticky;top:0;z-index:3;background:#fff;
  display:flex;align-items:center;padding:15px 0 12px;
}
.mmenu__back{
  display:inline-flex;align-items:center;gap:10px;border:0;background:transparent;
  padding:0;cursor:pointer;font-family:inherit;
  font-size:15px;font-weight:700;color:var(--navy);
}
.mmenu__back .ic{width:22px;height:22px}
.mmenu__cat-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
}
.mmenu__cat{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:14px 8px 10px;border-radius:var(--r);background:var(--panel);
  text-align:center;transition:background .18s;
}
.mmenu__cat:hover{background:var(--tint)}
.mmenu__cat-img{
  height:64px;display:flex;align-items:center;justify-content:center;
}
.mmenu__cat-img img{max-height:64px;max-width:100%;object-fit:contain}
.mmenu__cat-name{
  font-size:12.5px;font-weight:600;color:var(--navy);line-height:1.25;
}
.mmenu__item--btn{
  width:100%;border:0;background:transparent;text-align:left;
  font-family:inherit;cursor:pointer;
}

.mmenu__head{display:flex;align-items:center;gap:10px;padding:15px 0 4px}
.mmenu__close{
  width:26px;height:26px;display:flex;align-items:center;justify-content:center;
  border:0;background:transparent;color:var(--navy);padding:0;margin-left:2px;
}
.mmenu__close svg{width:22px;height:22px}
.mmenu__head .hdr-m__logo{margin:0}
.mmenu__list{padding:2px 0 6px}
.mmenu__item{
  display:flex;align-items:center;gap:14px;height:50px;
  border-bottom:1px solid var(--border-soft);
  font-size:15px;font-weight:600;color:var(--navy);
}
.mmenu__item:last-child{border-bottom:0}
.mmenu__item .ic{width:30px;height:30px}
.mmenu__item .mmenu__arrow{margin-left:auto;width:8px;height:14px;stroke-width:2.2;color:var(--navy)}
.mmenu__item.is-sale{color:var(--red)}
.mmenu__sep{height:0;border-top:1px solid var(--border-soft);margin:2px 0 8px}
.mmenu__sub{padding:2px 0 14px}
.mmenu__sub a{
  display:flex;align-items:center;gap:14px;height:44px;
  font-size:14px;font-weight:400;color:var(--ink);
}
.mmenu__sub .ic{width:20px;height:20px;color:var(--navy)}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.ftr{background:#fff;border-top:1px solid var(--border-soft);padding:30px 0 28px}

/* --- блок подписки --- */
.ftr-sub{
  position:relative;overflow:hidden;border-radius:var(--r-lg);background:var(--tint-soft);
  padding:30px 40px;margin-bottom:34px;
}
.ftr-sub__row{display:flex;align-items:flex-start;gap:30px;position:relative;z-index:2}
.ftr-sub__title{margin:0 0 8px;font-size:27px;line-height:1.15;font-weight:700;color:var(--navy);white-space:nowrap}
.ftr-sub__title b{color:var(--blue-bright);font-weight:700}
.ftr-sub__text{margin:0;font-size:14px;line-height:1.5;color:var(--ink);max-width:320px}
.ftr-sub__col-main{flex:none;width:330px}
.ftr-sub__col-form{flex:none;width:368px;padding-top:6px}
.ftr-sub__form{display:flex;gap:12px;margin:0 0 12px}
.ftr-sub__input{
  flex:1;min-width:0;height:46px;padding:0 18px;background:#fff;
  border:1px solid #dfe8f2;border-radius:var(--r);font-size:15px;outline:0;
}
.ftr-sub__input::placeholder{color:var(--muted-2)}
.ftr-sub__input:focus{border-color:var(--blue-bright)}
.ftr-sub__btn{
  flex:none;height:46px;padding:0 24px;border:0;border-radius:var(--r);
  background:var(--blue-bright);color:#fff;font-size:15px;font-weight:700;white-space:nowrap;
  transition:background .18s;
}
.ftr-sub__btn:hover{background:var(--blue-bright-hover)}

.check{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.check__input{position:absolute;opacity:0;width:0;height:0}
.check__box{
  /* 18px бокс против строки 16.2px (12px × 1.35): -1px центрирует по первой строке */
  flex:none;width:18px;height:18px;margin-top:-1px;border-radius:4px;
  background:var(--blue-bright);position:relative;
}
.check__box::after{
  content:'';position:absolute;left:5px;top:2px;width:5px;height:9px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);
}
.check__text{font-size:12px;line-height:1.35;color:var(--ink)}
.check__text a{color:var(--blue-bright)}

.ftr-sub__deco{position:absolute;right:24px;bottom:0;top:0;width:200px;pointer-events:none;display:flex;align-items:flex-end;justify-content:flex-end}
.ftr-sub__deco img{width:190px;height:auto;object-fit:contain}
.ftr-sub__bottle{position:absolute;right:0;bottom:0;width:160px;height:auto}
.ftr-sub__badge{
  position:absolute;right:104px;top:34px;width:132px;
  display:flex;align-items:center;gap:8px;padding:12px 16px;
  background:#fff;border-radius:22px;box-shadow:0 6px 18px rgba(18,58,99,.08);
}
.ftr-sub__badge-text{font-size:15px;line-height:1.15;font-weight:700;color:var(--blue-bright)}
.ftr-sub__badge-ic{width:20px;height:18px;fill:var(--blue-bright);flex:none}

/* --- колонки --- */
/* позиции колонок — по замерам макета в CSS-пикселях:
   бренд от 0, меню от 309 / 529 / 738, панель преимуществ 958…1260 */
/* Колонки футера: ширины подобраны так, чтобы занять весь контейнер 1366
   без пустого «провала» перед панелью преимуществ и без комканья меню. */
.ftr__cols{display:flex;gap:24px;align-items:flex-start}
.ftr__brand{flex:none;width:250px}
/* логотип — блочный: у строчного <a> вертикальный margin не работал,
   из-за чего отступ до контактов не задавался */
.ftr__logo{display:inline-flex;margin-bottom:20px}
.ftr__logo img{width:130px;height:35px}
.ftr__contacts{display:flex;flex-direction:column;gap:9px;margin-bottom:18px}
.ftr__contact{display:flex;align-items:flex-start;gap:11px;font-size:15px;font-weight:600;color:var(--ink)}
.ftr__contact .ic{width:19px;height:19px;color:var(--blue-bright);flex:none;margin-top:1px}
.ftr__contact .dashed{color:var(--blue-bright);white-space:nowrap}
.ftr__socials{display:flex;gap:9px}
.ftr__social{
  width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  background:var(--social);border-radius:var(--r);color:var(--navy);
  transition:background .18s,color .18s;
}
.ftr__social:hover{background:var(--tint);color:var(--blue-bright)}
.ftr__social .ic{width:21px;height:21px}

/* меню: колонки шире, пункты не переносятся на вторую строку */
.ftr__nav{display:flex;flex:1 1 auto;gap:22px;min-width:0}
.ftr__col:nth-child(1){width:216px}
.ftr__col:nth-child(2){width:200px}
.ftr__col:nth-child(3){width:194px}
.ftr__col{flex:1 1 auto;min-width:150px}
.ftr__title{margin:0 0 16px;font-size: 16px;line-height:1.3;font-weight:700;color:var(--navy)}
.ftr__list{display:flex;flex-direction:column;gap:12px}
.ftr__list a{font-size: 14.5px;line-height:1.35;color:var(--ink);transition:color .18s}
.ftr__list a:hover{color:var(--blue-bright)}

/* Ширины блоков футера подобраны так, чтобы суммарно укладываться
   в контейнер 1366 (внутренняя ширина 1326): описания преимуществ идут
   в одну строку, а меню перестаёт комкаться. */
.ftr__features{
  flex:none;width:356px;margin-left:auto;padding:24px 24px;border-radius:var(--r-lg);background:var(--panel);
  display:flex;flex-direction:column;gap:22px;
}
.feat{display:flex;gap:14px;align-items:flex-start}
.feat__ic{
  flex:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  background:#e7eff8;border-radius:var(--pill);color:var(--blue-bright);
}
.feat__ic .ic{width:22px;height:22px}
.feat__title{margin:0 0 2px;font-size:14.5px;font-weight:700;color:var(--navy);line-height:1.3}
.feat__text{margin:0;font-size: 13.5px;line-height:1.35;color:var(--muted)}

/* --- нижняя строка --- */
.ftr__bottom{
  display:flex;align-items:center;gap:24px;margin-top:30px;padding-top:22px;
  border-top:1px solid var(--border);
  font-size:14px;color:var(--muted);
}
.ftr__copy{flex:none}
.ftr__bot-links{display:flex;align-items:center;gap:10px;margin-left:auto}
.ftr__bot-links a{color:var(--muted);transition:color .18s}
.ftr__bot-links a:hover{color:var(--blue-bright)}
.ftr__sep{color:#c9d4e0}
.ftr__site{display:inline-flex;align-items:center;gap:7px;flex:none;font-weight:700;color:var(--navy)}
.ftr__site .ic{width:15px;height:20px;color:var(--blue-bright)}

/* ==========================================================================
   МОБИЛЬНЫЙ ФУТЕР
   ========================================================================== */
.ftr-m{background:#fff;padding-bottom:24px}
.ftr-m__card{background:#f7fafd;border-radius:var(--r-lg);padding:4px 0;margin-bottom:18px}
.ftr-m__contact{display:flex;align-items:center;gap:15px;padding:12px 18px;font-size:14px;font-weight:600;color:var(--ink)}
.ftr-m__contact .ic{width:20px;height:20px;color:var(--blue-bright);flex:none}
.ftr-m__contact span{min-width:0}
.ftr-m__contact .dashed{color:var(--blue-bright);white-space:nowrap}
.ftr-m__contact--arrow .ic:last-child{margin-left:auto;width:8px;height:14px;color:var(--navy)}

.ftr-m__sub{
  position:relative;overflow:hidden;border-radius:var(--r-lg);background:var(--tint-soft);
  padding:18px 18px 20px;margin-bottom:22px;
}
.ftr-m__sub-title{margin:0 0 8px;font-size:21px;line-height:1.2;font-weight:700;color:var(--navy);white-space:nowrap}
.ftr-m__sub-title b{color:var(--blue-bright)}
.ftr-m__sub-text{margin:0 0 14px;font-size:13px;line-height:1.45;color:var(--ink);max-width:240px}
.ftr-m__sub-form{display:flex;gap:8px;margin-bottom:12px;position:relative;z-index:2}
.ftr-m__sub-input{
  flex:1;min-width:0;height:44px;padding:0 15px;background:#fff;
  border:1px solid #dfe8f2;border-radius:var(--r);font-size:14px;outline:0;
}
.ftr-m__sub-input::placeholder{color:var(--muted-2)}
.ftr-m__sub-btn{
  flex:none;height:44px;padding:0 18px;border:0;border-radius:var(--r);
  background:var(--blue-bright);color:#fff;font-size:14px;font-weight:700;
}
.ftr-m__sub-plane{position:absolute;right:8px;bottom:0;width:96px;height:auto;opacity:.95}

.ftr-m__acc{border-top:1px solid var(--border-soft)}
.ftr-m__acc-head{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 0;border:0;background:transparent;text-align:left;
  font-size:15px;font-weight:700;color:var(--navy);
}
.ftr-m__acc-head .ic{width:14px;height:9px;stroke-width:2.2;color:var(--navy);transition:transform .2s}
.ftr-m__acc.is-open .ftr-m__acc-head .ic{transform:rotate(180deg)}
.ftr-m__acc-body{display:none;padding:0 0 14px}
.ftr-m__acc.is-open .ftr-m__acc-body{display:flex;flex-direction:column;gap:12px}
.ftr-m__acc-body a{font-size:14px;color:var(--ink)}

.ftr-m__socials{display:flex;gap:9px;padding:20px 0 18px}
.ftr-m__social{
  width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  background:var(--social);border-radius:var(--r);color:var(--navy);
}
.ftr-m__social .ic{width:21px;height:21px}
.ftr-m__copy{font-size:14px;color:var(--muted);margin-bottom:10px}
.ftr-m__links{display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--muted)}
.ftr-m__links a{color:var(--muted)}
.ftr-m__links-row{display:flex;align-items:center;gap:12px}
.ftr-m__links-row .ftr__sep{color:#c9d4e0}

/* ==========================================================================
   Переключатели видимости: desktop / mobile
   ========================================================================== */
.only-m{display:none}
@media (max-width:1023px){
  .only-d{display:none!important}
  .only-m{display:block}
}

/* 1024–1365: до эталонных 1366 футер плавно ужимается, чтобы не вылезать
   за контейнер; на 1366 и шире действуют точные ширины выше. */
@media (min-width:1024px) and (max-width:1347px){
  .ftr__cols{gap:16px}
  .ftr__brand{width:200px}
  .ftr__nav{gap:14px}
  .ftr__col:nth-child(1){width:158px;min-width:140px}
  .ftr__col:nth-child(2){width:150px;min-width:132px}
  .ftr__col:nth-child(3){width:142px;min-width:118px}
  .ftr__features{flex:1 1 auto;min-width:230px;max-width:420px;padding:20px 18px;gap:18px}
  .ftr__col{min-width:118px}
  .ftr__list a{font-size:14px}
}

/* 1024–1240: в мегаменю убираем промо-блок — иначе колонки каталога
   сжимаются до ~120px и ссылки переносятся в нечитаемые обрывки */
@media (min-width:1024px) and (max-width:1240px){
  .catalog-menu__promo{display:none}
  .catalog-menu__aside{width:260px}
  .catalog-menu__panels{padding-left:24px}
}

/* ==========================================================================
   Заглушка основного контента (в прототипе — «случайный» контент)
   ========================================================================== */
.stub{padding:34px 0 60px}
.stub__h1{margin:0 0 18px;font-size:32px;font-weight:700;color:var(--navy)}
.stub__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.stub__card{border:1px solid var(--border);border-radius:var(--r);padding:16px;min-width:0}
.stub__ph{height:130px;border-radius:var(--r-sm);background:linear-gradient(135deg,#eaf3fb,#dfeaf6);margin-bottom:14px}
.stub__name{margin:0 0 8px;font-size:14px;font-weight:600;color:var(--navy);line-height:1.3}
.stub__price{font-size:18px;font-weight:700;color:var(--navy)}
.stub__text{margin:24px 0 0;color:var(--muted);max-width:70ch}
@media (max-width:1023px){
  .stub__grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .stub__h1{font-size:24px}
}

/* кнопки демо-страницы модалок */
.demo-btns{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}

/* ==========================================================================
   Витрина состояний (только для страниц-демо)
   ========================================================================== */
.demo{background:#eef1f5;padding:28px 20px 60px;min-height:100vh}
.demo__wrap{max-width:1440px;margin:0 auto}
.demo__h{font-size:22px;font-weight:700;color:var(--navy);margin:0 0 6px}
.demo__note{color:var(--muted);margin:0 0 22px;max-width:90ch}
.demo__cap{font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:0 0 10px}
.demo__frame{background:#fff;border-radius:var(--r-lg);overflow:hidden;box-shadow:0 8px 28px rgba(18,58,99,.08);margin-bottom:34px}
.demo__frame--desk{width:1366px;max-width:100%}
.demo__phones{display:flex;gap:28px;flex-wrap:wrap}
.phone{
  width:390px;flex:none;background:#fff;border-radius:34px;padding:0;
  box-shadow:0 10px 30px rgba(18,58,99,.14);overflow:hidden;border:1px solid #e2e8f0;
}
.phone__screen{height:844px;overflow-y:auto;overflow-x:hidden;background:#fff}
.phone__screen::-webkit-scrollbar{width:0}
.demo__legend{margin:0 0 12px;color:var(--muted);font-size:14px}

/* ==========================================================================
   ОФОРМЛЕНИЕ ЗАКАЗА (checkout)
   ========================================================================== */
.co{background:#fff}
.co__head{padding:14px 0 0}
.co__head-in{display:flex;align-items:center;gap:20px}
.co__back{display:inline-flex;align-items:center;gap:9px;flex:none;font-size:14px;font-weight:600;color:var(--navy);transition:color .18s}
.co__back:hover{color:var(--blue)}
.co__back .ic{width:18px;height:14px;stroke-width:2}
.co__logo{margin:0 auto}
.co__logo img{width:127px;height:34px}
.co__city{flex:none;display:inline-flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:13px;color:var(--muted);text-align:right}
.co__city-link{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:var(--blue);font-size:15px}
.co__city-link .ic{width:15px;height:19px}
.co__city-link .ic--stroke{width:11px;height:7px;color:var(--navy)}
.co__h1{margin:24px 0 22px;font-size:32px;line-height:1.15;font-weight:700;color:var(--navy)}

.co__body{display:flex;align-items:flex-start;gap:14px}
.co__main{flex:1;min-width:0}
.co__aside{flex:none;width:349px}   /* замер по макету: сводка 33% контейнера */

/* --- шаг --- */
.step{border:1px solid var(--border);border-radius:var(--r-lg);background:#fff;padding:20px 22px;margin-bottom:16px}
.step__head{display:flex;align-items:center;gap:14px}
.step__num{flex:none;width:28px;height:28px;border-radius:var(--pill);display:flex;align-items:center;justify-content:center}
.step__num--done{background:#0aa653;color:#fff}
.step__num--done svg{width:16px;height:16px}
.step__num--active{background:var(--blue);color:#fff;font-size:14px;font-weight:700}
.step__title{margin:0;font-size:17px;font-weight:700;color:var(--blue)}
.step--plain .step__title{color:var(--navy)}
.step__edit{margin-left:auto;font-size:14px;font-weight:600;color:var(--blue);transition:opacity .18s;border:0;background:transparent;padding:0;cursor:pointer}
.step__edit:hover{opacity:.75}
.step__body{margin-top:9px;padding-left:42px}
.step__text{margin:0;font-size:14px;color:var(--ink)}
.step__text+.step__text{margin-top:3px}
.step__sep{color:#c9d4e0;margin:0 6px}
.step__muted{color:var(--muted)}

/* --- плитки способа получения --- */
.tiles{display:flex;gap:12px;margin:16px 0 20px}
.tile{flex:1;min-width:0;position:relative;cursor:pointer;border:1px solid var(--border);border-radius:var(--r);padding:16px 10px 14px;text-align:center;background:#fff;transition:border-color .18s,background .18s}
.tile:hover{border-color:#b9d7ea}
.tile.is-active{border:2px solid var(--blue);background:#f2fafe;padding:15px 9px 13px}
.tile__check{position:absolute;top:9px;right:9px;width:19px;height:19px;border-radius:var(--pill);background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center}
.tile__check svg{width:11px;height:11px}
.tile__ic{height:30px;display:flex;align-items:center;justify-content:center;margin-bottom:10px;color:var(--navy)}
.tile__ic .ic{width:30px;height:30px}
.tile__name{display:block;font-size:13.5px;font-weight:700;color:var(--navy);line-height:1.25;white-space:nowrap}
.tile__price{display:block;margin-top:5px;font-size:13px;font-weight:600;color:var(--muted)}
.tile__price.is-free{color:#0aa653}

/* --- магазины --- */
.shops__head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.shops__title{margin:0;font-size:15px;font-weight:700;color:var(--navy)}
.shops__map{margin-left:auto;display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--blue)}
.shops__map .ic{width:15px;height:19px}
.shop{display:flex;align-items:flex-start;gap:14px;cursor:pointer;border:1px solid var(--border);border-radius:var(--r);padding:14px;margin-bottom:10px;background:#fff;transition:border-color .18s}
.shop:last-child{margin-bottom:0}
.shop.is-active{border:2px solid var(--blue);background:#f7fcff;padding:13px}
.shop__radio{flex:none;width:19px;height:19px;margin-top:8px;border-radius:var(--pill);border:2px solid #c9d4e0;position:relative}
.shop.is-active .shop__radio{border-color:var(--blue)}
.shop.is-active .shop__radio::after{content:'';position:absolute;left:3px;top:3px;width:9px;height:9px;border-radius:var(--pill);background:var(--blue)}
.shop__photo{flex:none;width:76px;height:76px;border-radius:var(--r-sm);object-fit:cover}
.shop__info{flex:1;min-width:0}
.shop__top{display:flex;align-items:center;gap:10px;margin-bottom:3px}
.shop__name{margin:0;font-size:15px;font-weight:700;color:var(--navy);line-height:1.25}
.shop__address{display:block;font-size:13px;color:var(--ink);margin-bottom:3px}
.co-m .shop__address{font-size:12px;margin-bottom:4px}
.shop__badge{flex:none;margin-left:auto;padding:4px 11px;border-radius:6px;background:#e2f7ea;font-size:12px;font-weight:700;color:#0aa653;white-space:nowrap}
.shop__row{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--ink);margin-top:5px}
.shop__row .ic{width:15px;height:15px;color:var(--blue);flex:none}
.shop__inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:0;font-size:13px;color:var(--muted)}
.shop__inline span{display:inline-flex;align-items:center;gap:7px}
.shop__inline .ic{width:14px;height:14px;color:var(--blue)}
.shop__inline .shop__sep{color:#c9d4e0}
.shop__inline .shop__badge{margin-left:auto}

/* --- сводка заказа --- */
.sum{border:1px solid var(--border);border-radius:var(--r-lg);background:#fff;padding:20px}
.sum__head{display:flex;align-items:baseline;gap:10px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--border-soft)}
.sum__title{margin:0;font-size:19px;font-weight:700;color:var(--navy)}
.sum__count{margin-left:auto;font-size:13px;color:var(--muted)}
.sum-item{display:flex;gap:14px;padding-bottom:16px;border-bottom:1px solid var(--border-soft)}
.sum-item__photo{flex:none;width:52px;height:62px;object-fit:contain}
.sum-item__info{flex:1;min-width:0}
.sum-item__name{margin:0 0 2px;font-size:14px;font-weight:700;color:var(--navy);line-height:1.3}
.sum-item__sub{font-size:12px;color:var(--muted)}
.sum-item__price{margin-top:8px;font-size:16px;font-weight:700;color:var(--navy)}
.sum-item__qty{flex:none;font-size:13px;color:var(--muted);align-self:flex-end}
.sum-field{padding:14px 0;border-bottom:1px solid var(--border-soft)}
.sum-field__label{display:flex;align-items:center;gap:6px;margin-bottom:8px;font-size:14px;font-weight:700;color:var(--navy)}
.sum-field__label .ic{width:14px;height:14px;color:var(--muted)}
.sum-field__hint{font-size:13px;color:var(--muted);margin-bottom:8px}
.sum-field__form{display:flex;gap:8px}
.sum-input{flex:1;min-width:0;height:38px;padding:0 12px;border:1px solid #dfe8f2;border-radius:var(--r-sm);font-size:13px;outline:0;background:#fff}
.sum-input::placeholder{color:var(--muted-2)}
.sum-input:focus{border-color:var(--blue)}
.sum-input:disabled{background:#f7f9fc;color:var(--muted-2)}
.sum-btn{flex:none;height:38px;padding:0 16px;border:1px solid var(--blue);border-radius:var(--r-sm);background:#fff;color:var(--blue);font-size:13px;font-weight:600;white-space:nowrap;transition:background .18s,color .18s}
.sum-btn:hover{background:var(--blue);color:#fff}
.sum-btn:disabled{border-color:#dfe8f2;color:#b8c4d2;background:#f7f9fc;cursor:default}
.sum-btn:disabled:hover{background:#f7f9fc;color:#b8c4d2}

/* ==========================================================================
   БОНУСЫ — общий компонент (корзина + оформление заказа)
   В сайдбаре чекаута раскладывается вертикально, в широком блоке корзины
   модификатор --wide выстраивает элементы в строку.
   ========================================================================== */
.bonus-widget{padding:14px 0}
/* в сайдбаре чекаута отступы даёт .sum-field — иначе они удваивались */
.sum-field--bonus{padding:0}
.bonus-widget__head{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.bonus-widget__ic{
  flex:none;width:32px;height:32px;border-radius:var(--pill);
  background:var(--tint);color:var(--blue-bright);
  display:flex;align-items:center;justify-content:center;
}
.bonus-widget__ic .ic{width:17px;height:17px}
.bonus-widget__title{font-size:15px;font-weight:700;color:var(--navy)}
.bonus-widget__info{margin-left:auto;width:15px;height:15px;color:var(--muted-2);flex:none}

/* баланс */
.bonus-widget__balance{
  display:flex;align-items:baseline;gap:6px;
  margin-bottom:12px;font-size:13px;color:var(--muted);
}
.bonus-widget__balance b{font-size:15px;color:var(--navy)}

/* чекбокс «использовать бонусы».
   Свой класс, а не .f-check: тот обрабатывается общим initFilters,
   чей _busy-флаг блокировал переключение в этом виджете. */
.bonus-check{
  display:inline-flex;align-items:center;gap:9px;
  margin-bottom:12px;font-size:13.5px;color:var(--ink);cursor:pointer;
  user-select:none;
}
.bonus-check__box{
  flex:none;width:18px;height:18px;border-radius:5px;
  border:1.5px solid var(--border);background:#fff;color:transparent;
  display:flex;align-items:center;justify-content:center;
  transition:background .16s,border-color .16s;
}
.bonus-check__box .ic{width:10px;height:10px}
.bonus-check.is-on .bonus-check__box{background:var(--blue);border-color:var(--blue);color:#fff}
.bonus-check:hover .bonus-check__box{border-color:var(--blue)}

/* пока чекбокс снят, поле ввода и кнопка неактивны */
.bonus-widget:not(.is-on) .bonus-widget__form{opacity:.5;pointer-events:none}
.bonus-widget:not(.is-on) .bonus-widget__saved{display:none}

/* поле ввода + кнопка */
.bonus-widget__form{display:flex;gap:8px}
.bonus-widget__form .sum-input{flex:1;min-width:0}
.bonus-widget__form .sum-btn{flex:none}

/* плашка «экономия» — компактная пилюля одной высоты с полями ввода */
.bonus-widget__saved{
  display:none;align-items:center;gap:7px;
  height:38px;padding:0 13px;border-radius:var(--r-sm);
  background:#e2f7ea;font-size:12.5px;font-weight:600;
  color:#0a8f47;white-space:nowrap;
}
.bonus-widget__saved .ic{width:14px;height:14px;flex:none}
.bonus-widget.is-on .bonus-widget__saved{display:inline-flex}
/* неактивное состояние: чекбокс снят — поле и кнопка приглушены */
.bonus-widget:not(.is-on) .bonus-widget__form{opacity:.5;pointer-events:none}

/* --- широкая раскладка (блок в корзине) --- */
/* --- аккордеон (мобильные блоки: бонусы, состав заказа) ---
   Лежит в base.css, а не в cart.css: используется и в корзине,
   и в оформлении заказа. */
.cart-acc{
  border:1px solid var(--border);border-radius:var(--r-lg);background:#fff;
  margin-bottom:14px;overflow:hidden;
}
.cart-acc__head{
  display:flex;align-items:center;gap:11px;width:100%;
  padding:16px;border:0;background:transparent;
  font-family:inherit;font-size:15px;font-weight:700;color:var(--navy);
  cursor:pointer;text-align:left;
}
.cart-acc__head:hover{background:var(--panel)}
.cart-acc__title{font-size:15px;font-weight:700;color:var(--navy);white-space:nowrap}
.cart-acc__meta{margin-left:auto;font-size:12.5px;font-weight:400;color:var(--muted);white-space:nowrap}
.cart-acc__chev{width:14px;height:14px;flex:none;transition:transform .2s}
.cart-acc.is-open .cart-acc__chev{transform:rotate(180deg)}
.cart-acc__body{display:none;padding:0 16px 16px}
.cart-acc.is-open .cart-acc__body{display:block}
.cart-acc__body .bonus-widget__form{margin-bottom:10px}

/* --- широкая раскладка (внутри карточки .step) ---
   padding:0 — отступы даёт карточка, виджет их не дублирует.
   Две ровные строки: шапка с балансом справа и строка действий,
   где чекбокс слева, форма с плашкой — справа. Все элементы
   управления одной высоты (38px). */
.bonus-widget--wide{padding:0}
.bonus-widget--wide .bonus-widget__head{
  display:flex;align-items:center;gap:11px;margin-bottom:16px;
}
.bonus-widget--wide .bonus-widget__balance{
  margin:0 0 0 auto;
  font-size:13px;color:var(--muted);
}
.bonus-widget--wide .bonus-widget__balance b{font-size:14px;color:var(--navy)}

.bonus-widget--wide .bonus-widget__row{
  display:flex;align-items:center;gap:16px;
}
.bonus-widget--wide .bonus-widget__balance,
.bonus-widget--wide .bonus-widget__row{margin-top:0}
.bonus-widget--wide .bonus-check{margin-bottom:0;font-size:14px}
.bonus-widget--wide .bonus-widget__form{
  margin-left:auto;
  display:flex;gap:8px;align-items:center;
}
/* компактное поле: «54» не нужен инпут на 190px */
.bonus-widget--wide .bonus-widget__form .sum-input{
  flex:none;width:104px;height:38px;text-align:center;
  font-size:14px;font-weight:600;color:var(--navy);
}
.bonus-widget--wide .bonus-widget__form .sum-btn{height:38px}

/* --- прогресс-бар (в макете блок в подсвеченном боксе) --- *//* --- прогресс-бар (в макете блок в подсвеченном боксе) --- */
.bar{padding:12px 14px 14px;border-bottom:0;border-radius:var(--r);margin:10px 0}
.bar--blue{background:#eaf6fe}
.bar--red{background:#fdf3f3}
/* подарок — янтарный: это позитивное предложение, а не ошибка */
.bar--gift{background:#fff6e8}
.bar--gift .bar__track{background:rgba(255,255,255,.85)}
.bar--gift .bar__fill{background:#f2a33c}
.bar--gift .bar__ic{color:#d98324}
.bar--gift .bar__amount{color:#c9761d}
.bar__label{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px}
.bar__ic{flex:none;width:26px;height:26px;display:flex;align-items:center;justify-content:center;color:#1a9ae5}
.bar__ic .ic{width:24px;height:24px}
.bar__text{font-size:13px;line-height:1.3;color:var(--ink)}
.bar__note{display:block;font-weight:700;color:var(--navy)}
.bar__amount{margin-left:auto;flex:none;font-size:13px;font-weight:700;white-space:nowrap}
.bar__amount--blue{color:var(--navy)}
.bar__amount--red{color:var(--red)}
.bar__track{height:7px;border-radius:var(--pill);background:#fff;overflow:hidden}
.bar__fill{height:100%;border-radius:var(--pill)}
.bar__fill--blue{background:#1a9ae5}
.bar__fill--red{background:#e5231b}
.bar--red .bar__track{background:#fbe9e8}

/* --- итоги --- */
.sum-total{display:flex;align-items:baseline;gap:12px;padding:16px 0 6px}
.sum-total__label{font-size:20px;font-weight:700;color:var(--navy)}
.sum-total__value{margin-left:auto;font-size:24px;font-weight:700;color:var(--navy)}
.sum-row{display:flex;align-items:baseline;gap:12px;font-size:14px;color:var(--muted);padding:4px 0}
.sum-row__value{margin-left:auto;font-weight:600;color:var(--navy)}
.sum-row__value--red{color:var(--red)}
.sum-row__value--green{color:#0aa653}
.sum-cta{width:100%;height:48px;margin-top:14px;border:0;border-radius:var(--r);background:var(--blue);color:#fff;font-size:16px;font-weight:700;transition:background .18s;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.sum-cta:hover{background:var(--blue-hover)}
.sum-note{display:flex;align-items:flex-start;gap:9px;margin:12px 0 0;font-size:11px;line-height:1.4;color:var(--muted)}
.sum-note .ic{width:15px;height:17px;flex:none;color:var(--muted)}
.sum-note a{color:var(--blue);text-decoration:underline}
.sum-pay{margin-top:14px}
.sum-pay img{width:100%;max-width:262px;height:auto}

/* ==========================================================================
   МОБИЛЬНЫЙ ЧЕКАУТ
   ========================================================================== */
.co-m__head{padding:10px 0 0}
.co-m__head-in{display:flex;align-items:center;gap:12px}
.co-m__burger{width:26px;height:26px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--navy);padding:0}
.co-m__burger svg{width:22px;height:22px}
.co-m__logo{margin:0 auto}
.co-m__logo img{width:113px;height:30px}
.co-m__cart{position:relative;flex:none;width:28px;height:28px;display:flex;align-items:center;justify-content:center;color:var(--navy)}
.co-m__cart .ic{width:24px;height:24px}
.co-m__count{position:absolute;top:-4px;right:-7px;min-width:17px;height:17px;padding:0 4px;display:flex;align-items:center;justify-content:center;border-radius:var(--pill);background:var(--blue);color:#fff;font-size:10px;font-weight:700}
.co-m__nav{display:flex;align-items:flex-end;gap:12px;margin-top:12px}
.co-m__back{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--navy)}
.co-m__back .ic{width:16px;height:13px;stroke-width:2}
.co-m__city{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.co-m__city-link{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--blue)}
.co-m__city-link .ic{width:14px;height:18px}
.co-m__city-link .ic--stroke{width:10px;height:6px;color:var(--navy)}
.co-m__delivery{font-size:11px;color:var(--muted)}
.co-m__h1{margin:18px 0 14px;font-size:24px;line-height:1.15;font-weight:700;color:var(--navy)}

.co-m .step{padding:15px 16px;margin-bottom:11px;border-radius:var(--r)}
.co-m .step__head{gap:11px}
.co-m .step__num{width:24px;height:24px}
.co-m .step__num--done svg{width:13px;height:13px}
.co-m .step__num--active{font-size:13px}
.co-m .step__title{font-size:15px}
.co-m .step__edit{font-size:13px}
.co-m .step__body{padding-left:35px;margin-top:7px}
.co-m .step__text{font-size:13px}
.co-m .tiles{gap:8px;margin:12px 0 16px}
.co-m .tile{padding:13px 6px 11px;border-radius:var(--r-sm)}
.co-m .tile.is-active{padding:12px 5px 10px}
.co-m .tile__check{top:7px;right:7px;width:17px;height:17px}
.co-m .tile__check svg{width:10px;height:10px}
.co-m .tile__ic{height:26px;margin-bottom:8px}
.co-m .tile__ic .ic{width:26px;height:26px}
.co-m .tile__name{font-size:12px;white-space:normal}
.co-m .tile__price{font-size:11px;margin-top:4px}
.co-m .shops__title{font-size:14px}
.co-m .shops__map{font-size:13px}
.co-m .shops__head{margin-bottom:10px}
.co-m .shop{padding:12px;gap:11px;border-radius:var(--r-sm)}
.co-m .shop.is-active{padding:11px}
.co-m .shop__radio{margin-top:8px;width:17px;height:17px}
.co-m .shop.is-active .shop__radio::after{left:3px;top:3px;width:7px;height:7px}
.co-m .shop__photo{width:60px;height:60px}
.co-m .shop__name{font-size:14px;margin-bottom:0;line-height:1.2}
.co-m .shop__badge{font-size:11px;padding:3px 9px}
.co-m .shop__row{font-size:12px;margin-top:4px}
.co-m .shop__row .ic{width:14px;height:14px}
.co-m .shop__inline{font-size:12px;gap:10px}

.co-m__bar{position:sticky;bottom:0;z-index:20;display:flex;align-items:center;gap:14px;margin-top:16px;padding:12px 0 14px;background:#fff;border-top:1px solid var(--border-soft);box-shadow:0 -6px 18px rgba(18,58,99,.06)}
.co-m__totals{flex:none}
.co-m__totals-label{font-size:12px;color:var(--muted);line-height:1.2}
.co-m__totals-value{font-size:20px;font-weight:700;color:var(--navy);line-height:1.2}
.co-m__cta{flex:1;height:50px;border:0;border-radius:var(--r);background:var(--blue);color:#fff;font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}

/* на мобильном мегаменю не нужно — там бургер-меню */
@media (max-width:1023px){
  .catalog-menu,.catalog-backdrop{display:none!important}
}
