/* bagetmoscow.ru (15.10.2026): страницы партнёрской программы (/partnerskaja-programma, /dizajneram, /fotografam …)
   и добавки к окну заявки партнёра (b360-partner.js).
   База окна — b360-photo.css (синий #3366cc, скругление 10px, Montserrat). */

/* ---------- окно заявки: добавки ---------- */
/* тема barbaratheme задаёт input[type=text] высоту 34px — выравниваем с полями телефона и почты */
.b360d input.b360p__input { height: 44px !important; min-height: 44px; padding: 0 12px !important; border-radius: 10px !important; font-size: 15px !important; line-height: normal; }
.b360d .b360d__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b360d .b360d__proof { margin: 4px 0 12px; padding: 14px 14px 4px; border: 1.5px solid #e3e8f2; border-radius: 12px; background: #fbfcff; min-width: 0; }
.b360d .b360d__proof legend { width: auto; margin: 0; padding: 0 6px; border: 0; font: 700 14px Montserrat, Arial, sans-serif; color: #000; }
.b360d .b360d__proof-hint { margin: 0 0 10px; font-size: 12.5px; line-height: 1.4; color: #777; }
.b360d .b360d__proof.is-error { border-color: #e57373; background: #fff8f8; }
.b360d .b360d__drop { margin-bottom: 8px; }
.b360d .b360d__or { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: .06em; }
.b360d .b360d__or::before, .b360d .b360d__or::after { content: ""; flex: 1; height: 1px; background: #e6e9ef; }
@media (max-width: 480px) { .b360d .b360d__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- страница /dizajneram ---------- */
.b360ds { font-family: Montserrat, Arial, Helvetica, sans-serif; color: #2a2f33; margin: 8px 0 40px; }
.b360ds *, .b360ds *::before, .b360ds *::after { box-sizing: border-box; }
.b360ds-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #3366cc; }
.b360ds-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: center; padding: 36px 40px; border-radius: 18px; background: linear-gradient(135deg, #f3f7ff 0%, #e8effd 100%); }
.b360ds-hero__text { max-width: 720px; }
.b360ds-hero__img img { display: block; width: 100%; height: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(31, 61, 122, .15); }
.b360ds-hero__lead { margin: 0 0 22px; font-size: 19px; line-height: 1.5; color: #2a2f33; }
.b360ds-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.b360ds-hero__note { margin: 14px 0 0; font-size: 13px; color: #6b7280; }
.b360ds .b360ds-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; min-height: 0; margin: 0; padding: 0 28px; border: 0; border-radius: 12px; background: #3366cc; color: #fff; font: 700 16px Montserrat, Arial, sans-serif; text-decoration: none; text-transform: none; box-shadow: none; cursor: pointer; }
.b360ds .b360ds-btn--ghost { background: #fff; color: #3366cc; border: 1.5px solid #c9d6f2; }
.b360ds .b360ds-btn--light { background: #fff; color: #3366cc; }
.b360ds-sec { margin: 44px 0 0; }
.b360ds-h2 { margin: 0 0 20px; font: 700 26px/1.25 Montserrat, Arial, sans-serif; color: #000; text-transform: none; }
.b360ds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.b360ds-card { padding: 22px 22px 20px; border: 1px solid #e6e9ef; border-radius: 16px; background: #fff; }
.b360ds-card svg { width: 36px; height: 36px; fill: none; stroke: #3366cc; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.b360ds-card h3 { margin: 12px 0 6px; font: 700 17px/1.3 Montserrat, Arial, sans-serif; color: #000; text-transform: none; }
.b360ds-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #555; }
.b360ds-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: b360s; }
.b360ds-steps li { position: relative; padding: 52px 18px 18px; border-radius: 16px; background: #f6f8fb; counter-increment: b360s; }
.b360ds-steps li::before { content: counter(b360s); position: absolute; top: 16px; left: 18px; width: 28px; height: 28px; border-radius: 50%; background: #3366cc; color: #fff; font: 700 14px/28px Montserrat, Arial, sans-serif; text-align: center; }
.b360ds-steps b { display: block; margin: 0 0 6px; font-size: 16px; color: #000; }
.b360ds-steps span { display: block; font-size: 14px; line-height: 1.45; color: #555; }
.b360ds-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.b360ds-tags a { display: inline-block; padding: 10px 16px; border: 1px solid #dfe5f0; border-radius: 999px; background: #fff; color: #2a2f33; font-size: 14.5px; text-decoration: none; }
.b360ds-final { margin: 48px 0 0; padding: 34px 40px; border-radius: 18px; background: #3366cc; color: #fff; text-align: center; }
.b360ds-final .b360ds-h2 { color: #fff; margin-bottom: 8px; }
.b360ds-final p { margin: 0 0 20px; font-size: 16px; color: #e6edfb; }
.b360ds-final a { color: #fff; text-decoration: underline; }
/* витрина программы /partnerskaja-programma */
.b360ds-hero--hub { grid-template-columns: 1fr; }
.b360ds-grid--4 { grid-template-columns: repeat(4, 1fr); }
.b360ds-dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.b360ds a.b360ds-dcard, .b360ds button.b360ds-dcard { display: flex; width: 100%; margin: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; flex-direction: column; overflow: hidden; border: 1px solid #e6e9ef; border-radius: 16px; background: #fff; color: #2a2f33; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.b360ds-dcard img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.b360ds-dcard__b { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.b360ds-dcard__b b { margin: 0 0 6px; font: 700 17px/1.3 Montserrat, Arial, sans-serif; color: #000; }
.b360ds-dcard__b span { flex: 1; font-size: 14.5px; line-height: 1.5; color: #555; }
.b360ds-dcard__b i { margin-top: 14px; font-style: normal; font-weight: 700; font-size: 14.5px; color: #3366cc; }
.b360ds .b360ds-dcard--other { background: #f3f7ff; border-style: dashed; border-color: #c9d6f2; }
.b360ds-dcard__ico { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #e8effd; }
.b360ds-dcard__ico svg { width: 56px; height: 56px; fill: none; stroke: #3366cc; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
/* «Другие направления» внизу страницы направления */
.b360ds-dirs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.b360ds a.b360ds-dir { display: block; overflow: hidden; border: 1px solid #e6e9ef; border-radius: 12px; background: #fff; color: #2a2f33; text-decoration: none; }
.b360ds-dir img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.b360ds-dir span { display: block; padding: 10px 12px 12px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.b360ds-all { margin: 16px 0 0; }
.b360ds-all a { color: #3366cc; font-weight: 700; text-decoration: none; }
@media (hover:hover) and (pointer:fine) {
  .b360ds .b360ds-btn:hover { background: #2b58b3; color: #fff; }
  .b360ds .b360ds-btn--ghost:hover, .b360ds .b360ds-btn--light:hover { background: #eef3fc; color: #2b58b3; }
  .b360ds-tags a:hover { border-color: #3366cc; color: #3366cc; }
  .b360ds a.b360ds-dcard:hover, .b360ds button.b360ds-dcard:hover { box-shadow: 0 12px 30px rgba(31, 61, 122, .14); transform: translateY(-2px); }
  .b360ds a.b360ds-dir:hover { border-color: #3366cc; color: #3366cc; }
}
@media (max-width: 1199px) { .b360ds-dirs { grid-template-columns: repeat(3, 1fr); } .b360ds-dgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px) { .b360ds-grid, .b360ds-grid--4, .b360ds-dgrid { grid-template-columns: repeat(2, 1fr); } .b360ds-steps { grid-template-columns: repeat(2, 1fr); } .b360ds-hero { grid-template-columns: 1fr; } .b360ds-hero__img { order: -1; } .b360ds-hero__img img { max-height: 220px; } }
@media (max-width: 600px) {
  .b360ds-hero { padding: 24px 18px; border-radius: 14px; }
  .b360ds-hero__lead { font-size: 16px; }
  .b360ds .b360ds-btn { width: 100%; }
  .b360ds-sec { margin-top: 32px; }
  .b360ds-h2 { font-size: 21px; }
  .b360ds-grid, .b360ds-grid--4, .b360ds-dgrid, .b360ds-steps { grid-template-columns: 1fr; gap: 12px; }
  .b360ds-dirs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .b360ds-final { padding: 26px 18px; border-radius: 14px; }
}
