/* ==================================================================
   Витрина школы v3 — 1:1 по макету «StudyRoom Landing · Desktop»
   (Figma N670yxnW1fN2sFStuTSugs, node 31:3).

   Токены, размеры, отступы и цвета взяты из макета как есть. Своей
   палитры файл не заводит и со стилями 2.0 не пересекается: всё
   внутри .sl.
================================================================== */

.sl {
	--ec-canvas:     #f2f1ec;
	--ec-surface:    #ffffff;
	--ec-ink:        #132c2e;
	--ec-ink-2:      #3c5153;
	--ec-muted:      #6b7d7e;
	--ec-line:       #dfe3dd;
	--ec-line-soft:  #ebeee9;
	--ec-teal:       #147d76;
	--ec-teal-soft:  #e3f0ee;
	--ec-teal-tile:  #e3f2f0;
	--ec-coral:      #f05a3c;
	--ec-coral-soft: #fde8e3;

	--ec-r:      10px;
	--ec-r-sm:   8px;
	--ec-r-card: 14px;
	--ec-r-pill: 999px;

	margin: 0;
	background: #f7f2e9;
	color: var(--ec-ink);
	font-family: 'Onest', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 24px;
	-webkit-font-smoothing: antialiased;
}

.sl *, .sl *::before, .sl *::after { box-sizing: border-box; }
.sl img { display: block; max-width: 100%; }
.sl a { color: inherit; text-decoration: none; }
.sl p { margin: 0; }
.sl button { font: inherit; }

/* ── типографика макета ───────────────────────────────────────── */

.sl-display { margin: 0; font-weight: 700; font-size: 64px; line-height: 68px; letter-spacing: -1.2px; }
.sl-h2      { margin: 0; font-weight: 700; font-size: 40px; line-height: 48px; letter-spacing: -.6px; }
.sl-h-card  { margin: 0; font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -.1px; }
.sl-body-lg { margin: 0; font-weight: 400; font-size: 18px; line-height: 28px; }
.sl-body    { margin: 0; font-weight: 400; font-size: 16px; line-height: 24px; }
.sl-label   { margin: 0; font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: .2px; }

.sl-label--teal  { color: var(--ec-teal); }
.sl-label--coral { color: var(--ec-coral); }
.sl-label--muted { color: var(--ec-muted); }
.sl-muted { color: var(--ec-muted); }
.sl-teal  { color: var(--ec-teal); }
.sl-center { text-align: center; margin-left: auto; margin-right: auto; }
.sl-w760 { width: 760px; max-width: 100%; }
.sl-w820 { width: 820px; max-width: 100%; }
.sl-w900 { width: 900px; max-width: 100%; }

.sl-link { font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: .2px; color: var(--ec-coral); }
a.sl-link:hover { text-decoration: underline; }

.sl-card { background: var(--ec-surface); border: 1px solid var(--ec-line-soft); border-radius: var(--ec-r); }
.is-hidden { display: none !important; }

/* ── кнопки ───────────────────────────────────────────────────── */

.sl-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 56px; padding: 0 24px; border-radius: var(--ec-r-pill);
	font-weight: 500; font-size: 16px; line-height: 22px; text-align: center;
	white-space: nowrap;
}
.sl-btn--coral { background: var(--ec-coral); color: var(--ec-surface); width: 240px; }
.sl-btn--ghost { background: var(--ec-surface); color: var(--ec-ink); border: 1px solid var(--ec-line); width: 240px; }
.sl-btn--w220  { width: 220px; }
.sl-btn--wide  { width: 100%; }
.sl-btn--coral:hover { background: #dd4c30; }
.sl-btn--ghost:hover { background: var(--ec-canvas); }

/* ── 01 Header ────────────────────────────────────────────────── */

.sl-header { background: var(--ec-canvas); }
.sl-header-in {
	display: flex; align-items: center; justify-content: space-between;
	height: 88px; padding: 18px 120px;
}
.sl-brand { display: flex; align-items: center; gap: 10px; }
.sl-brand-name { font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -.1px; }
/* Логотип школы вместо названия: высота строки шапки, ширина по картинке */
.sl-brand-logo { max-height: 40px; width: auto; }
.sl-badge {
	padding: 6px 10px; border-radius: var(--ec-r-pill);
	background: var(--ec-teal-soft); color: var(--ec-teal);
	font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: .2px; white-space: nowrap;
}
.sl-nav { display: flex; align-items: center; gap: 32px; font-size: 16px; line-height: 24px; white-space: nowrap; }
.sl-nav a:hover { color: var(--ec-teal); }
.sl-header-actions { display: flex; align-items: center; gap: 14px; }
.sl-login {
	display: inline-flex; align-items: center; justify-content: center;
	width: 92px; height: 44px; color: var(--ec-coral);
	font-weight: 600; font-size: 14px; line-height: 20px; letter-spacing: .2px; white-space: pre;
}
/* Кнопка меню 44×44 — из мобильного фрейма макета, на десктопе скрыта */
.sl-menu { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.sl-menu span, .sl-menu span::before, .sl-menu span::after {
	display: block; width: 18px; height: 2px; background: var(--ec-ink); border-radius: 2px; content: '';
}
.sl-menu span { margin: 0 auto; position: relative; }
.sl-menu span::before { position: absolute; top: -6px; }
.sl-menu span::after  { position: absolute; top: 6px; }
.sl-mobile-nav { display: none; }

/* ── 02 Hero ──────────────────────────────────────────────────── */

.sl-hero { background: var(--ec-canvas); }
.sl-hero-in {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 760px; padding: 64px 120px 72px;
}
.sl-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; width: 526px; }
.sl-hero-copy .sl-body { color: var(--ec-muted); }
.sl-hero-copy .sl-body-lg { color: var(--ec-muted); }
.sl-actions { display: flex; gap: 12px; height: 56px; width: 492px; }

.sl-hero-visual { position: relative; width: 610px; height: 610px; flex: none; }
.sl-hero-photo { position: absolute; left: 20px; top: 20px; width: 570px; height: 570px; object-fit: cover; border-radius: var(--ec-r); }
.sl-proof {
	position: absolute; display: flex; flex-direction: column; gap: 4px;
	padding: 14px 16px; background: var(--ec-surface);
	border: 1px solid var(--ec-line-soft); border-radius: var(--ec-r);
}
.sl-proof--words    { left: 0;     top: 420px; width: 220px; height: 82px; }
.sl-proof--grammar  { left: 370px; top: 0;     width: 210px; height: 82px; }
.sl-proof--homework { left: 390px; top: 520px; width: 200px; height: 90px; background: var(--ec-teal-soft); }

/* ── 03 Audiences ─────────────────────────────────────────────── */

.sl-audiences { position: relative; background: var(--ec-surface); overflow: hidden; }
.sl-audiences-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.sl-audiences-in {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 42px;
	min-height: 650px; padding: 84px 120px;
}
.sl-audience-cards { display: flex; gap: 24px; justify-content: center; width: 1200px; max-width: 100%; }
.sl-audience-card { display: flex; flex-direction: column; gap: 14px; width: 360px; min-height: 232px; padding: 28px; }

/* ── 04 Visible Progress ──────────────────────────────────────── */

.sl-progress { background: var(--ec-coral-soft); }
.sl-progress-in {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 720px; padding: 90px 120px;
}
.sl-progress-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 440px; }
.sl-note { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 18px; background: var(--ec-surface); border-radius: var(--ec-r); }

/* Карточка отчёта: в макете абсолютные координаты, здесь поток с теми же
   отступами (17/14/16/12/14) — на узком экране абсолютная раскладка
   разъезжается, а размеры на 1440 остаются макетными */
.sl-report {
	display: flex; flex-direction: column;
	width: 584px; height: 460px; flex: none; padding: 17px 23px 16px;
	background: var(--ec-surface); border: 1px solid var(--ec-line-soft); border-radius: var(--ec-r);
	overflow: hidden;
}
.sl-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; height: 56px; }
.sl-report-sub  { margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--ec-muted); }
.sl-report-status {
	flex: none; width: 104px; height: 32px; margin-top: 4px;
	display: flex; align-items: center; justify-content: center;
	background: var(--ec-teal-tile); border-radius: var(--ec-r-pill);
	font-weight: 600; font-size: 12px; color: var(--ec-teal);
}
.sl-report-primary { margin-top: 14px; height: 96px; padding: 14px 18px; background: var(--ec-teal-tile); border-radius: 12px; }
.sl-report-primary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 8px; }
.sl-report-cap   { font-weight: 600; font-size: 12px; line-height: 1.35; color: var(--ec-teal); }
.sl-report-value { font-weight: 700; font-size: 24px; line-height: 1.35; }
.sl-report-aside { font-size: 14px; line-height: 1.35; color: var(--ec-muted); text-align: right; }

.sl-report-row {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 12px; height: 64px; padding: 8px 15px;
	background: var(--ec-surface); border: 1px solid var(--ec-line-soft); border-radius: var(--ec-r);
}
.sl-report-row:first-of-type { margin-top: 0; }
.sl-report-primary + .sl-report-row { margin-top: 16px; }
.sl-report-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.sl-report-note  { margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--ec-muted); }
.sl-report-flag  { flex: none; font-weight: 600; font-size: 12px; line-height: 1.35; color: var(--ec-teal); text-align: right; }
.sl-report-foot  { margin-top: 14px; text-align: center; font-size: 12px; line-height: 1.35; color: var(--ec-muted); }

/* ── 05 After Lesson ──────────────────────────────────────────── */

.sl-after { background: var(--ec-ink); }
.sl-after-in { display: flex; align-items: flex-start; justify-content: space-between; min-height: 590px; padding: 86px 120px 96px; }
.sl-after-copy { display: flex; flex-direction: column; width: 440px; }
.sl-after-copy .sl-label--teal { color: #147d76; }
.sl-after-h2 { margin-top: 20px; color: #ffffff; line-height: 56px; }
.sl-after-lead { margin-top: 24px; width: 420px; font-size: 17px; line-height: 24px; color: #ccdbd9; }
.sl-after-foot { margin-top: 36px; font-weight: 600; font-size: 12px; line-height: 1.35; color: var(--ec-teal); }

.sl-after-cards { display: flex; flex-direction: column; gap: 18px; width: 700px; }
.sl-after-card { position: relative; height: 124px; padding: 22px 28px; background: var(--ec-surface); border-radius: var(--ec-r-card); overflow: hidden; }
.sl-after-accent { position: absolute; left: 0; top: 16px; width: 6px; height: 92px; background: var(--ec-coral); border-radius: 3px; }
.sl-after-title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.sl-after-text { margin-top: 12px; font-size: 15px; line-height: 1.35; color: var(--ec-muted); }

/* ── 06 Directions and Prices ─────────────────────────────────── */

.sl-directions { background: var(--ec-canvas); }
.sl-directions-in { display: flex; flex-direction: column; align-items: center; gap: 30px; min-height: 760px; padding: 76px 120px; }

.sl-filters { display: flex; gap: 8px; height: 44px; }
.sl-chip {
	height: 44px; padding: 12px 16px; border-radius: var(--ec-r-pill);
	background: var(--ec-surface); border: 1px solid var(--ec-line-soft); color: var(--ec-ink);
	font-weight: 600; font-size: 14px; line-height: 20px; letter-spacing: .2px; cursor: pointer;
}
.sl-chip.is-on { background: var(--ec-ink); border-color: var(--ec-ink); color: var(--ec-surface); }

.sl-direction-cards { display: flex; gap: 24px; justify-content: center; width: 1200px; max-width: 100%; }
.sl-direction { display: flex; flex-direction: column; width: 360px; min-height: 330px; overflow: hidden; }
.sl-direction-visual {
	display: flex; flex-direction: column; justify-content: space-between;
	height: 112px; padding: 20px 24px; background: var(--ec-teal-soft);
}
.sl-direction-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; }
.sl-direction .sl-label:not(.sl-label--teal) { color: var(--ec-ink); }
.sl-direction .sl-link { margin-top: auto; }

/* ── 07 Teachers ──────────────────────────────────────────────── */

.sl-teachers { background: var(--ec-surface); }
.sl-teachers-in { display: flex; flex-direction: column; align-items: center; gap: 28px; min-height: 820px; padding: 76px 120px; }
.sl-teacher-cards { display: flex; gap: 24px; justify-content: center; width: 1200px; max-width: 100%; }
.sl-teacher { display: flex; flex-direction: column; width: 280px; min-height: 420px; overflow: hidden; }
.sl-teacher-photo { display: block; height: 236px; overflow: hidden; }
.sl-teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.sl-teacher-photo--animal { background: var(--ec-coral-soft); }
.sl-teacher-photo--animal img { object-fit: contain; }
.sl-teacher-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.sl-teacher-body .sl-link { margin-top: auto; }

/* ── 08 Student Cabinet ───────────────────────────────────────── */

.sl-cabinet { background: var(--ec-coral-soft); }
.sl-cabinet-in { display: flex; align-items: center; justify-content: space-between; min-height: 760px; padding: 82px 120px; }
.sl-cabinet-copy { display: flex; flex-direction: column; gap: 20px; width: 410px; }
.sl-benefits { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 24px; }

.sl-cabinet-ui {
	display: flex; flex-direction: column; gap: 18px;
	width: 690px; min-height: 520px; padding: 24px; flex: none;
	background: var(--ec-surface); border: 1px solid var(--ec-line-soft); border-radius: var(--ec-r);
}
.sl-cab-head { display: flex; align-items: center; justify-content: space-between; }
.sl-cab-next { display: flex; align-items: center; justify-content: space-between; padding: 18px; background: var(--ec-ink); border-radius: var(--ec-r); }
.sl-cab-next-cap { color: var(--ec-teal-soft); }
.sl-cab-next-value { margin-top: 4px; color: var(--ec-surface); }
.sl-cab-join {
	display: inline-flex; align-items: center; justify-content: center;
	width: 132px; height: 44px; background: var(--ec-coral); color: var(--ec-surface);
	border-radius: var(--ec-r-pill); font-weight: 600; font-size: 14px; line-height: 20px; letter-spacing: .2px;
}
.sl-cab-tiles { display: flex; gap: 14px; }
.sl-cab-tile { display: flex; flex-direction: column; gap: 8px; width: 204px; height: 154px; padding: 18px 16px; background: var(--ec-canvas); border-radius: var(--ec-r); }
.sl-cab-materials { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--ec-teal-soft); border-radius: var(--ec-r); }

/* ── 09 About School ──────────────────────────────────────────── */

.sl-about { background: var(--ec-surface); }
.sl-about-in { display: flex; align-items: center; justify-content: space-between; min-height: 560px; padding: 70px 120px; }
.sl-about-photo { width: 520px; height: 400px; object-fit: cover; border-radius: var(--ec-r); flex: none; }
.sl-about-copy { display: flex; flex-direction: column; gap: 18px; width: 560px; }
.sl-facts { display: flex; gap: 12px; }
.sl-fact { padding: 10px 12px; background: var(--ec-canvas); border-radius: var(--ec-r-pill); font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: .2px; white-space: nowrap; }

/* ── 10 Final CTA and Form ────────────────────────────────────── */

.sl-final { position: relative; background: var(--ec-ink); overflow: hidden; }
.sl-final-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.sl-final-veil { position: absolute; inset: 0; background: rgba(19, 44, 46, .68); }
.sl-final-in { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 680px; padding: 76px 120px; }
.sl-final-copy { display: flex; flex-direction: column; gap: 20px; width: 470px; }
.sl-final-eyebrow  { color: var(--ec-teal-soft); }
.sl-final-h2       { color: var(--ec-surface); }
.sl-final-lead     { color: var(--ec-teal-soft); }
.sl-final-contacts { color: var(--ec-surface); }

.sl-form {
	display: flex; flex-direction: column; gap: 18px; width: 590px; padding: 28px; flex: none;
	background: var(--ec-surface); border-radius: var(--ec-r);
}
.sl-form-title { margin: 0; }
.sl-form-row { display: flex; gap: 14px; }
.sl-field { display: flex; flex-direction: column; gap: 6px; width: 260px; }
.sl-field--wide { width: 100%; }
.sl-field-label { font-weight: 600; font-size: 13px; line-height: 18px; color: var(--ec-muted); }
.sl-control {
	display: flex; align-items: center; justify-content: space-between;
	height: 40px; padding: 0 12px; width: 260px;
	background: var(--ec-surface); border: 1px solid var(--ec-line); border-radius: var(--ec-r-sm);
	font-size: 14px; color: var(--ec-ink-2);
}
.sl-form-consent { min-height: 54px; height: auto; }

/* Живые поля формы вместо плейсхолдеров макета: рамка и высота остаются
   макетными, ввод — обычный */
.sl-control input, .sl-control select {
	width: 100%; height: 38px; padding: 0; border: 0; background: none;
	font: inherit; font-size: 14px; color: var(--ec-ink); outline: none;
}
.sl-control select { appearance: none; cursor: pointer; }
.sl-control input::placeholder { color: var(--ec-ink-2); }
.sl-control:focus-within { border-color: var(--ec-teal); }
.sl-control--select img { flex: none; }

/* Сообщение после отправки заявки */
.sl-form-msg { padding: 12px 14px; border-radius: var(--ec-r-sm); font-size: 14px; line-height: 20px; }
.sl-form-msg--ok  { background: var(--ec-teal-tile); color: var(--ec-teal); }
.sl-form-msg--err { background: var(--ec-coral-soft); color: #b23a22; }

/* Ловушка для ботов: не видна человеку и не читается скринридером */
.sl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sl-inline-link { color: var(--ec-coral); text-decoration: underline; }
.sl-inline-link:hover { color: var(--ec-ink); }

/* Кнопка «смотреть всех» — тем же стилем, что ссылка макета */
.sl-more { background: none; border: 0; padding: 0; cursor: pointer; }

/* Картинка направления из справочника курсов: подложка под подписи */
.sl-direction-visual { background-size: cover; background-position: center; position: relative; }
.sl-direction-visual::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(227, 240, 238, .92), rgba(227, 240, 238, .78));
}
.sl-direction-visual > * { position: relative; }

/* ── 11 FAQ and Footer ────────────────────────────────────────── */

.sl-faq { background: var(--ec-canvas); }
.sl-faq-in { display: flex; flex-direction: column; gap: 42px; min-height: 720px; padding: 72px 120px 34px; }
.sl-faq-content { display: flex; align-items: flex-start; justify-content: space-between; width: 1200px; max-width: 100%; }
.sl-faq-copy { display: flex; flex-direction: column; gap: 18px; width: 350px; }
.sl-faq-list { display: flex; flex-direction: column; gap: 10px; width: 760px; }

.sl-faq-row { background: var(--ec-surface); border: 1px solid var(--ec-line-soft); border-radius: var(--ec-r); }
.sl-faq-q {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	width: 100%; padding: 20px 22px; background: none; border: 0; text-align: left; cursor: pointer;
	font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -.1px; color: var(--ec-ink);
}
.sl-faq-sign { color: var(--ec-coral); width: 12px; text-align: center; }
.sl-faq-a { display: none; padding: 0 22px 20px; }
.sl-faq-row.is-open .sl-faq-a { display: block; }
.sl-faq-q:focus-visible { outline: 2px solid var(--ec-coral); outline-offset: -2px; }

.sl-footer {
	display: flex; align-items: center; justify-content: space-between;
	width: 1200px; max-width: 100%; height: 52px; padding-top: 24px;
	border-top: 1px solid var(--ec-line-soft);
}
.sl-footer-nav { display: flex; gap: 24px; font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: .2px; color: var(--ec-muted); }
.sl-footer-nav a:hover { color: var(--ec-ink); }

/* ==================================================================
   Публичные страницы: профиль преподавателя, витрина, направление

   Отдельного макета у них нет — берём язык витрины школы: те же токены,
   шапка, подвал, карточки и кнопки. Ничего нового не изобретаем, чтобы
   переход с витрины на анкету не выглядел переходом на другой сайт.
================================================================== */

.sl-display--sm { font-size: 48px; line-height: 54px; letter-spacing: -.8px; }

/* Сетка карточек: на витрине школы карточки стоят рядом фиксированной
   тройкой, здесь их сколько угодно — поэтому сетка, а не ряд */
.sl-grid {
	display: grid; gap: 24px; width: 1200px; max-width: 100%;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.sl-grid .sl-teacher { width: auto; min-height: 0; }

/* ── профиль преподавателя ────────────────────────────────────── */

.sl-teacher-page { background: var(--ec-canvas); }
.sl-teacher-page-in {
	display: flex; align-items: center; gap: 64px;
	padding: 64px 120px 72px;
}
.sl-profile-visual { flex: none; width: 360px; }
.sl-profile-photo { display: block; width: 360px; height: 360px; overflow: hidden; border-radius: var(--ec-r); background: var(--ec-surface); }
.sl-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.sl-profile-photo--animal { background: var(--ec-coral-soft); }
.sl-profile-photo--animal img { object-fit: contain; padding: 36px; }

.sl-profile-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 620px; max-width: 100%; }
.sl-profile-copy .sl-actions { width: 100%; max-width: 492px; }
.sl-profile-price { margin: 0; font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: -.3px; }
.sl-profile-price .sl-muted { font-weight: 400; font-size: 16px; line-height: 24px; }

.sl-profile-about { background: var(--ec-surface); }
.sl-profile-about-in { display: flex; flex-direction: column; gap: 18px; padding: 64px 120px; }

.sl-profile-prices { background: var(--ec-canvas); }
.sl-profile-prices-in { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 72px 120px; }

.sl-price-list { display: flex; flex-direction: column; gap: 10px; width: 900px; max-width: 100%; margin: 0; padding: 0; list-style: none; }
.sl-price-row {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 18px 22px; background: var(--ec-surface);
	border: 1px solid var(--ec-line-soft); border-radius: var(--ec-r);
}
.sl-price-main  { display: flex; flex-direction: column; gap: 6px; }
.sl-price-value { flex: none; font-weight: 700; font-size: 20px; line-height: 26px; white-space: nowrap; }

.sl-steps-block { background: var(--ec-surface); }
.sl-steps-in { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 72px 120px; }
.sl-steps { display: flex; gap: 24px; width: 1200px; max-width: 100%; margin: 0; padding: 0; list-style: none; }
.sl-step { display: flex; flex-direction: column; gap: 12px; flex: 1 1 0; padding: 24px; }

/* Финальный экран без фотографии: та же тёмная плашка, но копия по центру */
.sl-final--plain .sl-final-in { min-height: 0; padding-top: 64px; padding-bottom: 64px; justify-content: center; }
.sl-final--plain .sl-final-copy { align-items: center; text-align: center; width: 760px; max-width: 100%; }
.sl-final--plain .sl-actions { justify-content: center; width: auto; }

/* ── витрина преподавателей и карточка направления ────────────── */

.sl-search { background: var(--ec-canvas); }
.sl-search-in { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 72px 120px; }
.sl-search-in .sl-filters { flex-wrap: wrap; height: auto; justify-content: center; }

/* Чип-ссылка: те же размеры, что у кнопки-чипа на витрине школы */
a.sl-chip { display: inline-flex; align-items: center; }
a.sl-chip:hover { border-color: var(--ec-line); }
a.sl-chip.is-on:hover { border-color: var(--ec-ink); }

.sl-category { background: var(--ec-canvas); }
.sl-category-in { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 56px 120px 64px; }
.sl-category-list { background: var(--ec-surface); }
.sl-category-list-in { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 72px 120px; }

/* ── подвал публичных страниц ─────────────────────────────────── */

.sl-page-footer { background: var(--ec-canvas); }
.sl-page-footer-in { display: flex; justify-content: center; padding: 0 120px 34px; }

/* ==================================================================
   Промежуточная ширина: 1440 макета ужимаем до контейнера
================================================================== */

@media (max-width: 1439px) {
	.sl-header-in, .sl-hero-in, .sl-audiences-in, .sl-progress-in, .sl-after-in,
	.sl-directions-in, .sl-teachers-in, .sl-cabinet-in, .sl-about-in,
	.sl-final-in, .sl-faq-in,
	.sl-teacher-page-in, .sl-profile-about-in, .sl-profile-prices-in, .sl-steps-in,
	.sl-search-in, .sl-category-in, .sl-category-list-in, .sl-page-footer-in { padding-left: 40px; padding-right: 40px; }

	.sl-audience-cards, .sl-direction-cards, .sl-teacher-cards,
	.sl-faq-content, .sl-footer, .sl-grid, .sl-steps { width: 100%; }

	.sl-teacher-page-in { gap: 40px; }
	.sl-profile-visual, .sl-profile-photo { width: 300px; }
	.sl-profile-photo { height: 300px; }

	.sl-hero-visual { width: 520px; height: 520px; }
	.sl-hero-photo { width: 480px; height: 480px; }
	.sl-proof--words    { top: 350px; }
	.sl-proof--grammar  { left: 300px; }
	.sl-proof--homework { left: 320px; top: 430px; }

	.sl-report, .sl-cabinet-ui, .sl-form { width: 100%; max-width: 584px; }
	.sl-cabinet-ui { max-width: 690px; }
	.sl-form { max-width: 590px; }
	.sl-after-cards { width: 56%; }
	.sl-faq-list { width: 62%; }
	.sl-audience-card { width: auto; flex: 1 1 0; }
	.sl-direction { width: auto; flex: 1 1 0; }
	.sl-teacher { width: auto; flex: 1 1 0; }
}

/* ==================================================================
   Мобильный фрейм макета (390): «StudyRoom Landing · Mobile», node 31:4
================================================================== */

@media (max-width: 900px) {
	.sl-header-in { height: 72px; padding: 14px 20px; }
	.sl-nav { display: none; }
	.sl-menu { display: block; }
	.sl-login { width: 64px; }
	.sl-mobile-nav[hidden] { display: none; }
	.sl-mobile-nav {
		display: flex; flex-direction: column; gap: 4px;
		padding: 8px 20px 18px; background: var(--ec-canvas);
		border-bottom: 1px solid var(--ec-line-soft);
	}
	.sl-mobile-nav a { display: flex; align-items: center; min-height: 44px; font-size: 16px; }
	.sl-menu.is-on span { background: var(--ec-coral); }

	.sl-hero-in, .sl-progress-in, .sl-after-in, .sl-cabinet-in, .sl-about-in, .sl-final-in {
		flex-direction: column; align-items: stretch; gap: 28px;
	}
	.sl-header-in, .sl-hero-in, .sl-audiences-in, .sl-progress-in, .sl-after-in,
	.sl-directions-in, .sl-teachers-in, .sl-cabinet-in, .sl-about-in,
	.sl-final-in, .sl-faq-in { padding-left: 20px; padding-right: 20px; }

	.sl-hero-in { min-height: 0; padding-top: 34px; padding-bottom: 40px; }
	.sl-hero-copy { width: 100%; gap: 18px; }
	.sl-display { font-size: 40px; line-height: 48px; letter-spacing: -.8px; }
	.sl-h2 { font-size: 32px; line-height: 40px; letter-spacing: -.4px; }
	.sl-body-lg { font-size: 16px; line-height: 24px; }

	.sl-actions { flex-direction: column; width: 100%; height: auto; gap: 12px; }
	.sl-btn, .sl-btn--coral, .sl-btn--ghost, .sl-btn--w220 { width: 100%; height: 52px; }

	.sl-hero-visual { width: 100%; height: 260px; }
	.sl-hero-photo { position: static; width: 100%; height: 260px; }
	.sl-proof { display: none; }

	.sl-audiences-in { min-height: 0; padding-top: 52px; padding-bottom: 52px; gap: 24px; }
	.sl-audience-cards { flex-direction: column; gap: 20px; }
	.sl-audience-card { width: 100%; min-height: 0; padding: 20px; }
	.sl-w760, .sl-w820, .sl-w900 { width: 100%; }

	.sl-progress-in { min-height: 0; padding-top: 52px; padding-bottom: 52px; }
	.sl-progress-copy { width: 100%; }
	.sl-report { width: 100%; max-width: none; height: auto; padding: 16px 14px; }
	.sl-report-head { height: auto; }
	.sl-report-primary { height: auto; }
	.sl-report-value { font-size: 20px; }
	.sl-report-aside { display: none; }
	.sl-report-row { height: auto; padding: 12px 14px; }

	.sl-after-in { min-height: 0; padding-top: 52px; padding-bottom: 52px; }
	.sl-after-copy, .sl-after-cards { width: 100%; }
	.sl-after-lead { width: 100%; }
	.sl-after-h2 { line-height: 40px; }

	.sl-directions-in, .sl-teachers-in { min-height: 0; padding-top: 52px; padding-bottom: 52px; gap: 22px; }
	.sl-filters { width: 100%; overflow-x: auto; }
	.sl-chip { white-space: nowrap; }
	.sl-direction-cards, .sl-teacher-cards { flex-direction: column; align-items: stretch; gap: 20px; }
	.sl-direction, .sl-teacher { width: 100%; }

	.sl-cabinet-in { min-height: 0; padding-top: 52px; padding-bottom: 52px; }
	.sl-cabinet-copy, .sl-cabinet-ui { width: 100%; }
	.sl-cabinet-ui { min-height: 0; padding: 18px; }
	.sl-cab-tiles { flex-direction: column; }
	.sl-cab-tile { width: 100%; height: auto; }
	.sl-cab-next { flex-direction: column; align-items: flex-start; gap: 14px; }
	.sl-cab-join { width: 100%; }

	.sl-about-in { min-height: 0; padding-top: 52px; padding-bottom: 52px; }
	.sl-about-photo { width: 100%; height: 270px; }
	.sl-about-copy { width: 100%; }
	.sl-facts { flex-wrap: wrap; }

	.sl-final-in { min-height: 0; padding-top: 52px; padding-bottom: 52px; }
	.sl-final-copy, .sl-form { width: 100%; max-width: none; }
	.sl-form { padding: 20px; }
	.sl-form-title { font-size: 28px; line-height: 34px; }
	.sl-form-row { flex-direction: column; gap: 14px; }
	.sl-field, .sl-control { width: 100%; }
	.sl-form-consent { height: auto; }

	.sl-faq-in { min-height: 0; padding-top: 52px; padding-bottom: 34px; gap: 28px; }
	.sl-faq-content { flex-direction: column; gap: 28px; }
	.sl-faq-copy, .sl-faq-list { width: 100%; }
	.sl-faq-q { font-size: 17px; line-height: 24px; padding: 18px; }
	.sl-faq-a { padding: 0 18px 18px; }

	.sl-footer { flex-direction: column; align-items: flex-start; gap: 14px; height: auto; padding-bottom: 20px; }
	.sl-footer-nav { flex-direction: column; gap: 10px; }

	/* публичные страницы */
	.sl-teacher-page-in, .sl-profile-about-in, .sl-profile-prices-in, .sl-steps-in,
	.sl-search-in, .sl-category-in, .sl-category-list-in, .sl-page-footer-in {
		padding-left: 20px; padding-right: 20px;
	}
	.sl-teacher-page-in, .sl-profile-about-in, .sl-profile-prices-in, .sl-steps-in,
	.sl-search-in, .sl-category-in, .sl-category-list-in {
		padding-top: 44px; padding-bottom: 44px;
	}

	.sl-teacher-page-in { flex-direction: column; align-items: stretch; gap: 24px; }
	.sl-profile-visual, .sl-profile-photo { width: 100%; }
	.sl-profile-photo { height: 300px; }
	.sl-profile-copy { width: 100%; }
	.sl-display--sm { font-size: 32px; line-height: 40px; letter-spacing: -.4px; }
	.sl-profile-price { font-size: 24px; line-height: 30px; }

	.sl-price-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; }
	.sl-steps { flex-direction: column; }
	.sl-grid { grid-template-columns: 1fr; }
	.sl-search-in .sl-filters { justify-content: flex-start; }
}
