/* Раздел «Хит мебель» — в стиле hm-mbb.ru */
:root {
  --hm-bg: #f3f3f3;
  --hm-white: #fff;
  --hm-ink: #000;
  --hm-text: #333;
  --hm-muted: #8e8e8e;
  --hm-accent: #b8a48a;
  --hm-accent-dark: #a08a70;
  --hm-dark: #222;
  --hm-gray: #e7e7e7;
  --hm-font: "Manrope", "Segoe UI", Arial, sans-serif;
  --hm-ease: cubic-bezier(.25, .7, .25, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
html:has(body.hit) { overflow-x: hidden; overflow-x: clip; }
body.hit { margin: 0; background: var(--hm-bg); color: var(--hm-ink); font-family: var(--hm-font); font-weight: 600; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.hit) img { display: block; max-width: 100%; }
:where(.hit) a { color: inherit; text-decoration: none; }
:where(.hit) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.hit) :is(h1, h2, h3, p) { margin: 0; }
.hit [hidden] { display: none !important; }
.hm-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.hm-main { min-height: 50vh; }
.hm-section { padding-top: 90px; }
.hm-h1 { font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.hm-h2 { font-size: 36px; font-weight: 800; line-height: 1.15; margin-bottom: 36px; letter-spacing: -.01em; }

/* Кнопки */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 30px; border-radius: 100px; background: var(--hm-accent); color: #fff !important; font-weight: 700; font-size: 15px; transition: all .3s ease; white-space: nowrap; }
@media (hover: hover) { .hm-btn:hover { background: var(--hm-accent-dark); } }
.hm-btn:active { transform: scale(.97); }
.hm-btn--sm { height: 36px; padding: 0 20px; font-size: 13px; }
.hm-btn--lg { height: 56px; width: 100%; font-size: 16px; }
.hm-btn--light { background: var(--hm-bg); color: var(--hm-ink) !important; }
@media (hover: hover) { .hm-btn--light:hover { background: var(--hm-gray); } }

/* Шапка-«пилюля» */
.hm-header { position: sticky; top: 0; z-index: 100; padding-top: 20px; transition: padding .3s ease; }
.hm-header.is-scrolled { padding-top: 10px; }
.hm-header__bar { display: flex; align-items: center; gap: 30px; height: 72px; padding: 0 30px; background: var(--hm-white); border-radius: 50px; box-shadow: 0 4px 30px rgba(0,0,0,.06); }
.hm-header__logo img { height: 50px; width: auto; }
.hm-header__menu { display: flex; align-items: center; gap: 20px; margin-right: auto; }
.hm-header__menu a { font-size: 16px; transition: color .3s ease; white-space: nowrap; }
.hm-header__menu a.is-current { color: var(--hm-accent); }
@media (hover: hover) { .hm-header__menu a:hover { color: var(--hm-accent); } }
.hm-home { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 100px; transition: all .3s ease; }
.hm-home.is-active { background: var(--hm-accent); color: #fff !important; }
@media (hover: hover) { .hm-home:hover { background: var(--hm-accent); color: #fff !important; } }
.hm-header__search { display: inline-flex; }
.hm-header__back { display: none; }
.hm-header__right { display: flex; align-items: center; gap: 16px; }
.hm-header__mail { font-size: 16px; text-decoration: underline !important; text-underline-offset: 4px; transition: color .3s ease; }
@media (hover: hover) { .hm-header__mail:hover { color: var(--hm-accent); } }
.hm-header__phone { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--hm-accent); color: #fff !important; align-items: center; justify-content: center; }
.hm-burger { display: none; width: 40px; height: 40px; position: relative; }
.hm-burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--hm-ink); border-radius: 2px; transition: all .3s ease; }
.hm-burger span:nth-child(1) { top: 13px; } .hm-burger span:nth-child(2) { top: 19px; } .hm-burger span:nth-child(3) { top: 25px; }
.menu-open .hm-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .hm-burger span:nth-child(2) { opacity: 0; }
.menu-open .hm-burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.menu-shade { display: none; }

.hm-socials { display: flex; gap: 8px; }
.hm-socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--hm-accent); color: #fff !important; display: grid; place-items: center; transition: all .3s ease; }
@media (hover: hover) { .hm-socials a:hover { background: var(--hm-accent-dark); transform: scale(1.05); } }
.hm-socials svg { width: 18px; height: 18px; }

/* Первый экран */
.hm-hero { margin-top: 20px; }
.hm-hero__video { width: 100%; aspect-ratio: 1240 / 543; object-fit: cover; border-radius: 20px; display: block; background: #ddd; }

/* Плитки каталога */
.hm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-tiles--small { grid-template-columns: repeat(6, 1fr); gap: 15px; }
.hm-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--hm-gray); }
.hm-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--hm-ease); }
.hm-tile::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.08); transition: background .3s ease; }
.hm-tile__name { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 90%; text-align: center; color: rgba(255,255,255,.92); font-size: 30px; font-weight: 700; line-height: 1.1; text-shadow: 0 2px 14px rgba(0,0,0,.35); transition: transform .4s var(--hm-ease); }
@media (hover: hover) { .hm-tile:hover img { transform: scale(1.05); } }
@media (hover: hover) { .hm-tile:hover::after { background: rgba(0,0,0,.25); } }
@media (hover: hover) { .hm-tile:hover .hm-tile__name { transform: translate(-50%, -50%) scale(1.1); } }
.hm-tiles--small .hm-tile__name { font-size: 18px; }

/* О компании */
.hm-about { border-radius: 20px; overflow: hidden; background: var(--hm-dark); }
.hm-about__top img { width: 100%; aspect-ratio: 1240 / 600; object-fit: cover; }
.hm-about__bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 50px 46px; color: #fff; }
.hm-about__brand { color: var(--hm-accent); font-size: 28px; font-weight: 800; }
.hm-about__tagline { font-size: 28px; font-weight: 800; line-height: 1.2; }
.hm-about__right { font-size: 16px; font-weight: 600; line-height: 1.6; color: rgba(255,255,255,.9); }
.hm-about__right p + p { margin-top: 14px; }

/* Где мы находимся */
.hm-where { display: grid; grid-template-columns: 420px 1fr; gap: 20px; }
.hm-where__card { background: var(--hm-white); border-radius: 20px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.hm-where__city { color: var(--hm-accent); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.hm-where__name { font-size: 24px; font-weight: 800; line-height: 1.2; }
.hm-where__lead { color: var(--hm-text); font-size: 15px; }
.hm-where__list { margin: 8px 0 0; display: grid; gap: 14px; }
.hm-where__list dt { font-size: 13px; color: var(--hm-muted); margin-bottom: 2px; }
.hm-where__list dd { margin: 0; font-size: 16px; font-weight: 700; }
@media (hover: hover) { .hm-where__list a:hover { color: var(--hm-accent); } }
.hm-where__buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.hm-where__map { border-radius: 20px; overflow: hidden; min-height: 460px; background: var(--hm-gray); }
.hm-where__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* Внутренние страницы */
.hm-page { padding-top: 50px; }
.hm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13px; margin-bottom: 30px; }
.hm-crumbs a { transition: color .3s ease; }
@media (hover: hover) { .hm-crumbs a:hover { color: var(--hm-accent); } }
.hm-crumbs i { width: 6px; height: 6px; border-radius: 50%; background: var(--hm-accent); display: block; }
.hm-crumbs span { color: var(--hm-text); }
.hm-page__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.hm-search { display: flex; align-items: center; height: 46px; width: 320px; max-width: 100%; background: var(--hm-white); border-radius: 100px; padding: 0 6px 0 22px; }
.hm-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 15px; color: var(--hm-ink); }
.hm-search button { width: 36px; height: 36px; border-radius: 50%; background: var(--hm-accent); color: #fff; display: grid; place-items: center; transition: background .3s ease; }
@media (hover: hover) { .hm-search button:hover { background: var(--hm-accent-dark); } }
.hm-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.hm-chip { padding: 10px 20px; border-radius: 100px; background: var(--hm-white); font-size: 14px; transition: all .3s ease; }
@media (hover: hover) { .hm-chip:hover { color: var(--hm-accent); } }
.hm-chip.is-active { background: var(--hm-accent); color: #fff !important; }
.hm-empty { padding: 60px 0; }
.hm-empty h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.hm-empty a { color: var(--hm-accent); text-decoration: underline; }

/* Карточки товаров */
.hm-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-card { background: var(--hm-white); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 16px; transition: transform .3s ease, box-shadow .3s ease; }
@media (hover: hover) { .hm-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,.07); } }
.hm-card__img { position: relative; display: block; aspect-ratio: 400 / 250; border-radius: 15px; overflow: hidden; background: var(--hm-gray); }
.hm-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--hm-ease); }
@media (hover: hover) { .hm-card:hover .hm-card__img img { transform: scale(1.05); } }
.hm-tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 4px 12px; border-radius: 100px; background: rgba(150,150,150,.75); color: #fff; font-size: 11px; font-weight: 700; }
.hm-tag--accent { left: auto; right: 12px; background: var(--hm-accent); }
.hm-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hm-card__title { font-size: 18px; font-weight: 800; text-decoration: underline !important; text-underline-offset: 4px; text-decoration-thickness: 2px !important; transition: color .3s ease; }
@media (hover: hover) { .hm-card__title:hover { color: var(--hm-accent); } }

/* Товар */
.hm-product { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hm-gallery__main { aspect-ratio: 800 / 500; border-radius: 20px; overflow: hidden; background: var(--hm-gray); cursor: zoom-in; }
.hm-gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease, transform .6s var(--hm-ease); }
.hm-gallery__main img.is-fading { opacity: 0; }
@media (hover: hover) { .hm-gallery__main:hover img { transform: scale(1.03); } }
.hm-gallery__thumbs { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.hm-gallery__track { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; flex: 1; scroll-behavior: smooth; }
.hm-gallery__track::-webkit-scrollbar { display: none; }
.hm-thumb { flex: 0 0 calc((100% - 36px) / 4); aspect-ratio: 160 / 100; border-radius: 15px; overflow: hidden; background: var(--hm-white); opacity: .75; transition: all .3s ease; outline: 2px solid transparent; outline-offset: -2px; }
.hm-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .hm-thumb:hover { opacity: 1; } }
.hm-thumb.is-active { opacity: 1; outline-color: var(--hm-accent); }
.hm-arrow { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--hm-white); display: grid; place-items: center; transition: all .3s ease; }
@media (hover: hover) { .hm-arrow:hover { background: var(--hm-accent); color: #fff; } }
.hm-product__info { display: grid; gap: 20px; position: sticky; top: 110px; }
.hm-product__desc { font-size: 15px; line-height: 1.6; color: var(--hm-text); }
.hm-product__desc p + p { margin-top: 10px; }
.hm-product__price { font-size: 26px; font-weight: 800; }
.hm-product__salon { display: flex; gap: 12px; align-items: flex-start; background: var(--hm-white); border-radius: 15px; padding: 16px 18px; font-size: 14px; }
.hm-product__salon small { color: var(--hm-muted); font-size: 13px; font-weight: 600; }
.hm-product__salon a { color: var(--hm-accent); }
.hm-product__salon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hm-accent); flex-shrink: 0; margin-top: 6px; box-shadow: 0 0 0 4px rgba(184,164,138,.25); }
.hm-tech { margin-top: 40px; background: var(--hm-white); border-radius: 20px; padding: 26px 26px 18px; max-width: calc(60% - 16px); }
.hm-tech__title { color: var(--hm-accent); font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.hm-tech__row { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.hm-tech__row:last-child { border-bottom: 0; }
.hm-tech__row b { text-align: right; font-weight: 600; }

/* Фото в интерьере */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slider__track::-webkit-scrollbar { display: none; }
.hm-interior__item { scroll-snap-align: start; aspect-ratio: 295 / 220; border-radius: 20px; overflow: hidden; background: var(--hm-gray); cursor: zoom-in; display: block; }
.hm-interior__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--hm-ease); }
@media (hover: hover) { .hm-interior__item:hover img { transform: scale(1.05); } }
.slider__btn { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; background: var(--hm-white); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.12); transition: all .3s ease; z-index: 3; }
@media (hover: hover) { .slider__btn:hover { background: var(--hm-accent); color: #fff; } }
.slider__btn--prev { left: -14px; }
.slider__btn--next { right: -14px; }
.slider__btn.is-hidden { opacity: 0; pointer-events: none; }

/* Подвал */
.hm-footer { padding-top: 90px; padding-bottom: 24px; }
.hm-footer__box { background: var(--hm-dark); color: #fff; border-radius: 20px; padding: 40px 36px 30px; }
.hm-footer__cols { display: grid; grid-template-columns: 240px 1fr auto; gap: 30px; }
.hm-footer__col { display: grid; gap: 12px; align-content: start; justify-items: start; font-size: 15px; }
.hm-footer__col a { transition: color .3s ease; }
@media (hover: hover) { .hm-footer__col a:hover { color: var(--hm-accent); } }
.hm-footer__title { color: var(--hm-accent); font-size: 14px; margin-bottom: 6px; }
.hm-footer__contacts { display: grid; gap: 10px; justify-items: end; text-align: right; }
.hm-footer__big { font-size: 26px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 5px; text-decoration-thickness: 1.5px !important; transition: color .3s ease; }
@media (hover: hover) { .hm-footer__big:hover { color: var(--hm-accent); } }
.hm-footer__addr { font-size: 13px; color: rgba(255,255,255,.6); margin: 6px 0 8px; }
.hm-footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.hm-footer__logos { display: flex; gap: 10px; }
.hm-footer__logo { width: 52px; height: 52px; border-radius: 10px; background: #2e2e2e; display: grid; place-items: center; padding: 8px; transition: background .3s ease; }
@media (hover: hover) { .hm-footer__logo:hover { background: #3a3a3a; } }
.hm-footer__logo img { max-height: 100%; }
.hm-footer__logo--mbb svg { width: 32px; height: 18px; }
.hm-footer__logo--mbb svg path { fill: #fff; stroke: none; }
.hm-footer__logo--mbb { box-shadow: inset 0 0 0 2px #ff5000; }
.hm-footer__legal { text-align: right; display: grid; gap: 6px; font-size: 14px; }
.hm-footer__legal small { color: rgba(255,255,255,.5); font-size: 12px; font-weight: 600; }
.hm-footer__note { text-align: center; font-size: 12px; color: #777; margin-top: 18px; line-height: 1.5; padding: 0 20px; }

.hm-up { position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--hm-accent) !important; color: #fff !important; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transition: all .3s ease; }
.hm-up.is-visible { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .hm-up:hover { background: var(--hm-accent-dark) !important; } }

/* Окно заказа */
.modal { position: fixed; inset: 0; z-index: 10100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: hmFade .3s; }
.modal__box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--hm-bg); border-radius: 20px; padding: 40px 34px 30px; animation: hmPop .35s var(--hm-ease); }
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--hm-white); display: grid; place-items: center; transition: all .3s ease; }
@media (hover: hover) { .modal__close:hover { background: var(--hm-accent); color: #fff; } }
.modal__title { font-size: 28px; font-weight: 800; margin-bottom: 8px; padding-right: 44px; }
.modal__text { font-size: 14px; color: var(--hm-text); margin-bottom: 22px; }
.modal__text span:not(:empty) { display: block; color: var(--hm-accent); font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.modal-open, .menu-open { overflow: hidden; }
.modal__contacts { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e2e2e2; text-align: center; display: grid; gap: 8px; }
.modal__contacts-title { font-size: 12px; color: var(--hm-muted); text-transform: uppercase; letter-spacing: .08em; }
.modal__phones { display: flex; justify-content: center; gap: 8px 24px; flex-wrap: wrap; }
.modal__phones a { font-size: 18px; font-weight: 800; transition: color .3s ease; }
@media (hover: hover) { .modal__phones a:hover { color: var(--hm-accent); } }
@keyframes hmFade { from { opacity: 0; } }
@keyframes hmPop { from { opacity: 0; transform: translateY(20px) scale(.98); } }

.lead-form { display: grid; gap: 12px; position: relative; }
.lead-form__row { display: grid; gap: 12px; }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; border: 0; border-radius: 100px; background: var(--hm-white); padding: 22px 22px 8px; font: inherit; font-size: 15px; color: var(--hm-ink); outline: none; transition: box-shadow .3s ease; }
.field textarea { border-radius: 20px; min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 2px var(--hm-accent); }
.field > span { position: absolute; left: 22px; top: 15px; color: var(--hm-muted); font-size: 15px; pointer-events: none; transition: all .2s ease; }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 6px; font-size: 11px; }
.field i, .check i { color: #e45b4f; font-style: normal; }
.field.is-invalid input { box-shadow: 0 0 0 2px #e45b4f; }
.lead-form__submit { display: grid; gap: 12px; margin-top: 4px; }
.lead-form .btn { height: 52px; border-radius: 100px; background: var(--hm-accent); color: #fff; font-weight: 800; font-size: 15px; transition: all .3s ease; }
@media (hover: hover) { .lead-form .btn:hover { background: var(--hm-accent-dark); } }
.lead-form .btn:active { transform: scale(.98); }
.lead-form .btn[disabled] { opacity: .6; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--hm-text); cursor: pointer; }
.check input { accent-color: var(--hm-accent); width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.check a { text-decoration: underline; }
.lead-form__error { color: #e45b4f; font-size: 14px; }
.lead-form__error:empty { display: none; }
.lead-form__success { position: absolute; inset: 0; background: var(--hm-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; animation: hmFade .4s; }
.lead-form__success h4 { font-size: 26px; font-weight: 800; color: var(--hm-accent); margin: 0; }
.lead-form__success p { color: var(--hm-text); }
.lead-form.is-sent > *:not(.lead-form__success) { visibility: hidden; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 10200; background: rgba(0,0,0,.9); display: grid; place-items: center; animation: hmFade .3s; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 12px; }
.lightbox__close { position: absolute; top: 20px; right: 24px; color: #fff !important; }
.lightbox__nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; background: var(--hm-accent) !important; color: #fff !important; display: grid; place-items: center; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }

/* Плавное появление, как в оригинале */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Адаптив */
@media (max-width: 1180px) {
  .hm-header__mail { display: none; }
  .hm-header__menu { gap: 14px; }
  .hm-header__menu a { font-size: 15px; }
}
@media (max-width: 991px) {
  .hm-header { padding-top: 12px; }
  .hm-header__bar { height: 60px; padding: 0 12px 0 20px; gap: 12px; }
  .hm-header__logo img { height: 40px; }
  .hm-header__right { margin-left: auto; gap: 8px; }
  .hm-header__right .hm-socials { display: none; }
  .hm-header__phone { display: inline-flex; }
  .hm-burger { display: block; }
  .hm-header__menu { position: absolute; left: 20px; right: 20px; top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 0; padding: 14px; background: var(--hm-white); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.12); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .3s ease; }
  .menu-open .hm-header__menu { opacity: 1; transform: none; pointer-events: auto; }
  .hm-header__menu a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .hm-header__menu .hm-home { justify-content: flex-start; }
  .hm-header__search { display: none; }
  .hm-header__back { display: block; color: var(--hm-accent) !important; font-size: 14px !important; }
  .menu-shade { display: block; position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .menu-open .menu-shade { opacity: 1; pointer-events: auto; }
  .hm-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hm-tiles--small { grid-template-columns: repeat(3, 1fr); }
  .hm-products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hm-product { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hm-product__info { position: static; }
  .hm-tech { max-width: none; }
  .hm-where { grid-template-columns: minmax(0, 1fr); }
  .hm-about__bottom { grid-template-columns: 1fr; padding: 34px 26px; gap: 20px; }
  .slider__track { grid-auto-columns: calc((100% - 20px) / 2); }
  .hm-footer__cols { grid-template-columns: 1fr 1fr; }
  .hm-footer__contacts { grid-column: 1 / -1; justify-items: start; text-align: left; }
}
@media (max-width: 640px) {
  .hm-container { padding: 0 12px; }
  .hm-section { padding-top: 56px; }
  .hm-h1, .hm-h2 { font-size: 28px; }
  .hm-h2 { margin-bottom: 22px; }
  .hm-hero { margin-top: 12px; }
  .hm-hero__video { aspect-ratio: 4 / 3.4; border-radius: 16px; }
  .hm-tile { border-radius: 16px; }
  .hm-tile__name { font-size: 20px; }
  .hm-tiles--small { grid-template-columns: repeat(2, 1fr); }
  .hm-tiles--small .hm-tile__name { font-size: 16px; }
  .hm-products { grid-template-columns: 1fr; }
  .hm-card { padding: 14px; }
  .hm-about__top img { aspect-ratio: 4 / 3; }
  .hm-about__brand, .hm-about__tagline { font-size: 22px; }
  .hm-where__card { padding: 26px 20px; }
  .hm-where__map, .hm-where__map iframe { min-height: 320px; }
  .hm-page { padding-top: 30px; }
  .hm-search { width: 100%; }
  .hm-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 24px; padding: 0 12px 4px; scrollbar-width: none; }
  .hm-chip { white-space: nowrap; }
  .hm-thumb { flex-basis: calc((100% - 24px) / 3); }
  .hm-gallery__main { border-radius: 16px; }
  .slider__track { grid-auto-columns: 78%; gap: 12px; }
  .slider__btn { display: none; }
  .hm-footer { padding-top: 56px; }
  .hm-footer__box { padding: 30px 22px 24px; }
  .hm-footer__big { font-size: 21px; }
  .hm-footer__bottom { flex-direction: column; align-items: flex-start; }
  .hm-footer__legal { text-align: left; }
  .modal { padding: 0; align-items: end; }
  .modal__box { border-radius: 20px 20px 0 0; padding: 34px 18px 22px; max-height: 94vh; }
  .hm-up { right: 14px; bottom: 14px; }
}

/* Возврат на МББ, «Наш салон», документы, видео */
.hm-back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 10px; border-radius: 100px; background: #21201e; color: #fff !important; font-size: 13px; font-weight: 700; transition: all .3s ease; white-space: nowrap; }
@media (hover: hover) { .hm-back:hover { background: #000; transform: translateY(-1px); } }
.hm-back__logo { display: inline-grid; place-items: center; width: 34px; height: 24px; border: 2px solid #ff5000; padding: 2px; }
.hm-back__logo svg { width: 24px; height: 14px; }
.hm-back__logo path { fill: #fff; stroke: none; }
.hm-product__salon { transition: box-shadow .3s ease; }
@media (hover: hover) { .hm-product__salon:hover { box-shadow: 0 0 0 2px var(--hm-accent); } }
.hm-product__salon b { font-weight: 800; color: var(--hm-accent); }
.hm-pin { color: var(--hm-accent); flex-shrink: 0; }
.hm-product__bottom { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; margin-top: 40px; align-items: start; }
.hm-product__bottom .hm-tech { margin-top: 0; max-width: none; }
.hm-links { display: grid; }
.hm-links__item { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid #dcdcdc; font-size: 15px; font-weight: 700; text-align: left; transition: color .3s ease, padding .3s ease; }
.hm-links__item:last-child { border-bottom: 1px solid #dcdcdc; }
.hm-links__item::after { content: "↗"; color: var(--hm-accent); font-size: 16px; }
@media (hover: hover) { .hm-links__item:hover { color: var(--hm-accent); padding-left: 6px; } }
.hm-interior__item--video { position: relative; background: var(--hm-white); }
.hm-interior__item--video video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hm-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(80,80,80,.85); color: #fff; display: grid; place-items: center; transition: transform .3s ease; }
@media (hover: hover) { .hm-interior__item--video:hover .hm-play { transform: translate(-50%, -50%) scale(1.1); } }
.vmodal { position: fixed; inset: 0; z-index: 10300; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 40px; animation: hmFade .3s; }
.vmodal video { max-width: 100%; max-height: 88vh; border-radius: 12px; background: #000; }
.vmodal__close { position: absolute; top: 20px; right: 24px; color: #fff !important; }
@media (max-width: 1180px) { .hm-back__text { display: none; } .hm-back { padding: 0 10px; } }
@media (max-width: 991px) { .hm-product__bottom { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 640px) { .vmodal { padding: 10px; } }

/* Видео на первом экране без чёрных полос по краям (они «зашиты» в сам ролик — слегка увеличиваем) */
.hm-hero { overflow: hidden; border-radius: 20px; }
.hm-hero__video { transform: scale(1.035); transform-origin: center; }

/* Окно заявки на iPhone */
body.scroll-locked { position: fixed; left: 0; right: 0; overflow: hidden; width: 100%; }
.modal { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; align-items: start; }
.modal__box { max-height: none; margin: auto; }
.modal__close { position: sticky; top: 0; float: right; margin: -22px -16px 0 0; z-index: 3; }
.modal__close-bottom { display: block; margin: 14px auto 0; padding: 10px 24px; border-radius: 100px; background: var(--hm-white); font-weight: 700; font-size: 14px; }
.modal__contacts .hm-btn { justify-self: center; }
.lead-form__max { display: inline-flex; align-items: center; gap: 8px; color: var(--hm-accent); font-weight: 700; font-size: 14px; }
@media (max-width: 640px) {
  .modal { align-items: stretch; }
  .modal__box { min-height: 100%; border-radius: 0; padding: 14px 18px calc(24px + env(safe-area-inset-bottom)); animation: hmFade .3s; }
  .modal__close { margin: 0 -4px 0 0; }
  .modal__title { clear: both; }
}

/* В наличии */
.hm-lead { color: var(--hm-text); font-size: 15px; margin: -14px 0 24px; max-width: 640px; }
.hm-filters { display: grid; gap: 16px; margin-bottom: 28px; }
.hm-filters__types { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-chip input { display: none; }
.hm-chip { cursor: pointer; }
.hm-filters__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hm-filters__price { display: flex; align-items: center; gap: 8px; background: var(--hm-white); border-radius: 100px; padding: 5px 5px 5px 20px; flex-wrap: wrap; }
.hm-filters__price span { font-size: 13px; color: var(--hm-muted); }
.hm-filters__price input { width: 110px; border: 0; outline: none; font: inherit; font-size: 14px; background: var(--hm-bg); border-radius: 100px; padding: 9px 14px; }
.hm-filters__price i { color: var(--hm-muted); font-style: normal; }
.hm-filters__apply { height: 36px; padding: 0 18px; border-radius: 100px; background: var(--hm-accent) !important; color: #fff !important; font-size: 13px; font-weight: 700; }
.hm-filters__sort { -webkit-appearance: none; appearance: none; color: var(--hm-ink); padding-right: 40px !important; background: var(--hm-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center !important; height: 46px; border: 0; border-radius: 100px; padding: 0 18px; background: var(--hm-white); font: inherit; font-size: 14px; cursor: pointer; outline: none; }
.hm-filters__reset { font-size: 14px; color: var(--hm-accent); text-decoration: underline !important; }
.hm-card--stock .hm-card__img { cursor: zoom-in; width: 100%; }
.hm-card__info { display: grid; gap: 6px; }
.hm-card--stock .hm-card__title { text-decoration: none !important; font-size: 18px; font-weight: 800; }
.hm-card__dims { font-size: 13px; color: var(--hm-muted); }
.hm-card__desc { font-size: 13px; color: var(--hm-text); line-height: 1.5; }
.hm-card__price { font-size: 20px; font-weight: 800; }
.hm-card__price s { font-size: 14px; color: var(--hm-muted); font-weight: 600; }
.hm-card__price--req { font-size: 15px; color: var(--hm-muted); }
.hm-card--stock .hm-card__bottom { margin-top: auto; }
@media (max-width: 640px) {
  .hm-filters__types { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .hm-chip { white-space: nowrap; }
  .hm-filters__price { width: 100%; }
  .hm-filters__price input { width: 90px; flex: 1; }
  .hm-filters__sort { width: 100%; }
}
@media (max-width: 640px) { .modal__close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; margin: 0; float: none; box-shadow: 0 2px 10px rgba(0,0,0,.12); } }

/* листалка фото в карточке */
.car { touch-action: pan-y pinch-zoom; }
.car .car__track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.car .car__track::-webkit-scrollbar { display: none; }
.car .car__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; transform: none !important; -webkit-user-drag: none; user-select: none; }
.car__btn { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(184,164,138,.95); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: background .3s, transform .3s; }
@media (hover: hover) { .car__btn:hover { background: #b8a48a; transform: scale(1.06); } }
.car__btn--prev { left: 12px; }
.car__btn--next { right: 12px; }
.car__count { position: absolute; left: 14px; bottom: 14px; z-index: 3; padding: 6px 11px; border-radius: 4px; background: rgba(17,16,14,.65); color: #fff; font-size: 14px; font-weight: 500; pointer-events: none; }

.lightbox__close { top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); }
.lightbox__nav { z-index: 2; }
@media (max-width: 767px) {
  .lightbox img { max-width: 100vw; max-height: 78vh; border-radius: 0; }
  .lightbox__nav { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); margin-top: 0; }
  .lightbox__count { bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); }
}
.hm-card--stock .car .car__track img { border-radius: 0; }

/* Наши работы */
.hm-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-work { display: block; background: var(--hm-white); border-radius: 20px; padding: 10px 10px 18px; transition: transform .3s var(--hm-ease), box-shadow .3s; }
@media (hover: hover) { .hm-work:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.06); } }
.hm-work__img { position: relative; display: block; aspect-ratio: 400 / 280; border-radius: 15px; overflow: hidden; background: var(--hm-gray); }
.hm-work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--hm-ease); }
@media (hover: hover) { .hm-work:hover .hm-work__img img { transform: scale(1.05); } }
.hm-work__title { display: block; margin: 14px 8px 0; font-size: 18px; font-weight: 800; color: var(--hm-ink); }
.hm-work-about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; margin-bottom: 30px; background: var(--hm-white); border-radius: 20px; padding: 20px; }
.hm-work-about:not(:has(.hm-work-about__video)) { grid-template-columns: minmax(0, 1fr); }
.hm-work-about__video { position: relative; aspect-ratio: 16 / 9; border-radius: 15px; overflow: hidden; background: #000; }
.hm-work-about__video iframe, .hm-work-about__video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hm-work-about__text { color: var(--hm-text); font-size: 15px; line-height: 1.6; }
.hm-work-about__text p + p { margin-top: 1em; }
.hm-work-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 991px) {
  .hm-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hm-work-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-work-about { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .hm-works { grid-template-columns: minmax(0, 1fr); }
  .hm-work-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hm-work-gallery .hm-interior__item { border-radius: 12px; }
  .hm-work-about { padding: 12px; }
}
