/* Секции НОВОГО дизайна главной — попиксельно по «Сайт МК - Веб-версия.pdf» (TAW-984).
   Самодостаточные стили с префиксом mkd-*: эталонный CSS не трогается.
   Токены из макета: бренд-красный #db1a31, тёмный #141414, серый контейнер #f6f4f2,
   полоса «почему мы» #efede8, границы #ececea, скругления 20/24px. */

body.mkd-home{ background:#fff; }
body.mkd-home:has([data-home-hero-version="2"]),
body.mkd-home:has([data-home-hero-version="2"]) main{ background:#f5f4f2; }

/* 22.07: вертикальный scroll-snap по секциям полностью убран. Он «уводил» верхний
   тёмный блок за край окна при доводке к секции и временами срабатывал рывками/невпопад
   (жалоба владельца). Обычная плавная прокрутка надёжнее; горизонтальный снап каруселей
   (товары/отзывы/предложения) остаётся — он к этой проблеме отношения не имеет. */
html{ scroll-behavior:smooth; }

/* margin auto по горизонтали ОБЯЗАТЕЛЕН: класс вешается на legacy .wrap,
   у которого центрирование живёт в margin:0 auto — иначе контент прижат влево. */
/* 22.07 (правка владельца п.5): вертикальная плотность — блоки ближе друг к другу,
   чтобы главная листалась быстрее и между секциями не было пустот. Было 72px. */
.mkd-section{ margin:44px auto; }
.mkd-kicker{ display:inline-flex; align-items:center; gap:8px; color:#db1a31; font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:12px; }
.mkd-kicker--dot::before{ content:""; width:6px; height:6px; border-radius:50%; background:#db1a31; }
/* 22.07: единый размер заголовка секции на всей главной — раньше он гулял 32/38/42px
   (инлайн у товарных слайдеров, отдельные правила у AI-блока и лид-формы). */
.mkd-title{ font-size:32px; line-height:1.15; font-weight:800; color:#141414; margin:0; }
.mkd-title .mkd-red{ color:#db1a31; }
.mkd-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px; }
.mkd-link{ display:inline-flex; align-items:center; gap:8px; color:#141414; font-size:14px; font-weight:600; text-decoration:none; white-space:nowrap; }
.mkd-link::after{ content:"→"; font-size:15px; }
.mkd-link:hover{ color:#db1a31; }
.mkd-btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; background:#db1a31; color:#fff; font-size:14px; font-weight:600; border:none; border-radius:12px; padding:15px 26px; cursor:pointer; text-decoration:none; transition:background .15s ease; }
.mkd-btn:hover{ background:#b81225; color:#fff; }
.mkd-btn--light{ background:#fff; color:#141414; }
.mkd-btn--light:hover{ background:#efede8; color:#141414; }
.mkd-btn--dark{ background:#141414; }
.mkd-btn--dark:hover{ background:#000; }
.mkd-btn .mkd-btn__arr{ font-size:15px; }

/* стрелки слайдеров: круглая пара (prev светлая, next чёрная) */
.mkd-nav{ display:flex; gap:10px; }
.mkd-nav__arrow{ width:44px; height:44px; border-radius:50%; border:1px solid #e2e0dc; background:#fff; color:#141414; font-size:16px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:opacity .15s; }
.mkd-nav__arrow:last-child{ background:#141414; color:#fff; border-color:#141414; }
.mkd-nav__arrow:disabled{ opacity:.35; cursor:default; }

/* ===== HERO: слайдер акций + карточка «Лучшее предложение» + красная лид-полоса ===== */
.mkd-hero{ display:grid; grid-template-columns:1.82fr 1fr; gap:20px; align-items:stretch; }
.mkd-hero__slider{ position:relative; border-radius:20px; overflow:hidden; background:#f6f4f2; }
.mkd-hero__slider{ min-height:360px; }
.mkd-hero__slider .discounts-revert, .mkd-hero__slider .discounts, .mkd-hero__slider .swiper,
.mkd-hero__slider .swiper-container, .mkd-hero__slider .swiper-wrapper, .mkd-hero__slider .swiper-slide,
.mkd-hero__slider .no-swiper, .mkd-hero__slider .card{ height:100% !important; }
.mkd-hero__slider .card{ width:100%; }
.mkd-hslide{ position:relative; display:block; height:100%; overflow:hidden; }
.mkd-hslide__bg{ position:absolute; inset:-40px; background-position:center; background-size:cover; filter:blur(36px) saturate(1.05); opacity:.85; }
/* width:auto !important — перебивает main>.wrap img{width:100%} из инлайна home.blade */
.mkd-hslide__img{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:auto !important; max-width:100%; max-height:100%; z-index:1; }
.mkd-hero__slider .swiper-button-prev, .mkd-hero__slider .swiper-button-next{
  width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.85); color:#141414; }
.mkd-hero__slider .swiper-pagination-bullet-active{ background:#db1a31; }
/* 22.07 (правка владельца п.2): сбоку от баннера показываем СРАЗУ 4 лучших предложения
   компактным списком (было — карусель по одному товару на всю высоту). Баннер стал ниже,
   блок читается как «витрина предложений», а не как одна большая картинка. */
.mkd-hero__aside{ background:#fff; border:1px solid #ececea; border-radius:20px; padding:14px 16px; position:relative; display:flex; flex-direction:column; }
/* 22.07: колонка предложений — position:relative-контейнер, внутренняя обёртка растянута
   абсолютно, поэтому список любой длины НЕ растягивает баннер, а прокручивается внутри
   (высота колонки задаётся баннером через align-items:stretch у .mkd-hero). */
.mkd-hero__offers{ position:relative; min-width:0; }
.mkd-hero__offers-inner{ position:absolute; inset:0; display:flex; flex-direction:column; }
/* Скроллбар — из глобального mk-scrollbars.css (единый тонкий стиль по всей витрине). */
.mkd-hero__offers .mkd-hero__aside{ flex:1; min-height:0; overflow-y:auto; padding-right:6px; overscroll-behavior:contain; }
.mkd-hero__aside-title{ font-size:15px; font-weight:700; color:#141414; margin:0 0 8px 2px; flex:none; }
.mkd-hp{ display:flex; flex:none; flex-direction:row; align-items:center; gap:12px; padding:8px 0; text-decoration:none; border-top:1px solid #f2f0ed; min-width:0; }
.mkd-hp:first-of-type{ border-top:none; }
.mkd-hp__img{ flex:0 0 66px; height:66px; position:relative; }
.mkd-hp__img img{ position:absolute; inset:0; margin:auto; max-width:100%; max-height:100%; }
.mkd-hp__body{ display:flex; flex-direction:column; min-width:0; flex:1; }
.mkd-hp__badges{ display:flex; gap:6px; margin:0 0 4px; }
.mkd-hp__badge{ font-size:10px; font-weight:700; text-transform:uppercase; border-radius:6px; padding:3px 7px; border:1px solid #db1a31; color:#db1a31; }
.mkd-hp__name{ font-size:12.5px; line-height:1.3; color:#454440; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mkd-hp__price{ display:flex; align-items:baseline; gap:8px; margin-top:4px; white-space:nowrap; }
.mkd-hp__new{ font-size:15px; font-weight:800; color:#db1a31; }
.mkd-hp__old{ font-size:12px; color:#a5a3a0; text-decoration:line-through; }
.mkd-hero__aside .mkd-anav{ display:none; position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%; border:1px solid #e2e0dc; background:#fff; color:#141414; cursor:pointer; z-index:2; display:flex; align-items:center; justify-content:center; }
.mkd-hero__aside .mkd-anav--prev{ left:-2px; }
.mkd-hero__aside .mkd-anav--next{ right:-2px; }
/* 22.07 (правка владельца): форма ТОЧЬ-В-ТОЧЬ по макету «Сайт МК - Веб-версия» —
   пиксельный замер: ширина 66% .wrap, центр; кнопка 60px, инпут 448px, высота ~104px. */
.mkd-hero-lead{ display:flex; align-items:center; gap:34px; background:#db1a31; border-radius:20px; padding:22px 20px 22px 32px; width:66%; max-width:100%; margin:20px auto 0; }
.mkd-hero-lead__text{ flex:1 1 auto; color:#fff; font-size:15px; font-weight:700; line-height:1.35; max-width:320px; }
.mkd-hero-lead__form{ display:flex; gap:14px; align-items:center; flex:0 0 auto; }
.mkd-hero-lead__form input[type="tel"]{ width:448px; max-width:52vw; height:60px; border:none; border-radius:14px; padding:0 18px; font-size:15px; outline:none; background:#fff; color:#141414; }
.mkd-hero-lead__form .mkd-btn{ width:60px; height:60px; padding:0; border-radius:50%; background:#141414; font-size:20px; }
.mkd-hero-lead__form .mkd-btn:hover{ background:#000; }

/* ===== грид категорий: белые карточки, фото сверху, подпись + стрелка ===== */
/* 22.07 (правка владельца): 4 карточки в ряд — узже по ширине, высота та же/чуть меньше. */
.mkd-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.mkd-cat{ display:flex; flex-direction:column; border-radius:20px; overflow:hidden; background:#fff; border:1px solid #ececea; text-decoration:none; }
/* 22.07: высота карточки категории = высоте товарной карточки слайдеров (296px):
   фиксируем высоту фото, а не пропорцию — иначе карточка «плавала» вместе с шириной колонки. */
/* 4-в-ряд: карточка уже, поэтому фото чуть ниже — общая высота карточки как была/меньше. */
.mkd-cat__visual{ position:relative; display:block; flex:none; width:100%; height:180px; overflow:hidden; isolation:isolate; }
.mkd-cat__media{ position:absolute; inset:0; display:block; background:#fff; transition:transform .72s cubic-bezier(.22,1,.36,1), clip-path .68s cubic-bezier(.22,1,.36,1); }
.mkd-cat__media--main{ z-index:1; }
.mkd-cat__media--alt{ z-index:2; clip-path:inset(0 99.9% 0 0); }
.mkd-cat__split-line{ position:absolute; top:10px; bottom:10px; left:0; z-index:3; width:1px; background:rgba(219,26,49,.82); opacity:0; pointer-events:none; transition:left .68s cubic-bezier(.22,1,.36,1), opacity .2s; }
.mkd-cat__img{ width:100%; height:100%; object-fit:cover; display:block; }
.mkd-cat__body{ display:flex; align-items:center; gap:14px; padding:13px 16px; background:#fff; position:relative; z-index:1; }
.mkd-cat__names{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.mkd-cat__name{ color:#141414; font-size:15px; font-weight:700; line-height:1.2; }
.mkd-cat__sub{ color:#626260; font-size:11.5px; line-height:1.3; }
.mkd-cat__arr{ margin-left:auto; flex:none; width:38px; height:38px; border-radius:50%; border:1px solid #e5e4e1; color:#141414; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; isolation:isolate; font-size:15px; transition:border-color .68s cubic-bezier(.22,1,.36,1), color .68s cubic-bezier(.22,1,.36,1); }
.mkd-cat__arr::before{ position:absolute; top:0; bottom:0; left:0; width:calc(100% + 2px); z-index:0; background:linear-gradient(90deg,#fbeaec 0 calc(100% - 2px),#db1a31 calc(100% - 2px) 100%); transform:translateX(-100%); transition:transform .68s cubic-bezier(.22,1,.36,1); content:""; }
.mkd-cat__arr > span{ position:relative; z-index:2; }
@media (any-hover:hover) and (any-pointer:fine){
  .mkd-cat--split-mask:hover .mkd-cat__media--main{ transform:scale(1.035); }
  .mkd-cat--split-mask:hover .mkd-cat__media--alt{ clip-path:inset(0); transform:scale(1.035); }
  .mkd-cat--split-mask:hover .mkd-cat__split-line{ left:calc(100% - 1px); opacity:1; }
  .mkd-cat:hover .mkd-cat__arr{ border-color:#e6bec3; color:#b81225; }
  .mkd-cat:hover .mkd-cat__arr::before{ transform:translateX(0); }
}
.mkd-cat--split-mask:focus-visible .mkd-cat__media--main{ transform:scale(1.035); }
.mkd-cat--split-mask:focus-visible .mkd-cat__media--alt{ clip-path:inset(0); transform:scale(1.035); }
.mkd-cat--split-mask:focus-visible .mkd-cat__split-line{ left:calc(100% - 1px); opacity:1; }
.mkd-cat:focus-visible .mkd-cat__arr{ border-color:#e6bec3; color:#b81225; }
.mkd-cat:focus-visible .mkd-cat__arr::before{ transform:translateX(0); }
@media (prefers-reduced-motion:reduce){
  .mkd-cat__media,
  .mkd-cat__split-line,
  .mkd-cat__arr,
  .mkd-cat__arr::before{ transition-duration:.01ms; }
  .mkd-cat--split-mask:is(:hover,:focus-visible) .mkd-cat__media--main,
  .mkd-cat--split-mask:is(:hover,:focus-visible) .mkd-cat__media--alt{ transform:none; }
  .mkd-cat__split-line{ display:none; }
}
/* Горизонтальная красная плашка «Не знаете, что выбрать?» — как в референсе. */
.mkd-cat-help{ width:min(690px,100%); min-height:108px; margin:24px auto 0; padding:20px 28px; display:flex; align-items:center; gap:28px; border-radius:12px; background:#c5262c; }
.mkd-cat-help__copy{ display:flex; flex:1 1 auto; min-width:0; flex-direction:column; }
.mkd-cat-help .mkd-cat__name{ color:#fff; font-size:22px; letter-spacing:-.015em; margin:0 0 5px; }
.mkd-cat-help .mkd-cat__sub{ color:#fff; font-size:14px; line-height:1.4; }
.mkd-cat-help .mkd-btn{ flex:none; width:306px; min-height:60px; padding:12px 22px; justify-content:center; color:#141414; font-size:16px; border-radius:10px; background:#fff; box-shadow:none; transition:background .2s ease,transform .2s ease; }
.mkd-cat-help .mkd-btn:hover{ background:#f7f4f1; transform:translateY(-1px); }
.mkd-cat-help .mkd-btn:focus-visible{ outline:3px solid rgba(255,255,255,.45); outline-offset:3px; }

/* ===== AI-блок: светлый контейнер, шаги-иконки, визуал с планировкой ===== */
.mkd-ai{ background:#fff; border-radius:24px; padding:32px 36px; display:grid; grid-template-columns:1fr 1.06fr; gap:32px; align-items:center; }
.mkd-ai__kickrow{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.mkd-ai__kickrow .mkd-kicker{ margin-bottom:0; }
.mkd-ai__pill{ display:inline-block; background:#fbe7ea; color:#c1162b; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; border-radius:999px; padding:6px 14px; }
.mkd-ai .mkd-title{ max-width:430px; }
.mkd-ai__text{ color:#77756f; font-size:15px; line-height:1.55; margin:16px 0 26px; max-width:440px; }
.mkd-ai__steps{ display:flex; align-items:flex-start; margin-bottom:28px; }
.mkd-ai__step{ display:flex; flex-direction:column; align-items:center; gap:10px; width:104px; text-align:center; font-size:13px; font-weight:600; color:#141414; line-height:1.25; }
.mkd-ai__step-ico{ width:56px; height:56px; border:1px solid #e8e5e1; border-radius:14px; background:#fff; color:#db1a31; display:flex; align-items:center; justify-content:center; }
.mkd-ai__step-ico svg{ width:24px; height:24px; }
/* специфичнее глобального main>.wrap img{width:100%} — иначе иконка растягивается */
.mkd-ai .mkd-ai__step-ico img{ width:24px; height:24px; }
.mkd-ai__dash{ flex:0 0 34px; border-top:2px dashed #d4d1c9; margin-top:27px; }
.mkd-ai__btn{ display:inline-flex; flex-direction:column; align-items:center; gap:1px; background:#db1a31; color:#fff; border-radius:14px; padding:12px 30px; text-decoration:none; transition:background .15s; }
.mkd-ai__btn:hover{ background:#b81225; color:#fff; }
.mkd-ai__btn-main{ font-size:15px; font-weight:700; }
.mkd-ai__btn-main::before{ content:"✦ "; }
.mkd-ai__btn-sub{ font-size:11px; opacity:.85; }
.mkd-ai__note{ color:#626260; font-size:12px; margin-top:14px; }
.mkd-ai__visual img{ width:100%; height:auto; aspect-ratio:1238/803; object-fit:cover; border:1px solid #e8e5e1; border-radius:20px; display:block; background:#eceae6; }

/* Общая карточка товара вынесена в mk-product-card.css. */
.mkd2-product__product-link{ position:absolute; inset:0; z-index:4; border-radius:inherit; }
.mkd2-product__product-link:focus-visible{ outline:3px solid rgba(219,26,49,.28); outline-offset:2px; }

/* Все товарные ленты нового дизайна используют одну геометрию карточек. */
.mkd-section .mkd-pcard{ min-height:328px; }
.mkd-section .mkd-pcard__img{ height:200px; min-height:200px; }
.mkd-section .mkd-pcard__foot{ margin-top:0; }

/* ===== B2B: фото-баннер «Для дизайнеров и архитекторов» ===== */
.mkd-b2b{ border-radius:24px; padding:40px 44px; color:#fff; min-height:320px; display:flex; flex-direction:column; justify-content:center;
  background:linear-gradient(90deg, rgba(18,15,12,.82) 0%, rgba(18,15,12,.55) 55%, rgba(18,15,12,.28) 100%), url('/assets/images/home-design/b2b-bg.jpg') center/cover no-repeat; }
.mkd-b2b .mkd-title{ color:#fff; max-width:430px; }
.mkd-b2b__text{ color:rgba(255,255,255,.72); font-size:15px; line-height:1.55; max-width:440px; margin:14px 0 26px; }
.mkd-b2b__points{ display:grid; grid-template-columns:repeat(2, minmax(0,230px)); gap:12px; margin-bottom:30px; }
.mkd-b2b__point{ display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.09); border-radius:12px; padding:13px 16px; font-size:13px; font-weight:600; color:#fff; }
.mkd-b2b__point svg{ width:18px; height:18px; color:#f08d9b; flex:none; }
.mkd-b2b .mkd-b2b__point img{ width:18px; height:18px; flex:none; }
.mkd-b2b__actions{ display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.mkd-b2b__actions .mkd-btn{ min-height:50px; font-weight:700; }
.mkd-b2b__catalog-btn{ background:#c5262c; box-shadow:0 10px 26px rgba(219,26,49,.18); }
.mkd-b2b__catalog-btn:hover{ background:#a91e25; box-shadow:0 14px 30px rgba(184,18,37,.24); }

/* ===== магазины: «Мы в 13+ городах» + интерактивная карта ===== */
/* На десктопе инфо-панель лежит поверх карты; на телефоне блок перестраивается в один поток. */
.mkd-shops{ position:relative; z-index:0; isolation:isolate; border-radius:24px; overflow:hidden; border:1px solid #ececea; height:520px; background:#f4f2ee; }
#mkdShopsMap{ position:absolute; inset:0; z-index:0; isolation:isolate; width:100%; height:100%; background:#eef1eb; }
.mkd-map-status{ position:absolute; top:50%; left:50%; z-index:900; max-width:calc(100% - 32px); transform:translate(-50%,-50%); border:1px solid #e1dfda; border-radius:12px; background:rgba(255,255,255,.94); box-shadow:0 8px 24px rgba(0,0,0,.1); padding:10px 14px; color:#56534d; font-size:12px; font-weight:600; line-height:1.4; text-align:center; pointer-events:none; }
.mkd-map-status--error{ color:#9f1426; border-color:#f1bbc3; background:rgba(255,246,247,.96); }
.mkd-map-status[hidden]{ display:none; }
#mkdShopsMap .leaflet-control-attribution{ max-width:calc(100% - 72px); white-space:normal; font-size:9px; line-height:1.25; }
.mkd-shops__panel{ position:absolute; top:20px; left:20px; bottom:20px; z-index:1000; width:400px; max-width:calc(100% - 40px); background:#fff; border-radius:18px; box-shadow:0 10px 32px rgba(0,0,0,.14); padding:18px; display:flex; flex-direction:column; align-items:flex-start; overflow-y:auto; }
.mkd-shops--home{ height:auto; min-height:620px; display:flex; align-items:flex-start; }
.mkd-shops__panel--home{ box-sizing:border-box; position:relative; inset:auto; width:460px; max-width:calc(100% - 40px); height:auto; max-height:none; margin:20px; overflow:visible; }
.mkd-shops__panel--home .mkd-shops__title{ font-size:30px; line-height:1.12; }
.mkd-shops__panel--home .mkd-shops__text{ font-size:12px; line-height:1.4; margin:6px 0 10px; }
.mkd-shops__panel .mkd-kicker{ margin-bottom:6px; }
.mkd-shops__title{ line-height:1.2; margin-bottom:0; }
.mkd-shops__text{ color:#77756f; font-size:12.5px; line-height:1.45; margin:7px 0 12px; }
/* города — все чипы видны сразу (перенос строк, без прокрутки) */
.mkd-shops__city-select{ display:none; }
.mkd-shops__cities{ flex:none; display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; width:100%; }
.mkd-shops__cities .mkd-city{ flex:none; white-space:nowrap; }
.mkd-city{ display:inline-block; background:#fff; border:1px solid #e7e5e1; border-radius:9px; padding:6px 10px; font:inherit; font-size:12px; font-weight:600; color:#141414; text-decoration:none; cursor:pointer; }
.mkd-city:hover{ border-color:#141414; color:#141414; }
.mkd-city--active{ background:#141414; border-color:#141414; color:#fff; }
.mkd-city--active:hover{ color:#fff; }
.mkd-branches{ width:100%; margin-bottom:12px; }
.mkd-branches__title{ display:flex; align-items:center; gap:7px; font-size:12.5px; font-weight:700; color:#141414; margin-bottom:7px; }
.mkd-branches__count{ display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; border-radius:999px; background:#f1efeb; color:#5d5a55; padding:0 7px; font-size:11px; line-height:1; }
.mkd-branches__list{ display:flex; flex-direction:column; gap:6px; }
.mkd-branch{ display:flex; align-items:center; justify-content:space-between; gap:10px; background:#fff; border:1px solid #e7e5e1; border-radius:10px; padding:6px 10px; }
.mkd-branch--active{ border-color:#141414; }
.mkd-branch__addr{ appearance:none; min-width:0; border:0; background:transparent; padding:0; font:inherit; font-size:12px; line-height:1.35; color:#141414; cursor:pointer; text-align:left; flex:1; }
.mkd-branch__addr:focus-visible{ outline:2px solid #db1a31; outline-offset:3px; border-radius:3px; }
.mkd-branch__addr:hover{ color:#db1a31; }
.mkd-branch__route{ flex:none; display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; color:#fff; background:#db1a31; border-radius:7px; padding:5px 9px; text-decoration:none; white-space:nowrap; }
.mkd-branch__route:hover{ background:#b81225; color:#fff; }
.mkd-shops__all{ margin-top:auto; padding:11px 16px; font-size:13px; }

/* 22.07: страничный вариант (/company/shops) — карта выше (полноэкранный акцент), панель
   с прокруткой филиалов; заголовок панели без кикера/красного акцента главной. */
.mkd-shops--page{ height:calc(100vh - 220px); min-height:560px; margin-bottom:40px; }
.mkd-shops__title--page{ font-size:20px; font-weight:800; color:#141414; line-height:1.2; margin-bottom:0; }
.mkd-shops-page__caption{ margin:14px 0 18px; }

/* ===== почему мы: полоса на всю ширину + белые карточки с иконками ===== */
.mkd-band{ background:#efede8; padding:44px 0; margin:44px 0; }
.mkd-band .mkd-title{ max-width:640px; }
.mkd-why{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin-top:24px; }
.mkd-why__card{ background:#fff; border-radius:18px; padding:24px; }
.mkd-why__ico{ width:46px; height:46px; border-radius:12px; background:#f4f2ee; color:#141414; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.mkd-why__ico svg{ width:22px; height:22px; }
.mkd-why__title{ font-size:16px; font-weight:700; color:#141414; margin-bottom:8px; line-height:1.3; }
.mkd-why__text{ font-size:13px; line-height:1.5; color:#626260; }
.mkd-why__cta{ margin-top:20px; }

/* ===== отзывы 2ГИС: рейтинг-карточка + слайдер реальных отзывов ===== */
.mkd-rev-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.mkd-rev-score{ background:#fff; border:1px solid #ececea; border-radius:16px; padding:16px 22px; display:flex; align-items:center; gap:18px; }
.mkd-rev-score__num{ font-size:38px; font-weight:800; color:#141414; line-height:1; }
.mkd-rev-score__stars{ color:#f5a623; font-size:13px; letter-spacing:2px; display:block; margin-top:4px; }
.mkd-rev-score__brand{ font-size:14px; font-weight:800; color:#141414; display:flex; align-items:center; gap:6px; }
.mkd-rev-score__brand::before{ content:""; width:8px; height:8px; border-radius:50%; background:#2e9e44; }
.mkd-rev-score__based{ color:#626260; font-size:12px; margin:3px 0 5px; }
.mkd-rev-score__link{ color:#db1a31; font-size:13px; font-weight:600; text-decoration:none; }
.mkd-rev-score__link::after{ content:" ↗"; }
.mkd-rev-score__link:hover{ text-decoration:underline; }
.mkd-rev-list{ display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.mkd-rev-list::-webkit-scrollbar{ display:none; }
.mkd-rev-list a{ flex:0 0 236px; scroll-snap-align:start; border-radius:18px; overflow:hidden; display:block; aspect-ratio:1/1; background:#17191d; }
.mkd-rev-list img{ width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.mkd-rev-foot{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; }
.mkd-rev-foot__note{ color:#626260; font-size:13px; }

/* ===== лид-форма: фото-панель + белая форма с комментарием ===== */
.mkd-lead{ display:grid; grid-template-columns:1fr 1.08fr; background:#fff; border:1px solid #ececea; border-radius:24px; overflow:hidden; }
.mkd-lead__photo{ position:relative; padding:36px 40px; display:flex; flex-direction:column; justify-content:center; color:#fff; min-height:360px;
  background:linear-gradient(rgba(12,10,8,.58), rgba(12,10,8,.58)), url('/assets/images/home-design/lead-photo.jpg') center/cover no-repeat; }
.mkd-lead__photo .mkd-kicker{ color:#f08d9b; }
.mkd-lead__photo .mkd-title{ color:#fff; max-width:420px; }
.mkd-lead__text{ color:#cfccc7; font-size:15px; line-height:1.55; max-width:400px; margin:14px 0 18px; }
.mkd-lead__call{ color:#a5a29d; font-size:13px; margin-bottom:4px; }
.mkd-lead__phone{ color:#fff; font-size:22px; font-weight:800; text-decoration:none; }
.mkd-lead__phone:hover{ color:#fff; }
.mkd-lead__form{ padding:28px 36px; display:flex; flex-direction:column; }
.mkd-lead__form label{ font-size:13px; font-weight:700; color:#141414; margin-bottom:7px; }
.mkd-lead__form label small{ font-weight:400; color:#a5a3a0; font-size:12px; }
.mkd-lead__form input, .mkd-lead__form textarea{ width:100%; background:#fff; border:1px solid #e2e0dc; border-radius:12px; padding:14px 16px; font-size:14px; color:#141414; outline:none; margin-bottom:16px; font-family:inherit; }
.mkd-lead__form input:focus, .mkd-lead__form textarea:focus{ border-color:#db1a31; }
.mkd-lead__form textarea{ height:92px; resize:none; }
.mkd-lead__form .mkd-btn{ width:100%; }
.mkd-lead__agree{ font-size:12px; color:#a5a3a0; line-height:1.4; text-align:center; margin-top:14px; }
.mkd-lead__thanks{ color:#2e7d32; font-size:15px; font-weight:600; margin:auto; text-align:center; }

/* ===== хедер главной (рескин под макет: чёрный топбар, пилюля-поиск, меню-строка) ===== */
body.mkd-home .header-top{ background:#141414; }
body.mkd-home .header-top .nav-link, body.mkd-home .header-top .places,
body.mkd-home .header-top .lang, body.mkd-home .header-top .cabinet{ color:rgba(255,255,255,.85); }
body.mkd-home .header-top .nav-link:hover, body.mkd-home .header-top .places:hover,
body.mkd-home .header-top .cabinet:hover{ color:#fff; }
/* 22.07: активный язык сидит на белой пилюле (.lang.current{background:#fff} из general.min.css),
   поэтому текст должен быть тёмным — раньше mkd-home ставил color:#fff → белым по белому. */
body.mkd-home .header-top .lang.current{ color:#141414; background:#fff; font-weight:700; }
body.mkd-home .header-top .ico{ color:rgba(255,255,255,.85); }
body.mkd-home .nav-search input[type="text"]{ background:#f4f3f1; border:none; border-radius:12px; }
/* макет: в главном ряду только лого + поиск + иконки + «Консультация»;
   вход в каталог — «Все товары» в меню-строке (то же выпадающее меню) */
@media (min-width: 681px){
  body.mkd-home .header-main .nav-catalog{ position:absolute; visibility:hidden; }
  body.mkd-home .nav-favorites > a > span.cut_m, body.mkd-home .nav-cart > a > span.cut_m{ display:none; }
  body.mkd-home .nav-favorites .nav-count, body.mkd-home .nav-cart .nav-count{
    background:#db1a31; color:#fff; border-radius:999px; min-width:17px; height:17px; padding:0 4px;
    display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:700;
    position:relative; top:-8px; left:-6px; }
}
.mkd-consult-btn{ display:inline-flex; align-items:center; background:#141414; color:#fff !important; font-size:13px; font-weight:600; border-radius:12px; padding:11px 20px; text-decoration:none; white-space:nowrap; margin-left:14px; }
.mkd-consult-btn:hover{ background:#000; }
.header{ position:relative; z-index:4; }
.mkd-menubar{ position:relative; z-index:4; background:#fff; border-bottom:1px solid #efedeb; }
.mkd-menubar .wrap{ display:flex; align-items:center; gap:26px; height:48px; overflow:visible; }
.mkd-menubar .wrap::-webkit-scrollbar{ display:none; }
.mkd-menubar a{ font-size:14px; font-weight:600; color:#141414; text-decoration:none; white-space:nowrap; }
.mkd-menubar a:hover{ color:#db1a31; }
.mkd-menubar a.mkd-menubar__all{ color:#db1a31; display:inline-flex; align-items:center; gap:8px; }
.mkd-menubar__item{ position:relative; align-self:stretch; display:flex; align-items:center; flex:none; }
.mkd-menubar a.mkd-menubar__trigger{ display:inline-flex; align-items:center; gap:7px; height:100%; }
.mkd-menubar__chevron{ width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .18s ease; }
.mkd-menubar__dropdown{ position:absolute; top:calc(100% - 1px); left:-18px; width:300px; max-height:min(68vh,620px); overflow-y:auto; padding:12px; background:#fff; border:1px solid #e8e4df; border-radius:0 0 14px 14px; box-shadow:0 18px 42px rgba(44,11,20,.14); opacity:0; visibility:hidden; pointer-events:none; transform:translateY(8px); transition:opacity .18s ease,transform .18s ease,visibility .18s ease; }
.mkd-menubar__item:nth-last-child(-n+2) .mkd-menubar__dropdown{ right:-18px; left:auto; }
.mkd-menubar__item:hover .mkd-menubar__dropdown,
.mkd-menubar__item:focus-within .mkd-menubar__dropdown{ opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0); }
.mkd-menubar__item:hover .mkd-menubar__chevron,
.mkd-menubar__item:focus-within .mkd-menubar__chevron{ transform:rotate(225deg) translate(-1px,-1px); }
.mkd-menubar .mkd-menubar__dropdown a{ display:block; padding:9px 10px; border-radius:8px; white-space:normal; font-size:13px; line-height:1.35; font-weight:500; }
.mkd-menubar .mkd-menubar__dropdown a:hover,
.mkd-menubar .mkd-menubar__dropdown a:focus-visible{ color:#b61f2e; background:#f8f3f1; }
.mkd-menubar .mkd-menubar__dropdown-all{ margin-top:5px; color:#b61f2e; font-weight:700; border-top:1px solid #eee8e4; border-radius:0 0 8px 8px; }
.mkd-menubar__dropdown-group + .mkd-menubar__dropdown-group{ margin-top:1px; }
.mkd-menubar .mkd-menubar__dropdown a.mkd-menubar__dropdown-child{ padding:6px 10px 6px 24px; color:#6d6460; font-size:12px; }
/* «Все товары»: hover-мега-меню живёт только с 1366px (general.min.css) — ниже этой
   ширины десктопный чип был бы мёртв (ревью: на 768-1365 клик не открывал ничего),
   поэтому drawer-чип работает до 1365px включительно. */
.mkd-menubar a.mkd-menubar__all.mkd-mobile-only{ display:none; }
@media (max-width: 1365px){
  .mkd-menubar a.mkd-menubar__all.mkd-desktop-only{ display:none; }
  .mkd-menubar a.mkd-menubar__all.mkd-mobile-only{ display:inline-flex; }
}
@media (max-width: 1199px){
  .mkd-menubar .wrap{ overflow-x:auto; }
  .mkd-menubar__item{ display:contents; }
  .mkd-menubar__dropdown,
  .mkd-menubar__chevron{ display:none; }
}
@media (max-width: 767px){
  /* на мобильной главной чёрная полоса «Каталог товаров» дублирует чип и таб — скрываем */
  body.mkd-home .header-hidden{ display:none !important; }
}

/* ===== футер главной (макет PDF) ===== */
.mkd-footer{ background:#141414; color:#fff; margin-top:72px; }
.mkd-footer .wrap{ padding-top:56px; padding-bottom:28px; }
.mkd-footer__top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; }
.mkd-footer__logo img{ height:30px; width:auto; }
.mkd-footer__text{ color:rgba(255,255,255,.65); font-size:13px; line-height:1.55; max-width:300px; margin:18px 0 20px; }
.mkd-footer__phone{ color:#fff; font-size:19px; font-weight:800; text-decoration:none; }
.mkd-footer__phone:hover{ color:#fff; }
.mkd-footer__socials{ display:flex; gap:14px; margin-top:18px; }
.mkd-footer__socials a{ color:rgba(255,255,255,.75); font-size:16px; }
.mkd-footer__socials a:hover{ color:#fff; }
.mkd-footer__col{ display:flex; flex-direction:column; gap:12px; }
.mkd-footer__head{ font-size:13px; font-weight:700; color:#fff; margin-bottom:6px; }
.mkd-footer__col a{ color:rgba(255,255,255,.65); font-size:13.5px; text-decoration:none; }
.mkd-footer__col a:hover{ color:#fff; }
.mkd-footer__bottom{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; border-top:1px solid rgba(255,255,255,.12); padding-top:22px; color:rgba(255,255,255,.5); font-size:12.5px; }
.mkd-footer__legal{ display:flex; gap:22px; flex-wrap:wrap; }
.mkd-footer__legal a{ color:rgba(255,255,255,.5); text-decoration:none; }
.mkd-footer__legal a:hover{ color:#fff; }

/* 22.07: тело карточки предложения — обычная колонка (было display:contents под старую
   вёрстку одиночной карточки: из-за него цена уезжала в отдельную колонку и ломалась). */
.mkd-hp__body{ display:flex; flex-direction:column; min-width:0; flex:1; }
.mkd-hp__kicker{ display:none; }

/* планшет: 3-в-ряд (4 не влезают комфортно) */
@media (max-width: 1200px){
  .mkd-grid{ grid-template-columns:repeat(3, 1fr); }
}

/* ===== мобильная адаптация (Сайт МК - Моб-версия.pdf) ===== */
@media (max-width: 1023px){
  .mkd-grid{ grid-template-columns:repeat(2, 1fr); }
  .mkd-cat__visual{ height:170px; }
  .mkd-why{ grid-template-columns:repeat(2, 1fr); }
  .mkd-title{ font-size:26px; }
  .mkd-ai{ grid-template-columns:1fr; }
  .mkd-hero{ grid-template-columns:1fr; }
  /* 22.07: на планшете/мобиле предложения — горизонтальная карусель под баннером.
     Обёртка «прозрачна» (display:contents), а колонка теряет position:relative от десктопа —
     иначе абсолютный inner схлопнул бы карусель. */
  .mkd-hero__offers{ position:static; margin-top:14px; }
  .mkd-hero__offers-inner{ position:static; display:contents; }
  .mkd-hero__aside{ display:flex; flex-direction:row; gap:10px; overflow-x:auto; overflow-y:visible; scroll-snap-type:x proximity;
    scrollbar-width:none; background:none; border:none; padding:0; margin-top:12px; min-height:0; }
  .mkd-hero__aside::-webkit-scrollbar{ display:none; }
  .mkd-hero__aside-title{ display:block; font-size:14px; }
  .mkd-hp__kicker{ display:none !important; }
  .mkd-hp{ flex:0 0 232px; scroll-snap-align:start; background:#fff; border:1px solid #ececea; border-top:1px solid #ececea;
    border-radius:14px; padding:10px 12px; }
  .mkd-hero-lead{ width:100%; }
  .mkd-lead{ grid-template-columns:1fr; }
}
@media (max-width: 680px){
  .mkd-section{ margin:26px auto; }
  .mkd-band{ padding:26px 0; margin:26px 0; }
  .mkd-title{ font-size:22px; }
  .mkd-row{ align-items:flex-start; flex-wrap:wrap; }
  .mkd-row > :first-child{ flex:1 1 180px; min-width:0; }
  .mkd-row > a{ max-width:100%; white-space:normal; overflow-wrap:anywhere; }
  .mkd-row > .mkd-nav{ flex:none; margin-left:auto; }

  /* AI: кикер — розовая пилюля (моб-макет), отдельная пилюля «впервые» скрыта */
  .mkd-ai{ padding:24px 20px; gap:24px; }

  .mkd-ai__pill{ display:none; }
  .mkd-ai .mkd-kicker{ background:#fbe7ea; border-radius:999px; padding:7px 14px; margin-bottom:4px; }
  .mkd-ai__steps{ flex-wrap:wrap; gap:10px; justify-content:space-between; }
  .mkd-ai__dash{ display:none; }
  .mkd-ai__btn{ width:100%; }
  /* дизайнеры: мобильный портретный фон (официальный ассет 004 mobile) */
  .mkd-b2b{ padding:24px 20px; min-height:300px;
    background:linear-gradient(180deg, rgba(18,15,12,.35) 0%, rgba(18,15,12,.5) 55%, rgba(18,15,12,.85) 100%), url('/assets/images/home-design/b2b-bg-m.jpg') center/cover no-repeat; }
  .mkd-b2b__points{ grid-template-columns:1fr; }
  .mkd-b2b__actions{ flex-direction:column; align-items:stretch; }
  .mkd-b2b__actions .mkd-btn{ width:100%; }

  /* hero (22.07, правка владельца п.2): вертикальный мобильный баннер занимал почти весь
     экран — страница читалась как лендинг с одной картинкой. Ограничиваем по высоте (50vh),
     баннер показываем целиком (contain), боковые поля закрывает размытая копия картинки. */
  .mkd-hero__slider{ min-height:0; }
  .mkd-hero__slider .discounts-revert, .mkd-hero__slider .discounts, .mkd-hero__slider .swiper,
  .mkd-hero__slider .swiper-container, .mkd-hero__slider .swiper-wrapper, .mkd-hero__slider .swiper-slide,
  .mkd-hero__slider .no-swiper, .mkd-hero__slider .card, .mkd-hslide{ height:50vh !important; }
  .mkd-hslide__img{ max-height:50vh; }

  /* hero (22.07): карусель предложений под баннером — карточки чуть уже, чтобы вторая
     выглядывала и было видно, что список листается. */
  .mkd-hp{ flex-basis:212px; gap:12px; }
  .mkd-hp__img{ flex:0 0 76px; height:76px; min-height:0; }
  .mkd-hp__img img{ max-width:100%; max-height:100%; }
  .mkd-hp__body{ display:flex; flex-direction:column; min-width:0; }
  .mkd-hp__kicker{ display:block; color:#db1a31; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; }
  .mkd-hp__badges{ display:none; }
  .mkd-hp__name{ min-height:0; }
  .mkd-hero__aside .mkd-anav{ display:none; }

  .mkd-hero-lead{ flex-direction:column; align-items:stretch; gap:12px; padding:18px 16px; border-radius:16px; min-width:0; }
  .mkd-hero-lead__text{ max-width:none; }
  .mkd-hero-lead__form{ width:100%; }
  .mkd-hero-lead__form input[type="tel"]{ width:100%; flex:1; }

  /* грид категорий — 2 колонки, компактные подписи; консультация ниже на всю ширину. */
  .mkd-grid{ gap:10px; }
  .mkd-cat{ border-radius:14px; }
  .mkd-cat__visual{ height:182px; }
  .mkd-cat__body{ padding:10px 12px; gap:8px; }
  .mkd-cat__name{ font-size:13px; }
  .mkd-cat__sub{ font-size:10px; }
  .mkd-cat__arr{ display:none; }
  .mkd-cat-help{ min-height:0; margin-top:16px; padding:18px; gap:14px; align-items:stretch; flex-direction:column; border-radius:14px; }
  .mkd-cat-help .mkd-cat__name{ color:#fff; font-size:17px; margin:0 0 4px; }
  .mkd-cat-help .mkd-cat__sub{ color:#fff; font-size:11px; line-height:1.4; }
  .mkd-cat-help .mkd-btn{ width:100%; min-height:46px; padding:10px 14px; font-size:12px; font-weight:700; }

  /* товарные карточки: избранное справа, скидка слева, без кнопки-корзины (моб-макет) */
  .mkd2-product .mkd-product-favorite{ top:10px; right:10px; width:36px; height:36px; }
  .mkd-section .mkd-pcard{ min-height:297px; }
  .mkd-section .mkd-pcard__img{ height:177px; min-height:177px; }

  /* Магазины на телефоне — один обычный поток без перекрытия карты и вложенной прокрутки:
     заголовок/города → полноценная карта → все филиалы → CTA. Панель становится display:contents,
     поэтому свайп по списку всегда прокручивает страницу; сама карта не перехватывает один палец. */
  .mkd-shops, .mkd-shops--home, .mkd-shops--page{ display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto 320px auto auto; height:auto; min-height:0; align-items:stretch; background:#fff; border-radius:18px; }
  .mkd-shops__panel, .mkd-shops__panel--home{ display:contents; }
  .mkd-shops__title, .mkd-shops__title--page{ grid-column:1; grid-row:1; box-sizing:border-box; width:auto; margin:0; padding:18px 16px 0; }
  .mkd-shops__panel--home .mkd-shops__title{ font-size:22px; }
  .mkd-shops__text{ display:none; }
  .mkd-shops__city-select{ display:block; grid-column:1; grid-row:2; box-sizing:border-box; min-width:0; padding:12px 16px 16px; }
  .mkd-shops__city-select-label{ display:block; margin-bottom:7px; color:#77756f; font-size:12px; font-weight:600; line-height:1.35; }
  .mkd-shops__city-select-control{ position:relative; }
  .mkd-shops__city-select-control select{ appearance:none; -webkit-appearance:none; box-sizing:border-box; width:100%; min-height:48px; border:1px solid #d9d6d0; border-radius:12px; background:#fff; padding:10px 44px 10px 14px; color:#141414; font:inherit; font-size:16px; font-weight:600; line-height:1.35; }
  .mkd-shops__city-select-control select:focus-visible{ border-color:#141414; outline:2px solid rgba(219,26,49,.24); outline-offset:2px; }
  .mkd-shops__city-select-control svg{ position:absolute; top:50%; right:16px; width:12px; height:8px; transform:translateY(-50%); color:#77756f; pointer-events:none; }
  .mkd-shops__cities{ display:none; }
  .mkd-city{ min-height:40px; border-radius:999px; padding:8px 11px; }
  .mkd-shops #mkdShopsMap{ position:relative; inset:auto; grid-column:1; grid-row:3; width:100%; height:320px; min-height:320px; border-top:1px solid #e7e5e1; border-bottom:1px solid #e7e5e1; }
  .mkd-branches{ grid-column:1; grid-row:4; box-sizing:border-box; width:auto; margin:0; padding:18px 16px 0; }
  .mkd-branches__title{ margin-bottom:10px; font-size:14px; }
  .mkd-branches__list{ gap:8px; }
  .mkd-branch{ min-height:52px; padding:6px 8px 6px 12px; }
  .mkd-branch__addr{ min-height:40px; display:flex; align-items:center; font-size:13px; }
  .mkd-branch__route{ min-height:40px; box-sizing:border-box; padding:8px 10px; font-size:12px; }
  .mkd-shops__all{ grid-column:1; grid-row:5; box-sizing:border-box; width:auto; min-height:48px; margin:16px; }
  .mkd-shops .leaflet-control-attribution{ max-width:calc(100% - 66px); }

  /* почему мы: карточка — иконка слева, красная; CTA красная на всю ширину (моб-макет) */
  .mkd-why{ grid-template-columns:1fr; gap:10px; }
  .mkd-why__card{ display:grid; grid-template-columns:46px minmax(0,1fr); grid-template-rows:auto auto; column-gap:14px; row-gap:4px; min-width:0; padding:18px; }
  .mkd-why__ico{ grid-column:1; grid-row:1 / span 2; color:#db1a31; background:#fff; border:1px solid #f0eee9; margin-bottom:0; }
  .mkd-why__title, .mkd-why__text{ grid-column:2; min-width:0; overflow-wrap:anywhere; }
  .mkd-why__title{ margin-bottom:0; }
  .mkd-why__cta .mkd-btn{ background:#db1a31; width:100%; }
  .mkd-why__cta .mkd-btn:hover{ background:#b81225; }

  .mkd-rev-list a{ flex-basis:216px; }
  .mkd-rev-head{ flex-direction:column; align-items:flex-start; }
  .mkd-rev-score{ width:100%; }
  .mkd-nav__arrow{ width:36px; height:36px; }

  /* лид-форма: фото-фон на весь блок, белая карточка формы, телефон под ней (моб-макет) */
  .mkd-lead{ display:flex; flex-direction:column; border:none;
    background:linear-gradient(rgba(14,10,9,.72), rgba(46,14,16,.78)), url('/assets/images/home-design/lead-photo.jpg') center/cover no-repeat; }
  .mkd-lead__photo{ display:contents; }
  .mkd-lead__photo > .mkd-kicker{ order:1; margin:26px 22px 0; }
  .mkd-lead__photo .mkd-title{ order:2; margin:10px 22px 0; }
  .mkd-lead__text{ order:3; margin:12px 22px 0; }
  .mkd-lead__form{ order:4; background:#fff; border-radius:16px; margin:20px 14px 0; padding:20px 16px; }
  .mkd-lead__call{ order:5; margin:18px 0 2px; text-align:center; }
  .mkd-lead__phone{ order:6; text-align:center; margin-bottom:26px; }

  /* меню-строка хедера — чипы-пилюли (моб-макет) */
  .mkd-menubar .wrap{ gap:8px; height:56px; }
  .mkd-menubar a{ background:#f1efec; border-radius:999px; padding:9px 16px; font-size:13px; }
  .mkd-menubar a.mkd-menubar__all{ background:#db1a31; color:#fff; }
  .mkd-menubar a.mkd-menubar__all .ico{ display:none; }

  /* футер */
  .mkd-footer{ margin-top:40px; }
  .mkd-footer .wrap{ padding-top:36px; }
  .mkd-footer__top{ grid-template-columns:1fr; gap:28px; padding-bottom:28px; }
  .mkd-footer__bottom{ flex-direction:column; align-items:flex-start; gap:10px; }
}
/* ===== HOME FIRST SCREEN V2: reference banner + two full-height product cards ===== */
main > .wrap.mkd2-section{ max-width:1440px; margin-top:57px; }
.mkd2-section{ position:relative; isolation:isolate; margin-right:auto; margin-bottom:40px; margin-left:auto; }
.mkd2-section::before{ content:""; position:absolute; z-index:-1; top:-57px; right:0; bottom:-36px; left:0; background:#f5f4f2; box-shadow:0 0 0 100vmax #f5f4f2; clip-path:inset(0 -100vmax); }
.mkd2-hero{ display:grid; grid-template-columns:minmax(0, 2.08fr) minmax(360px, 1fr); gap:24px; height:396px; align-items:stretch; }
.mkd2-hero--banner-only{ grid-template-columns:1fr; }
.mkd2-hero__slider{ position:relative; min-width:0; height:396px; overflow:hidden; border-radius:14px; background:#f0efec; }
.mkd2-hero__slide{ position:absolute; inset:0; z-index:0; width:100%; height:100%; opacity:0; pointer-events:none; transition:opacity .45s ease; }
.mkd2-hero__slide.is-active{ z-index:1; opacity:1; pointer-events:auto; }
.mkd2-hero__slide[hidden]{ display:none !important; }
@media (prefers-reduced-motion:reduce){ .mkd2-hero__slide{ transition:none; } }
.mkd2-hero__picture{ display:block; width:100%; height:100%; }
.mkd2-hero__picture img{ display:block; width:100% !important; height:100%; max-width:none; max-height:none; object-fit:cover; object-position:center top; }
.mkd2-hero__slide .card,
.mkd2-hero__slide .mkd-hslide,
.mkd2-hero__slide .mkd-hslide picture{ width:100%; height:100% !important; margin:0; }
.mkd2-hero__slide .mkd-hslide{ min-height:0; }
.mkd2-hero__slide .mkd-hslide__img{ max-height:100%; }
.mkd2-hero__slide .mkd-hslide--fitted .mkd-hslide__bg{ display:none; }
.mkd2-hero__slide .mkd-hslide--fitted .mkd-hslide__img{ width:100% !important; height:100%; max-width:none; max-height:none; object-fit:cover; object-position:center; }
.mkd2-hero__arrow{ position:absolute; z-index:3; top:50%; display:flex; align-items:center; justify-content:center; width:58px; height:58px; margin-top:-29px; padding:0; border:0; border-radius:50%; background:#fff; color:#141414; box-shadow:0 3px 12px rgba(20,20,20,.08); cursor:pointer; font-size:38px; font-weight:300; line-height:1; }
.mkd2-hero__arrow span{ display:block; height:45px; line-height:42px; }
.mkd2-hero__arrow--prev{ left:20px; }
.mkd2-hero__arrow--next{ right:20px; }

.mkd2-offers{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); grid-auto-rows:396px; gap:24px; min-width:0; height:396px; overflow:hidden; }
.mkd2-product{ position:relative; display:grid; grid-template-rows:minmax(0, 1fr) 82px; min-width:0; height:396px; overflow:hidden; border-radius:14px; background:#fff; color:#141414; text-decoration:none; }
.mkd2-product__visual{ position:relative; display:block; min-height:0; padding:0; overflow:hidden; isolation:isolate; background:#fff; }
.mkd2-product__visual picture{ display:block; width:100%; height:100%; }
.mkd2-product__media{ position:absolute; inset:0; background:#fff; transition:transform .72s cubic-bezier(.22,1,.36,1), clip-path .68s cubic-bezier(.22,1,.36,1); }
.mkd2-product__media--main{ z-index:1; }
.mkd2-product__media--alt{ z-index:2; clip-path:inset(0 99.9% 0 0); transform:scale(1.04); }
.mkd2-product--single-image .mkd2-product__media--alt{ transform:none; }
.mkd2-product__split-line{ position:absolute; top:10px; bottom:10px; left:0; z-index:3; width:1px; background:rgba(219,26,49,.82); opacity:0; pointer-events:none; transition:left .68s cubic-bezier(.22,1,.36,1), opacity .2s; }
.mkd2-product__visual img{ display:block; width:100% !important; height:100%; max-width:none; max-height:none; padding:0 !important; margin:0 !important; object-fit:cover; object-position:center; transition:transform .2s ease; }
.mkd2-product[data-product-id="18440"] .mkd2-product__visual img{ transform:scale(1.14); }
.mkd2-product--contain .mkd2-product__visual img{ object-fit:contain; transform:scale(1.2); }
.mkd2-product:not(.mkd2-product--split-mask):hover .mkd2-product__visual img{ transform:scale(1.025); }
.mkd2-product[data-product-id="18440"]:not(.mkd2-product--split-mask):hover .mkd2-product__visual img{ transform:scale(1.17); }
.mkd2-product--contain:not(.mkd2-product--split-mask):hover .mkd2-product__visual img{ transform:scale(1.23); }
.mkd2-product__badge{ position:absolute; z-index:5; top:12px; left:12px; pointer-events:none; padding:5px 11px; border-radius:8px; background:#ba1e29; color:#fff; font-size:12px; font-weight:700; line-height:1; }
.mkd2-product .mkd-product-favorite{ top:12px; right:12px; }
@media (any-hover:hover) and (any-pointer:fine){
  .mkd2-product--split-mask:hover .mkd2-product__media--main{ transform:scale(1.035); }
  .mkd2-product--split-mask:hover .mkd2-product__media--alt{ clip-path:inset(0); transform:scale(1.035); }
  .mkd2-product--single-image:hover .mkd2-product__media--main,
  .mkd2-product--single-image:hover .mkd2-product__media--alt{ transform:scale(1.035); }
  .mkd2-product--split-mask:hover .mkd2-product__split-line{ left:calc(100% - 1px); opacity:1; }
}
@media (prefers-reduced-motion:reduce){
  .mkd2-product__media,
  .mkd2-product__split-line{ transition-duration:.01ms; }
  .mkd2-product--split-mask:hover .mkd2-product__media--main,
  .mkd2-product--split-mask:hover .mkd2-product__media--alt{ transform:none; }
  .mkd2-product__split-line{ display:none; }
}
.mkd2-product__body{ display:flex; flex-direction:column; justify-content:flex-end; min-height:82px; padding:10px 14px 12px; border-top:1px solid #eceae7; background:#fff; }
.mkd2-product__name{ min-height:29px; overflow:hidden; color:#292824; font-size:11px; font-weight:500; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.mkd2-product__prices{ display:flex; align-items:baseline; flex-wrap:wrap; gap:5px; min-height:21px; margin-top:5px; white-space:nowrap; }
.mkd2-product__new{ color:#bd1e2a; font-size:18px; font-weight:800; line-height:1; }
.mkd2-product__new small{ font-size:11px; font-weight:700; }
.mkd2-product__old{ color:#aaa7a2; font-size:10px; line-height:1; text-decoration:line-through; }
.mkd2-product__stock{ color:#77736d; font-size:11px; font-weight:600; }

.mkd2-lead{ display:flex; align-items:center; gap:18px; width:66%; max-width:100%; min-height:90px; margin:22px auto 0; padding:18px; border-radius:13px; background:#ba282a; }
.mkd2-lead__text{ flex:1 1 auto; max-width:286px; color:#fff; font-size:16px; font-weight:700; line-height:1.3; }
.mkd2-lead__form{ display:flex; align-items:center; flex:0 0 auto; gap:12px; }
.mkd2-lead__form input[type="tel"]{ width:378px; max-width:40vw; height:54px; padding:0 18px; border:1px solid #e2dfdb; border-radius:10px; outline:none; background:#fff; color:#141414; font-size:15px; }
.mkd2-lead__form input[type="tel"]:focus{ border-color:#141414; }
.mkd2-lead__submit{ display:inline-flex; align-items:center; justify-content:center; flex:0 0 52px; width:52px; height:52px; padding:0; border:0; border-radius:10px; background:#1b1b1b; color:#fff; cursor:pointer; font-size:26px; line-height:1; transition:background .15s ease, opacity .15s ease; }
.mkd2-lead__submit:hover{ background:#000; }
.mkd2-lead__submit:disabled{ cursor:wait; opacity:.6; }
.mkd2-lead__thanks{ color:#fff; font-size:15px; font-weight:700; text-align:right; }

@media (max-width:1200px){
  main > .wrap.mkd2-section{ max-width:none; margin-top:48px; }
  .mkd2-section::before{ top:-48px; }
  .mkd2-lead{ width:82%; gap:16px; }
  .mkd2-lead__form input[type="tel"]{ width:340px; max-width:38vw; }
}

@media (max-width:1023px){
  main > .wrap.mkd2-section{ margin-top:32px; }
  .mkd2-section::before{ top:-32px; bottom:-28px; }
  .mkd2-hero{ display:block; height:auto; }
  .mkd2-hero__slider{ height:clamp(320px, 48vw, 396px); }
  .mkd2-offers{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); grid-auto-rows:340px; gap:14px; height:340px; margin-top:14px; overflow:hidden; }
  .mkd2-product{ width:auto; height:340px; grid-template-rows:minmax(0, 1fr) 86px; }
  .mkd2-product__body{ min-height:86px; }
  .mkd2-lead{ width:100%; }
}

@media (max-width:760px){
  .mkd2-lead{ flex-direction:column; align-items:stretch; gap:12px; padding:18px 16px; }
  .mkd2-lead__text{ max-width:none; }
  .mkd2-lead__form{ width:100%; }
  .mkd2-lead__form input[type="tel"]{ width:auto; max-width:none; min-width:0; flex:1; }
}

@media (max-width:680px){
  main > .wrap.mkd2-section{ margin-top:22px; }
  .mkd2-section{ margin-bottom:26px; }
  .mkd2-section::before{ top:-22px; bottom:-22px; }
  .mkd2-hero__slider{ width:100%; height:auto; min-height:0; aspect-ratio:1080 / 1007; }
  .mkd2-hero__slide .card,
  .mkd2-hero__slide .mkd-hslide{ min-height:0 !important; max-height:100%; }
  .mkd2-hero__arrow{ width:44px; height:44px; margin-top:-22px; font-size:31px; }
  .mkd2-hero__arrow span{ height:35px; line-height:32px; }
  .mkd2-hero__arrow--prev{ left:12px; }
  .mkd2-hero__arrow--next{ right:12px; }
  .mkd2-offers{ grid-auto-rows:310px; height:310px; }
  .mkd2-product{ width:auto; height:310px; grid-template-rows:minmax(0, 1fr) 84px; }
  .mkd2-product__badge{ top:10px; left:10px; padding:5px 9px; }
  .mkd2-product .mkd-product-favorite{ top:10px; right:10px; width:36px; height:36px; }
  .mkd2-product__body{ min-height:84px; padding:10px 12px 13px; }
  .mkd2-product__name{ font-size:12px; }
  .mkd2-product__new{ font-size:16px; }
  .mkd2-lead{ margin-top:16px; border-radius:14px; }
  .mkd2-lead__form{ gap:10px; }
  .mkd2-lead__form input[type="tel"]{ height:54px; }
  .mkd2-lead__submit{ flex-basis:54px; width:54px; height:54px; }
}
/* The header and first screen use the same 1440px container as every home section. */
@media (min-width:1366px){
  body.mkd-home:has([data-home-hero-version="2"]) .header-top,
  body.mkd-home:has([data-home-hero-version="2"]) .header-top .wrap{ height:38px; background:#232323; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-top{ background:#232323; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-top .wrap{ max-width:1440px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-top .nav-link{ padding-top:9px; padding-bottom:9px; font-size:12px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-top .head-link,
  body.mkd-home:has([data-home-hero-version="2"]) .header-top .places{ font-size:12px; }

  body.mkd-home:has([data-home-hero-version="2"]) .header-main{ height:72px; background:#f5f4f1; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .flex{ max-width:1440px; height:72px; padding:0 24px; justify-content:flex-start; background:#f5f4f1; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-logo{ flex:0 0 177px; width:177px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-logo a{ display:flex; align-items:center; gap:4px; width:max-content; margin-left:2px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-logo img{ display:none !important; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-logo a::before{ content:""; flex:0 0 20px; width:20px; height:20px; border-radius:50%; background:linear-gradient(#fff,#fff) center/10px 10px no-repeat #b62a31; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-logo a::after{ content:"МИР КЕРАМИКИ"; color:#b62a31; font-size:17px; font-weight:700; line-height:20px; white-space:nowrap; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-search{ flex:1 1 auto; width:auto; min-width:260px; height:43px; margin-right:14px; margin-left:24px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-search .search-holder{ width:100%; height:43px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-search .search-holder form{ height:43px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-search .main-search{ height:43px; min-height:43px; padding-right:16px; padding-left:44px; border:1px solid #e4e1dd; background:#fff; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-search .inner-search{ right:auto; left:16px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-favorites,
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-cart{ position:relative; flex:0 0 43px; width:43px; height:43px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-favorites{ margin-left:0; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-cart{ margin-left:7px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-favorites .head-link,
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-cart .head-link{ position:relative; display:flex; align-items:center; justify-content:center; width:43px; height:43px; border:1px solid #e4e1dd; border-radius:11px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-favorites .ico,
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-cart .ico{ float:none; margin:0; font-size:18px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-favorites .nav-count,
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-cart .nav-count{ position:absolute; top:-7px; right:-7px; left:auto; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .nav-count[hidden]{ display:none !important; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main i.ico-favorites{ font-family:Arial,sans-serif !important; font-size:25px; line-height:18px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main i.ico-favorites::before{ content:"\2606"; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main i.ico-cart{ position:relative; width:18px; height:20px; font-size:0; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main i.ico-cart::before{ content:""; position:absolute; bottom:1px; left:2px; width:14px; height:13px; border:1.5px solid #141414; border-radius:2px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main i.ico-cart::after{ content:""; position:absolute; top:1px; left:6px; width:6px; height:6px; border:1.5px solid #141414; border-bottom:0; border-radius:6px 6px 0 0; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .flex > .cut_m{ flex:0 0 144px; width:144px; height:43px; margin-left:7px; }
  body.mkd-home:has([data-home-hero-version="2"]) .header-main .flex > .cut_m .mkd-consult-btn{ justify-content:center; width:100%; height:43px; margin-left:0; padding:0 16px; }

  body.mkd-home:has([data-home-hero-version="2"]) .mkd-menubar,
  body.mkd-home:has([data-home-hero-version="2"]) .mkd-menubar .wrap{ height:52px; background:#f5f4f1; }
  body.mkd-home:has([data-home-hero-version="2"]) .mkd-menubar{ background:#f5f4f1; }
  body.mkd-home:has([data-home-hero-version="2"]) .mkd-menubar .wrap{ max-width:1440px; }
  body.mkd-home:has([data-home-hero-version="2"]) .mkd-menubar a{ font-weight:500; }
  body.mkd-home:has([data-home-hero-version="2"]) .mkd-menubar a.mkd-menubar__all{ gap:10px; color:#af2622; }
  body.mkd-home:has([data-home-hero-version="2"]) .mkd-menubar a.mkd-menubar__all .ico{ color:#141414; font-size:12px; }
  body.mkd-home:has([data-home-hero-version="2"]) main > .wrap.mkd2-section{ margin-top:70px; }
  body.mkd-home:has([data-home-hero-version="2"]) .mkd2-section{ margin-bottom:60px; }
  body.mkd-home:has([data-home-hero-version="2"]) .mkd2-section::before{ top:-70px; }
  body.mkd-home:has([data-home-hero-version="2"]) .mkd2-hero__arrow{ top:60%; }
  body.mkd-home:has([data-home-hero-version="2"]) .mkd2-lead__text{ transform:scale(1.025, 1.055); transform-origin:left center; }
}

/* ===== Новости главной: тот же визуальный язык, что у товарных лент ===== */
.mkd-news-section .news-blog{ margin:0; }
.mkd-news-section .mkd-news-heading{ margin-bottom:18px; }
.mkd-news-section .mkd-news-all{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:10px 15px;
  border:1px solid #dfdcd7;
  border-radius:999px;
  background:#fff;
  color:#292824;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
  transition:color .2s ease,border-color .2s ease,background-color .2s ease;
}
.mkd-news-section .mkd-news-all span{ color:#bd1e2a; font-size:18px; line-height:1; }
.mkd-news-section .mkd-news-all:hover{ color:#a91627; border-color:#e4b1b8; background:#fff4f5; }
.mkd-news-section .mkd-news-tabs{ margin-bottom:16px; }
.mkd-news-section .swiper-tags{ width:100%; margin:0; padding:0 0 4px; }
.mkd-news-section .swiper-tags .swiper-slide:not(:last-child){ margin-right:8px; }
.mkd-news-section .swiper-tags .cat-tag{
  min-height:36px;
  padding:10px 14px;
  border:1px solid #e4e1dc;
  border-radius:999px;
  background:#fff;
  color:#5d5a55;
  font-size:11px;
  font-weight:700;
  line-height:14px;
  text-transform:none;
}
.mkd-news-section .swiper-tags .cat-tag.active,
.mkd-news-section .swiper-tags .cat-tag:hover{ color:#fff; border-color:#232220; background:#232220; }
.mkd-news-section .swiper-blog{ padding:2px 2px 22px; }
.mkd-news-section .swiper-blog .swiper-wrapper{ align-items:stretch; }
.mkd-news-section .swiper-blog .swiper-slide{ display:flex; height:auto; }
.mkd-news-section .swiper-blog .swiper-slide:not(:last-child){ margin-right:16px; }
.mkd-news-section .card{
  width:320px;
  min-height:390px;
  padding:12px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #e7e4df;
  border-radius:18px;
  background:#fff;
  box-shadow:none;
  transition:border-color .2s ease;
}
.mkd-news-section .card:hover{ border-color:#d6d1ca; }
.mkd-news-section .card-link{
  width:100%;
  min-height:0;
  aspect-ratio:16/10;
  display:block;
  overflow:hidden;
  border-radius:12px;
  background:#ece9e5;
}
.mkd-news-section .card-link picture{ display:block; width:100%; height:100%; }
.mkd-news-section .card-link img{
  width:100%!important;
  height:100%;
  display:block;
  object-fit:cover;
  transition:scale .72s cubic-bezier(.22,1,.36,1);
}
.mkd-news-section .card:hover .card-link img{ scale:1.035; }
.mkd-news-section .card-info{ flex:1 1 auto; padding:4px 4px 5px; display:flex; flex-direction:column; }
.mkd-news-section .card-type{ min-height:28px; margin:10px 0 8px; gap:10px; }
.mkd-news-section .card-type-text{
  padding:5px 8px;
  border:0;
  border-radius:999px;
  background:#f0eeea;
  color:#4e4b46;
  font-size:9px;
  line-height:11px;
}
.mkd-news-section .card-type-link:hover .card-type-text{ color:#fff; background:#232220; }
.mkd-news-section .card-date{ color:#918d87; font-size:11px; }
.mkd-news-section .card-caption{ min-height:44px; max-height:44px; margin:0 0 10px; }
.mkd-news-section .card-title-link{
  color:#292824;
  font-size:16px;
  font-weight:700;
  line-height:22px;
  text-decoration:none;
}
.mkd-news-section .card-description{
  min-height:57px;
  max-height:57px;
  margin:0 0 12px;
  color:#77736d;
  font-size:13px;
  line-height:19px;
  display:-webkit-box;
  overflow:hidden;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}
.mkd-news-section .card-hashtags{ min-height:20px; max-height:40px; margin-top:auto; gap:5px 10px; }
.mkd-news-section .tag{ margin:0; color:#b51c2e; font-size:10px; line-height:16px; }
.mkd-news-section .swiper-scrollbar{ height:4px; border-radius:999px; background:#e6e3de; }
.mkd-news-section .swiper-scrollbar-drag{ border-radius:999px; background:#bd1e2a; }

@media (max-width:680px){
  .mkd-news-section .mkd-news-heading{ align-items:flex-end; margin-bottom:14px; }
  .mkd-news-section .mkd-news-all{ min-height:38px; padding:8px 11px; font-size:0; }
  .mkd-news-section .mkd-news-all span{ font-size:20px; }
  .mkd-news-section .mkd-news-tabs{ margin-bottom:12px; }
  .mkd-news-section .card{ width:min(82vw,306px); min-height:376px; }
  .mkd-news-section .card-title-link{ font-size:15px; line-height:20px; }
  .mkd-news-section .card-caption{ min-height:40px; max-height:40px; }
}
