/* Посадочные страницы: направления, филиалы, преподаватели.
   Подключается только на них (templates/sites/landing/_base.html). Блоки «Цены»,
   «Запись», «Расписание», «Контакты» — свои css из static/site/blocks/. */

.lp-head { padding: 28px 0 56px; }
.lp-head h1 { font-size: clamp(28px, 4.6vw, 48px); margin: 0 0 14px; }
.lp-lead { color: var(--s-muted); font-size: 17px; max-width: 680px; margin: 0 0 14px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* хлебные крошки */
.lp-crumbs { margin-bottom: 22px; font-size: 13.5px; color: var(--s-muted); }
.lp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.lp-crumbs li { display: inline-flex; align-items: center; }
.lp-crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.lp-crumbs a { color: inherit; text-decoration: none; display: inline-block; padding: 10px 0; }
.lp-crumbs a:hover { color: var(--s-accent); }
.lp-crumbs [aria-current] { color: var(--s-text); }

/* первый экран: текст и фото рядом, на телефоне — друг под другом */
.lp-intro.with-photo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.lp-intro.lp-teacher.with-photo { grid-template-columns: minmax(220px, 0.8fr) 1.4fr; align-items: start; }
.lp-intro-img img, .lp-intro-img .ph {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block;
}
.lp-teacher .lp-intro-img img { aspect-ratio: 4 / 5; }

/* подробный текст направления */
.lp-text p { font-size: 16.5px; line-height: 1.7; margin: 0 0 16px; }
.lp-text p:last-child { margin-bottom: 0; }

/* расписание по филиалам */
.lp-branch-title { font-size: 18px; margin: 26px 0 12px; }
.lp-branch-title:first-of-type { margin-top: 6px; }
.blk-schedule .note { margin-top: 14px; }

/* направления-«чипсы» (филиал, преподаватель) */
.lp-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips a, .lp-chips span {
  display: inline-block; padding: 7px 14px; border-radius: var(--radius-btn);
  border: 1px solid var(--s-line); background: var(--s-surface); color: var(--s-text);
  text-decoration: none; font-size: 14px;
}
.lp-chips a:hover { border-color: var(--s-accent); color: var(--s-accent); }

/* преподаватели на странице направления и филиала */
.lp-people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.lp-person {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; padding: 16px;
  border: 1px solid var(--s-line); border-radius: var(--radius); background: var(--s-surface);
}
.lp-person picture { display: contents; }
.lp-person > img, .lp-person > picture > img, .lp-person-ph {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block;
}
.lp-person-ph { display: flex; align-items: center; justify-content: center; font-size: 30px;
  font-family: var(--font-head); color: var(--s-accent); }
.lp-person h3 { font-size: 17px; margin: 4px 0 6px; }
.lp-person p { font-size: 14px; color: var(--s-muted); margin: 0; }

/* карточка филиала: адрес и карта рядом даже при нескольких филиалах */
.lp-branch { margin-top: 8px; grid-template-columns: 1fr; }
body.multi .lp-branch .studio { grid-template-columns: 1fr 1.2fr; }
body.multi .lp-branch .studio .map { border-top: none; border-left: 1px solid var(--s-line); min-height: 300px; }

/* список филиалов */
.lp-branches { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lp-branches .card { padding: 26px; }
.lp-card-title { font-size: 21px; margin: 0 0 4px; }

@media (max-width: 900px) {
  .lp-intro.with-photo, .lp-intro.lp-teacher.with-photo { grid-template-columns: 1fr; gap: 22px; }
  .lp-intro.with-photo .lp-intro-img { order: -1; }
  body.multi .lp-branch .studio { grid-template-columns: 1fr; }
  body.multi .lp-branch .studio .map { border-left: none; border-top: 1px solid var(--s-line); min-height: 220px; }
}
@media (max-width: 560px) {
  .lp-head { padding: 18px 0 40px; }
  .lp-lead { font-size: 15.5px; }
  .lp-person { grid-template-columns: 64px 1fr; }
  .lp-person > img, .lp-person > picture > img, .lp-person-ph { width: 64px; height: 64px; }
  .lp-branches { grid-template-columns: 1fr; }
}
