/* Внутренние страницы v4. Тот же язык, что у главной: фото на всю ширину,
   плоскости цвета из ливреи, крупный Unbounded. Страницы собирает cms/build.mjs. */

.pg { background: var(--paper); color: var(--ink); }
.pg main { display: block; }

/* ── обложка страницы: фото + крупный заголовок ─────────────────────── */
.cv { position: relative; display: flex; align-items: flex-end; min-height: clamp(400px, 62vh, 600px); color: var(--white); background: var(--ink); overflow: hidden; }
.cv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv::before { content: ''; position: absolute; inset: 0 0 auto; height: 160px; z-index: 1; background: linear-gradient(180deg, rgba(14,22,33,.62), rgba(14,22,33,0)); }
.cv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,22,33,.9) 0%, rgba(14,22,33,.38) 55%, rgba(14,22,33,.12) 100%); }
.cv__in { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 56px; }
.cv__crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 14px; color: var(--on-dark-2); }
.cv__crumbs a { color: var(--on-dark); text-underline-offset: 3px; }
.cv__kick { display: inline-block; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; background: var(--org); color: var(--ink); font: 700 13px/1 var(--f-t); letter-spacing: .06em; text-transform: uppercase; }
.cv h1 { font-size: clamp(34px, 6.4vw, 84px); max-width: 15ch; line-height: 1; }
.cv--long h1 { font-size: clamp(30px, 5vw, 62px); max-width: 20ch; }
.cv__lead { max-width: 52ch; margin-top: 20px; color: var(--on-dark); font-size: clamp(17px, 1.6vw, 20px); }
.cv__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cv--plain { min-height: 0; background: var(--ink); }
.cv--plain::before, .cv--plain::after { display: none; }
.cv--plain .cv__in { padding-top: 132px; padding-bottom: 40px; }
.cv--plain h1 { max-width: 22ch; font-size: clamp(28px, 4.4vw, 54px); }

/* плоскость вместо фото: страницы акций */
.cv--plane { min-height: clamp(380px, 56vh, 520px); }
.cv--plane::after { display: none; }
.cv--plane .cv__big { position: absolute; right: var(--pad); bottom: 30px; z-index: 1; font: 800 clamp(80px, 17vw, 230px)/.9 var(--f-d); letter-spacing: -.04em; color: rgba(255,255,255,.2); white-space: nowrap; pointer-events: none; }
.cv--org { background: var(--org); color: var(--ink); }
.cv--org .cv__crumbs, .cv--org .cv__lead { color: var(--ink); }
.cv--org .cv__crumbs a { color: var(--ink); }
.cv--org .cv__kick { background: var(--ink); color: var(--white); }
.cv--org .cv__big { color: rgba(14,22,33,.14); }
.cv--navy { background: var(--navy); }
.cv--ink { background: var(--ink-2); }

/* ── блоки ──────────────────────────────────────────────────────────── */
.blk { padding: clamp(56px, 8vw, 104px) 0; }
.blk--white { background: var(--white); }
.blk--ink { background: var(--ink); color: var(--on-dark); clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%); margin-top: -1px; padding-top: clamp(88px, 10vw, 128px); }
.blk--ink h2 { color: var(--white); }
.blk--org { background: var(--org); color: var(--ink); clip-path: polygon(0 0, 100% 48px, 100% 100%, 0 100%); padding-bottom: clamp(72px, 9vw, 112px); }
.blk__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; }
.blk h2 { font-size: clamp(28px, 4.2vw, 52px); max-width: 18ch; }
.blk__sub { max-width: 52ch; color: var(--muted); font-size: 18px; }
.blk--ink .blk__sub { color: var(--on-dark-2); }
.blk--org .blk__sub { color: var(--ink); }

.prose { max-width: 66ch; }
.prose p { margin: 0 0 16px; font-size: 18px; line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }
.prose a, .link { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.blk--ink .prose a, .blk--ink .link { color: var(--org); }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split > * { min-width: 0; }
.split h2 { margin-bottom: 22px; font-size: clamp(26px, 3.2vw, 42px); overflow-wrap: break-word; }
.blk--s { padding: clamp(20px, 3vw, 36px) 0; }
.split__ph { margin: 0; border-radius: var(--r-ph); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.split__ph img { width: 100%; height: 100%; object-fit: cover; }
.split__ph--tall { aspect-ratio: 4 / 5; }

/* факты крупно */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0; }
.facts div { padding: 24px 24px 22px; border-radius: var(--r-ph); background: var(--white); border: 1px solid var(--line); }
.blk--white .facts div { background: var(--paper); }
.blk--ink .facts div { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.facts dt { font: 800 clamp(30px, 3.6vw, 46px)/1 var(--f-d); letter-spacing: -.02em; color: var(--org-deep); }
.blk--ink .facts dt { color: var(--org); }
.facts dd { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.blk--ink .facts dd { color: var(--on-dark-2); }

/* карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-ph); background: var(--white); border: 1px solid var(--line); }
.blk--white .card { background: var(--paper); }
.card > b { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; background: var(--org); color: var(--ink); font: 800 17px var(--f-d); }
.card h3 { font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.card--ph { padding: 0; overflow: hidden; }
.card--ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card--ph div { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px 26px; }
.card--ink { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.card--ink h3 { color: var(--white); }
.card--ink p { color: var(--on-dark-2); }
.blk--ink .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.blk--ink .card h3 { color: var(--white); }
.blk--ink .card p { color: var(--on-dark-2); }
.blk--org .card { background: rgba(255,255,255,.28); border-color: transparent; }
.blk--org .card p { color: var(--ink); }
.blk--org .card > b { background: var(--ink); color: var(--white); }

/* шаги и галочки */
.steps4 { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.steps4 li { counter-increment: s; position: relative; padding: 76px 26px 26px; border-radius: var(--r-ph); background: var(--white); border: 1px solid var(--line); }
.blk--white .steps4 li { background: var(--paper); }
.steps4 li::before { content: counter(s); position: absolute; left: 26px; top: 24px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--org); color: var(--ink); font: 800 17px var(--f-d); }
.steps4 h3 { margin-bottom: 8px; font-size: 19px; }
.steps4 p { margin: 0; color: var(--muted); font-size: 15.5px; }
.blk--ink .steps4 li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.blk--ink .steps4 h3 { color: var(--white); }
.blk--ink .steps4 p { color: var(--on-dark-2); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 4px 0 4px 40px; font-size: 18px; line-height: 1.5; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--org) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230e1621' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.checks b { font-weight: 600; }
.checks--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 40px; }

/* плашка-примечание */
.note { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 22px 26px; border-radius: var(--r-ph); background: var(--ink); color: var(--on-dark); font-size: 17px; line-height: 1.55; }
.note::before { content: '!'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--org); color: var(--ink); font: 800 16px var(--f-d); }
.note a { color: var(--org); }
.blk--ink .note { background: rgba(255,255,255,.1); }
.blk--org .note { background: var(--ink); }

/* таблицы */
.tbl { overflow-x: auto; border-radius: var(--r-ph); border: 1px solid var(--line); background: var(--white); }
.blk--white .tbl { background: var(--paper); }
.tbl table { width: 100%; border-collapse: collapse; min-width: 540px; }
.tbl th { padding: 14px 20px; text-align: left; background: var(--ink); color: var(--white); font: 600 14px var(--f-t); letter-spacing: .04em; text-transform: uppercase; }
.tbl td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:first-child td { border-top: 0; }
.tbl td:first-child { font-weight: 600; }

/* неделя: когда какой класс */
.week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.week > div { padding: 18px 16px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.week h3 { margin-bottom: 12px; font-size: 16px; letter-spacing: 0; color: var(--org-deep); text-transform: uppercase; }
.week p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.35; }
.week p b { display: block; font-size: 16px; }
.week .is-off { color: var(--muted); }

/* расписание экзаменов */
.cyc { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.cyc__c { padding: 30px; border-radius: var(--r-ph); background: var(--white); border: 1px solid var(--line); }
.cyc__c h3 { margin-bottom: 22px; font-size: 22px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { position: relative; padding: 0 0 26px 52px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ''; position: absolute; left: 14px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ''; position: absolute; left: 6px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--org); box-shadow: 0 0 0 5px rgba(255,106,19,.18); }
.tl .tl__d { display: block; font: 800 22px/1.15 var(--f-d); letter-spacing: -.01em; }
.tl .tl__w { display: block; margin: 4px 0 6px; font-weight: 600; color: var(--org-deep); }
.tl p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.tl li.is-past { opacity: .5; }
.tl li.is-past::after { background: var(--muted); box-shadow: none; }
.tl li.is-past .tl__w::after { content: ' · прошёл'; font-weight: 400; color: var(--muted); }

/* вопросы */
.qa { max-width: 860px; }
.qa details { border-bottom: 1px solid var(--line); }
.blk--white .qa details { border-color: var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 600; font-size: 19px; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font: 700 28px var(--f-d); color: var(--org-deep); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .qa__a { padding: 0 0 22px; color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 70ch; }
.qa .qa__a p { margin: 0 0 12px; }
.qa .qa__a ul { margin: 0 0 12px; padding-left: 22px; }
.qa .qa__a a { color: var(--navy); }
.qa-group { margin: 0 0 56px; }
.qa-group:last-child { margin-bottom: 0; }
.qa-group h2 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 34px); }

/* финальная плашка «записаться» */
.go { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.go__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 0; opacity: .5; }
.go::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,22,33,.92) 20%, rgba(14,22,33,.35)); }
.go__in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.go h2 { color: var(--white); font-size: clamp(28px, 4.4vw, 56px); max-width: 14ch; }
.go p { max-width: 42ch; margin-top: 16px; color: var(--on-dark); font-size: 18px; }
.go__act { display: flex; flex-direction: column; gap: 14px; min-width: 260px; }
.go__tel { text-align: center; font: 700 20px var(--f-d); color: var(--white); text-decoration: none; }

/* акции — купоны: слева условие, справа корешок с иконкой за линией отрыва.
   Фото из фотосессии здесь не к месту (14.10, клиент): картинка — графика.
   Вырезы на линии отрыва — круги цвета фона блока (--notch). */
.bns { --notch: var(--paper); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.blk--white .bns { --notch: var(--white); }
.bn { --pat: rgba(255,255,255,.07); --rim: rgba(255,255,255,.34); --disc: rgba(255,255,255,.1);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(128px, 32%, 230px); min-height: 300px; border-radius: var(--r-ph);
  color: var(--white); text-decoration: none; background: var(--ink); transition: transform .25s, box-shadow .25s; }
.bn:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(14,22,33,.22); }
.bn:active { transform: translateY(0); }
.bn--wide { grid-column: 1 / -1; min-height: 340px; grid-template-columns: minmax(0, 1fr) clamp(150px, 34%, 400px); }
.bn__tx { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px 28px 30px 34px; }
.bn__tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font: 700 12px/1 var(--f-t); letter-spacing: .08em; text-transform: uppercase; }
.bn__big { font: 800 clamp(34px, 4.2vw, 60px)/.95 var(--f-d); letter-spacing: -.03em; white-space: nowrap; }
.bn--wide .bn__big { font-size: clamp(48px, 7vw, 108px); }
.bn__name { margin-top: 10px; font: 700 clamp(17px, 1.6vw, 21px)/1.25 var(--f-t); max-width: 22ch; }
.bn__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.bn__go::after { content: '→'; transition: transform .2s; }
.bn:hover .bn__go::after { transform: translateX(5px); }
.bn__art { position: relative; display: grid; place-items: center; border-left: 2px dashed var(--rim); border-radius: 0 var(--r-ph) var(--r-ph) 0;
  background: repeating-linear-gradient(-45deg, var(--pat) 0 14px, transparent 14px 28px); }
.bn__art::before, .bn__art::after { content: ''; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--notch); }
.bn__art::before { top: -14px; }
.bn__art::after { bottom: -14px; }
.bn__art svg { width: clamp(84px, 9vw, 132px); height: auto; padding: clamp(18px, 2vw, 26px); border-radius: 50%; background: var(--disc);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.bn--wide .bn__art svg { width: clamp(110px, 12vw, 176px); }
.bn:hover .bn__art svg { transform: rotate(-8deg) scale(1.04); }
.bn--org { background: var(--org); color: var(--ink); --pat: rgba(14,22,33,.06); --rim: rgba(14,22,33,.3); --disc: rgba(255,255,255,.28); }
.bn--org .bn__tag { background: rgba(14,22,33,.12); }
.bn--navy { background: var(--navy); }
.bn--navy .bn__art { color: var(--org); }
.bn--sun { background: linear-gradient(135deg, #ff6a13, #ff9a3c); color: var(--ink); --pat: rgba(14,22,33,.06); --rim: rgba(14,22,33,.3); --disc: rgba(255,255,255,.28); }
.bn--sun .bn__tag { background: rgba(14,22,33,.12); }
.bn--ink { background: var(--ink-2); }
.bn--ink .bn__big, .bn--ink .bn__art { color: var(--org); }

/* страница акции: тот же купон крупно вместо фото */
.cpn { --notch: var(--paper); }
.blk--white .cpn { --notch: var(--white); }
.cpn .bn { min-height: 0; aspect-ratio: 4 / 3; grid-template-columns: minmax(0, 1fr) 38%; }
.cpn .bn:hover { transform: none; box-shadow: none; }
.cpn .bn__tx { justify-content: center; }
.cpn .bn__big { font-size: clamp(34px, 4.6vw, 72px); white-space: nowrap; }

/* подстраницы раздела: крупные ссылки-карточки */
.subs__h { margin-bottom: 18px; font-size: clamp(20px, 2.2vw, 26px); }
.subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.sub { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 64px 24px 26px; border-radius: var(--r-ph); background: var(--white);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.sub b { font: 700 clamp(18px, 1.7vw, 21px)/1.25 var(--f-t); }
.sub span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.sub::after { content: '→'; position: absolute; right: 24px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px;
  border-radius: 50%; background: var(--org); color: var(--ink); font-weight: 700; transition: transform .2s; }
.sub:hover { border-color: var(--org); }
.sub:hover::after { transform: translateX(4px); }
.sub:active { transform: scale(.99); }

/* мастера: все карточки сразу, сеткой */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px 16px; margin: 0; padding: 0; list-style: none; }
.mgrid .crew__card { flex: none; }
@media (max-width: 520px) { .mgrid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* отзывы о преподавателях */
.cards--q .card p { color: var(--ink); font-size: 18px; line-height: 1.55; }
.cards--q .card h3 { margin-top: auto; padding-top: 8px; font-size: 16px; color: var(--muted); }

/* цены: строки как в шторке главной */
.split--top { align-items: start; }
.prc { padding: 6px 24px; border-radius: var(--r-ph); background: var(--white); border: 1px solid var(--line); }
.prc .sheet__row:last-child { border-bottom: 0; }
/* #73: страница «Цены» по структуре старого сайта — плашка заявки, таблица, «за что платите», содержание курсов */
.pask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px 28px; border-radius: var(--r-ph); background: var(--org); color: var(--ink); }
.pask p { margin: 0; max-width: 46ch; font: 700 clamp(17px, 1.6vw, 20px)/1.35 var(--f-d); }
.pask .btn { background: var(--ink); color: var(--white); }
.ptab { border-radius: var(--r-ph); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.ptab__head, .ptab__row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 28px; }
.ptab__head { background: var(--ink); color: var(--white); font: 600 13px var(--f-t); letter-spacing: .06em; text-transform: uppercase; }
.ptab__grp { margin: 0; padding: 22px 28px 10px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--org-deep); }
.ptab__row { border-top: 1px solid var(--line); }
.ptab__grp + .ptab__row { border-top: 0; }
.ptab__row.is-main { background: #fff3ea; }
.ptab__cat a, .ptab__grp a { color: inherit; text-decoration: underline; text-decoration-color: var(--org); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ptab__cat a:hover, .ptab__grp a:hover { color: var(--org-deep); }
.ptab__cat b { display: block; font: 800 19px/1.2 var(--f-d); letter-spacing: -.01em; }
.ptab__cat span { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.ptab__sum b { display: block; font: 700 18px/1.25 var(--f-d); white-space: nowrap; }
.ptab__sum i { display: block; margin-top: 3px; font-style: normal; color: var(--muted); font-size: 14px; }
.ptab__sum small { font: 600 14px var(--f-t); color: var(--muted); }
.ptab__sum i + b { margin-top: 10px; }
.pfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 24px; padding: 24px 28px; border-radius: var(--r-ph); background: var(--ink); color: var(--on-dark); }
.pfoot__pay { margin: 0; max-width: 56ch; font-size: 17px; }
.pfoot__pay b { color: var(--org); }
.pnote { margin: 16px 4px 0; max-width: 90ch; color: var(--muted); font-size: 14.5px; }
.pcat { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pcat li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.pcat b { display: grid; place-items: center; min-height: 44px; border-radius: 12px; background: var(--ink); color: var(--white); font: 800 15px var(--f-d); white-space: nowrap; }
.pcat span { font-size: 16px; line-height: 1.45; }
@media (max-width: 720px) {
  .ptab__head { display: none; }
  .ptab__row { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 18px 20px; }
  .ptab__grp { padding: 20px 20px 8px; }
  .ptab__cat { grid-column: 1 / -1; }
  .ptab__sum::before { content: attr(data-h); display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
  .ptab__sum b { font-size: 16px; white-space: normal; }
  .pask, .pfoot { padding: 20px; }
  .pcat li { grid-template-columns: 72px minmax(0, 1fr); padding: 12px 14px; }
}

/* контакты и прочее */
.pg-legal { max-width: 78ch; }
.pg-legal h2 { margin: 36px 0 12px; font-size: clamp(22px, 2.6vw, 30px); }
.pg-legal p, .pg-legal li { line-height: 1.65; font-size: 17px; }
.pg-legal p { margin: 0 0 14px; }
.pg-legal ul, .pg-legal ol { margin: 0 0 16px; padding-left: 24px; }
.pg-legal a { color: var(--navy); overflow-wrap: anywhere; }

/* тест */
.quiz { max-width: 820px; margin: 0 auto; }
.quiz__start { text-align: center; }
.quiz__bar { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; font: 700 15px var(--f-d); color: var(--org-deep); }
.quiz__line { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quiz__line i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--org); transition: width .3s; }
/* .quiz перед классом: иначе .blk h2 (52px, 18ch) перебивает — вопрос выглядел заголовком страницы */
.quiz .quiz__q { max-width: none; font: 700 clamp(19px, 1.8vw, 23px)/1.4 var(--f-d); letter-spacing: 0; margin-bottom: 22px; }
.quiz__opts { display: grid; gap: 12px; }
.quiz__opt { display: block; width: 100%; padding: 20px 24px; border: 2px solid var(--line); border-radius: 20px; background: var(--white); color: var(--ink); font: 500 18px/1.4 var(--f-t); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.quiz__opt:hover { border-color: var(--org); }
.quiz__opt:active { transform: scale(.99); background: #fff3ea; }
.quiz__res { text-align: center; }
.quiz__res h2 { max-width: none; margin: 14px auto 16px; font-size: clamp(30px, 5vw, 60px); }
.quiz__res p { max-width: 54ch; margin: 0 auto 12px; font-size: 18px; }
.quiz__form { max-width: 460px; margin: 32px auto 0; padding: 28px; border-radius: var(--r-ph); background: var(--ink); color: var(--on-dark); text-align: left; }
.quiz__form h3 { margin-bottom: 8px; color: var(--white); }
.quiz__form p { margin: 0 0 18px; font-size: 15px; color: var(--on-dark-2); }
.quiz__form input[type=text], .quiz__form input[type=tel] { width: 100%; min-height: 52px; margin-bottom: 12px; padding: 0 16px; border: 2px solid transparent; border-radius: var(--r-ctl); background: var(--white); color: var(--ink); font: 500 17px var(--f-t); }
.quiz__form input:focus { border-color: var(--org); outline: 0; }
.quiz__form input[aria-invalid] { border-color: var(--err); }
.quiz__form label.consent { display: flex; gap: 10px; margin: 4px 0 16px; font-size: 13px; color: var(--on-dark-2); }
.quiz__form label.consent a { color: var(--org); }
.quiz__err { min-height: 20px; margin-bottom: 8px; color: #ff9a8f; font-size: 14px; }
.quiz__done { text-align: center; }
.quiz__done h3 { font-size: 26px; margin-bottom: 10px; }

@media (max-width: 1100px) {
  .week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
  .bns { grid-template-columns: minmax(0, 1fr); }
  .bn, .bn--wide, .cpn .bn { grid-template-columns: minmax(0, 1fr) 92px; min-height: 250px; }
  .bn__tx { padding: 26px 16px 24px 22px; }
  .bn__big, .bn--wide .bn__big, .cpn .bn__big { font-size: clamp(30px, 9vw, 40px); }
  .bn__art svg, .bn--wide .bn__art svg { width: 64px; padding: 14px; }
  .cv { min-height: 440px; }
  .cv__in { padding-top: 120px; padding-bottom: 40px; }
}
@media (max-width: 560px) {
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .go__act { width: 100%; }
  .blk--ink { clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); }
  .blk--org { clip-path: polygon(0 0, 100% 28px, 100% 100%, 0 100%); }
  .steps4 li { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .bn, .bn__go::after, .bn__art svg, .sub, .sub::after, .quiz__opt { transition: none; }
}
.quiz__res { scroll-margin-top: 110px; }
@media (max-width: 900px) {
  .cv--plane .cv__big { top: 100px; bottom: auto; font-size: clamp(64px, 22vw, 150px); }
}
.blk[id] { scroll-margin-top: 84px; }
/* контакты — тот же блок, что на главной, но первым на странице: место под шапку */
.pg main > .contacts:first-child { padding-top: clamp(120px, 12vw, 160px); }
.contacts h1 { margin-bottom: 40px; color: var(--white); font-size: clamp(34px, 5vw, 64px); }

/* Преподаватели теории: фото не прислали — инициалы в круге */
.tch { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tch__card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border-radius: 20px; background: var(--white); }
.tch__ava { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; background: var(--org); color: var(--ink); font: 800 24px/1 var(--f-d); letter-spacing: -.02em; }
.tch__card b { font-weight: 700; font-size: 18px; }
.tch__card > span:last-child { color: var(--muted); font-size: 14px; }
@media (max-width: 480px) {
  .tch__card { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; padding: 16px; }
  .tch__ava { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 19px; }
}
