/* moto365 — страница «Партнёрам». Все классы с префиксом m365p-, конфликтов с сайтом нет.
   Брейкпоинты: 900px (планшет), 560px (телефон). */

.m365p {
  --o: #F26522;
  --o-hover: #DE5714;
  --ink: #0F1115;
  --text: #4A4842;
  --muted: #6B6963;
  --faint: #8B8880;
  --panel: #F6F6F4;
  --line: #EEEEEA;
  --line-2: #E7E3DC;
  --tint: #FBECE3;
  --err: #C8361B;

  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.m365p *, .m365p *::before, .m365p *::after { box-sizing: border-box; }
.m365p a { color: var(--o); }
.m365p a:hover { color: #B14315; }

/* крошки */
.m365p-crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--faint); }
.m365p-crumbs a { color: var(--faint); text-decoration: none; }
.m365p-crumbs a:hover { color: var(--o); }
.m365p-crumbs .is-current { color: var(--ink); }

/* общие */
.m365p-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--o); }
.m365p-head { display: flex; flex-direction: column; gap: 10px; }
.m365p-h2 { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.m365p-h2--lg { font-size: 44px; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.m365p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; background: var(--o); color: #fff !important;
  border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(242,101,34,.7); transition: background .15s;
}
.m365p-btn:hover { background: var(--o-hover); }

/* hero */
.m365p-hero {
  position: relative; overflow: hidden; border-radius: 28px;
  padding: 72px 64px; color: #fff;
  background: linear-gradient(135deg, #0F1115 0%, #1a1512 60%, #2a1810 100%);
}
.m365p-hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.m365p-hero__glow--a { right: -140px; top: -140px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(242,101,34,.30) 0%, transparent 70%); }
.m365p-hero__glow--b { left: 35%; bottom: -220px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(242,101,34,.12) 0%, transparent 70%); }
.m365p-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.m365p-hero__main { display: flex; flex-direction: column; gap: 22px; }
.m365p-pill {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8);
}
.m365p-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--o); }
.m365p-hero__title { margin: 0; font-size: 68px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.m365p-hero__lead { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.75); max-width: 600px; text-wrap: pretty; }
.m365p-hero__side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-self: end; }
.m365p .m365p-hero__mail { font-size: 14px; color: rgba(255,255,255,.7); text-decoration: none; }
.m365p .m365p-hero__mail:hover { color: #fff; }

/* для кого */
.m365p-aud { padding-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.m365p-aud__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.m365p-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.m365p-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--o); display: flex; align-items: center; justify-content: center; }
.m365p-card__text { font-size: 16px; line-height: 1.45; font-weight: 600; text-wrap: pretty; }
.m365p-aud__outro { margin: 0; font-size: 17px; font-weight: 600; color: #3A3831; }

/* условия */
.m365p-terms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 16px; }
.m365p-free {
  position: relative; overflow: hidden; border-radius: 24px; padding: 44px; color: #fff; min-height: 280px;
  background: linear-gradient(135deg, #F26522 0%, #F08B4A 60%, #FFB37A 100%);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.m365p-free > * { position: relative; }
.m365p-free .m365p-free__blob { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); }
.m365p-free__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.m365p-free__big { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.m365p-free__sub { font-size: 17px; font-weight: 600; }
.m365p-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.m365p-panel__lead { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; text-wrap: pretty; }
.m365p-panel__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.m365p-divider { height: 1px; background: var(--line-2); margin: 4px 0; }
.m365p-panel__cap { font-size: 14px; font-weight: 600; color: var(--muted); }
.m365p-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.m365p-chip { display: inline-flex; align-items: center; padding: 10px 16px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); }
.m365p .m365p-chip--link { color: var(--ink); text-decoration: none; transition: border-color .15s, color .15s; }
.m365p .m365p-chip--link:hover { border-color: var(--o); color: var(--o); }

/* как стать партнёром */
.m365p-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 16px; align-items: start; scroll-margin-top: 90px; }
.m365p-join__info { display: flex; flex-direction: column; gap: 22px; padding: 24px 0; }
.m365p-join__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); max-width: 480px; }
.m365p-ways { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.m365p-way { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; font-size: 16px; font-weight: 600; }
.m365p-way__n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--o); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.m365p-way__n--dark { background: var(--ink); }

/* форма */
.m365p-formbox { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.m365p-form { display: flex; flex-direction: column; gap: 18px; }
.m365p-form.is-hidden { display: none; }
.m365p-form__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.m365p-form__title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.m365p-form__req { font-size: 12px; color: var(--faint); }
.m365p-form__req b, .m365p-label b { color: var(--o); font-weight: 600; }
.m365p-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.m365p-field { display: flex; flex-direction: column; gap: 8px; }
.m365p-label { font-size: 13px; font-weight: 600; color: #3A3831; }
.m365p-input {
  width: 100%; height: 50px; padding: 0 16px; background: #fff; border: 1.5px solid var(--line-2);
  border-radius: 12px; font: inherit; font-size: 15px; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.m365p-input::placeholder { color: #A8A396; }
.m365p-input:focus { border-color: var(--o); box-shadow: 0 0 0 4px rgba(242,101,34,.12); }
.m365p-input--area { height: auto; min-height: 96px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.m365p-error { display: none; font-size: 12px; color: var(--err); }
.m365p-field.has-error .m365p-input { border-color: #E36A4F; }
.m365p-field.has-error .m365p-error { display: block; }
.m365p-captcha { display: flex; gap: 12px; align-items: stretch; }
.m365p-captcha__img { flex: 0 0 auto; width: 130px; height: 50px; border-radius: 12px; border: 1.5px solid var(--line-2); object-fit: cover; cursor: pointer; background: #fff; }
.m365p-captcha .m365p-input { flex: 1 1 auto; min-width: 0; }
.m365p-submit {
  margin-top: 6px; height: 56px; background: var(--o); color: #fff; border: 0; border-radius: 14px;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 24px -10px rgba(242,101,34,.7); transition: background .15s;
}
.m365p-submit:hover { background: var(--o-hover); }
.m365p-submit:disabled { opacity: .6; cursor: default; }
.m365p-consent { margin: 0; font-size: 12px; line-height: 1.5; color: var(--faint); text-align: center; }
.m365p .m365p-consent a { color: var(--muted); }

.m365p-success { display: none; min-height: 520px; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.m365p-success.is-visible { display: flex; }
.m365p-success__icon { width: 72px; height: 72px; border-radius: 20px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.m365p-success__title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.m365p-success__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); max-width: 340px; }

/* ===== ПЛАНШЕТ ===== */
@media (max-width: 900px) {
  .m365p-hero { padding: 48px 36px; }
  .m365p-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .m365p-hero__side { justify-self: start; }
  .m365p-hero__title { font-size: 52px; }
  .m365p-aud__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m365p-terms, .m365p-join { grid-template-columns: 1fr; }
  .m365p-free, .m365p-panel { padding: 32px; }
  .m365p-h2 { font-size: 30px; }
  .m365p-h2--lg { font-size: 36px; }
  .m365p-join__info { padding: 8px 0 0; }
}

/* ===== ТЕЛЕФОН ===== */
@media (max-width: 560px) {
  .m365p { padding: 14px 16px 40px; gap: 20px; }
  .m365p-hero { border-radius: 22px; padding: 32px 22px; }
  .m365p-hero__title { font-size: 40px; }
  .m365p-hero__lead { font-size: 16px; }
  .m365p-hero__side { justify-self: stretch; align-items: center; }
  .m365p-btn { width: 100%; height: 52px; padding: 0 22px; }
  .m365p-aud { padding-top: 24px; }
  .m365p-aud__grid { grid-template-columns: 1fr; }
  .m365p-card { flex-direction: row; align-items: center; padding: 18px; gap: 14px; }
  .m365p-card__text { font-size: 15px; }
  .m365p-free { min-height: 0; padding: 28px 22px; border-radius: 20px; }
  .m365p-free__big { font-size: 40px; }
  .m365p-panel { padding: 24px 20px; border-radius: 20px; }
  .m365p-panel__lead { font-size: 20px; }
  .m365p-h2 { font-size: 26px; }
  .m365p-h2--lg { font-size: 28px; }
  .m365p-way { font-size: 15px; padding: 14px 16px; }
  .m365p-formbox { padding: 22px 18px; border-radius: 20px; }
  .m365p-row { grid-template-columns: 1fr; }
  .m365p-form__title { font-size: 22px; }
  .m365p-success { min-height: 360px; }
}
