/* moto365 — детальная страница бренда. Префикс m365b-. Брейкпоинты: 900px, 560px. */

.m365b {
  --o: #F26522; --o-hover: #DE5714; --ink: #0F1115; --text: #4A4842; --muted: #6B6963; --faint: #8B8880;
  --panel: #F6F6F4; --line: #EEEEEA; --line-2: #E7E3DC;
  max-width: 1440px; margin: 0 auto; padding: 20px 24px 64px;
  display: flex; flex-direction: column; gap: 28px;
  font-family: 'Onest', system-ui, -apple-system, sans-serif; color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.m365b *, .m365b *::before, .m365b *::after { box-sizing: border-box; }
.m365b a { color: var(--o); }

.m365b-crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.m365b .m365b-crumbs a { color: var(--faint); text-decoration: none; }
.m365b .m365b-crumbs a:hover { color: var(--o); }
.m365b-crumbs .is-current { color: var(--ink); white-space: nowrap; }

.m365b-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--o); }
.m365b-head { display: flex; flex-direction: column; gap: 8px; }
.m365b-h2 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.m365b-h2--sm { font-size: 22px; }

.m365b .m365b-btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 52px; padding: 0 22px; border-radius: 14px; font-size: 15px; font-weight: 700; text-decoration: none;
  background: var(--o); color: #fff; box-shadow: 0 10px 24px -10px rgba(242,101,34,.7); transition: background .15s, border-color .15s;
}
.m365b .m365b-btn:hover { background: var(--o-hover); color: #fff; }
.m365b .m365b-btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,.22); box-shadow: none; font-weight: 600; }
.m365b .m365b-btn--ghost:hover { background: transparent; border-color: #fff; }

/* hero */
.m365b-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 56px; color: #fff; background: linear-gradient(135deg, #0F1115 0%, #1a1512 60%, #2a1810 100%); }
.m365b-hero__glow { position: absolute; right: -140px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(242,101,34,.28) 0%, transparent 70%); pointer-events: none; }
.m365b-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.m365b-hero__id { display: flex; gap: 28px; align-items: center; }
.m365b-logo { flex: 0 0 auto; width: 148px; height: 148px; border-radius: 24px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.m365b-logo img { max-width: 76%; max-height: 60%; object-fit: contain; display: block; }
.m365b-logo__text { font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.m365b-hero__title { margin: 0; font-size: 48px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.m365b-hero__title span { color: var(--o); }
.m365b-hero__side { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 460px; margin-left: auto; }
.m365b-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m365b-stat { padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.m365b-stat__num { font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.m365b-stat__label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 6px; }
.m365b-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.m365b-hero__actions .m365b-btn:first-child { flex: 1 1 auto; }

/* о бренде — intro сверху, секции (h2+текст) сеткой */
.m365b-about { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 44px; display: flex; flex-direction: column; gap: 20px; }
.m365b-desc { display: flex; flex-direction: column; gap: 20px; }
.m365b-desc > p:first-child { max-width: 980px; margin: 0; font-size: 18px; line-height: 1.6; font-weight: 500; color: var(--ink); }
.m365b-desc__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px 40px; align-items: start; }
.m365b-desc > section,
.m365b-desc__cols > section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.m365b-desc h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.m365b-desc p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.m365b-desc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.m365b-desc li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.5; color: var(--text); }
.m365b-desc li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--o); }
.m365b-desc a { color: var(--o); }

/* товары */
.m365b-products { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; scroll-margin-top: 90px; }
.m365b-products__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.m365b-sort { display: flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 600; }
.m365b .m365b-sort a { padding: 8px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.m365b .m365b-sort a.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.m365b-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.m365b .m365b-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; flex: 0 0 auto; background: #fff; color: var(--ink); border: 1px solid var(--line-2); transition: border-color .15s; }
.m365b .m365b-chip:hover { border-color: var(--o); }
.m365b-chip span { font-size: 12px; font-weight: 500; color: var(--faint); }
.m365b .m365b-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.m365b-chip.is-active span { color: rgba(255,255,255,.6); }

.m365b-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.m365b .m365b-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.m365b .m365b-card:hover { border-color: #E0D9CC; box-shadow: 0 12px 28px -16px rgba(15,17,21,.25); color: var(--ink); }
.m365b-card__img { aspect-ratio: 1/1; background: #fff; display: flex; align-items: center; justify-content: center; }
.m365b-card__img img { width: 100%; height: 100%; object-fit: contain; }
.m365b-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #F4F1EA 0, #F4F1EA 12px, #EFEBE2 12px, #EFEBE2 24px); font-size: 0; }
.m365b-ph::after { content: "М"; width: 44px; height: 44px; border-radius: 50%; background: var(--o); color: #fff; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.m365b-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.m365b-card__cat { font-size: 12px; color: var(--faint); }
.m365b-card__name { font-size: 15px; line-height: 1.35; font-weight: 600; flex: 1 1 auto; }
.m365b-card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.m365b-card__price { font-size: 18px; font-weight: 800; white-space: nowrap; }
.m365b-card__price span { font-size: 13px; font-weight: 500; color: var(--muted); }
.m365b-card__shops { font-size: 12px; font-weight: 600; color: var(--o); white-space: nowrap; }
.m365b .m365b-more { align-self: center; display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 14px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.m365b .m365b-more:hover { background: var(--ink); color: #fff; }

/* похожие */
.m365b-related { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.m365b-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.m365b .m365b-related__grid a { height: 84px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; transition: border-color .15s, color .15s; }
.m365b .m365b-related__grid a:hover { border-color: var(--o); color: var(--o); }

/* ===== ПЛАНШЕТ ===== */
@media (max-width: 900px) {
  .m365b-hero { padding: 36px 28px; }
  .m365b-hero__grid { grid-template-columns: 1fr; }
  .m365b-hero__side { max-width: none; margin-left: 0; }
  .m365b-logo { width: 112px; height: 112px; border-radius: 20px; }
  .m365b-logo__text { font-size: 34px; }
  .m365b-hero__title { font-size: 36px; }
  .m365b-about { padding: 32px; }
  .m365b-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== ТЕЛЕФОН ===== */
@media (max-width: 560px) {
  .m365b { padding: 14px 16px 40px; gap: 22px; }
  .m365b-hero { border-radius: 22px; padding: 24px 20px; }
  .m365b-hero__id { gap: 16px; }
  .m365b-logo { width: 88px; height: 88px; border-radius: 18px; }
  .m365b-logo__text { font-size: 28px; }
  .m365b-hero__title { font-size: 28px; }
  .m365b-stat__num { font-size: 26px; }
  .m365b-about { border-radius: 20px; padding: 22px 18px; gap: 18px; }
  .m365b-desc { gap: 16px; }
  .m365b-desc__cols { gap: 18px; }
  .m365b-desc > p:first-child { font-size: 16px; }
  .m365b-desc h2 { font-size: 18px; }
  .m365b-desc p, .m365b-desc li { font-size: 15px; line-height: 1.6; }
  .m365b-h2 { font-size: 24px; }
  .m365b-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; gap: 8px; scrollbar-width: none; }
  .m365b-chips::-webkit-scrollbar { display: none; }
  .m365b .m365b-chip { height: 36px; padding: 0 14px; }
  .m365b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m365b-card__body { padding: 10px 12px 12px; gap: 4px; }
  .m365b-card__name { font-size: 13px; }
  .m365b-card__foot { flex-direction: column; gap: 2px; margin-top: 4px; }
  .m365b-card__price { font-size: 16px; }
  .m365b .m365b-more { width: 100%; padding: 0 20px; }
  .m365b-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m365b .m365b-related__grid a { height: 64px; border-radius: 14px; }
}

/* отступ под фиксированную шапку: shorthand padding в медиазапросах его не должен сбрасывать */
main.m365b { padding-top: calc(76px + 16px); }
@media (max-width: 1100px) {
  main.m365b { padding-top: calc(132px + 12px); }
}
@media (max-width: 560px) {
  main.m365b { padding-top: calc(124px + 12px); }
}
.m365b-logo__text { font-size: 22px; line-height: 1.05; white-space: normal; text-align: center; padding: 10px; word-break: break-word; }
