/* mass.sewing — сайт обучения Марии (kurs/). Поверх site.css: тот же дизайн-код цеха,
   свои блоки — бирка курса, выноски на фото, лента уроков, квиз запуска бренда. */

.ink { color: var(--blue); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.k-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--blue); text-decoration: none; }
.k-link svg { width: 16px; height: 12px; transition: transform .25s var(--ease); }
.k-link:hover svg { transform: translateX(4px); }
.k-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.k-link--btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; }
.k-inline { color: var(--on-dark); text-underline-offset: 3px; }
.btn--glass-light { background: rgba(255,255,255,.72); color: var(--ink); box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.08), 0 6px 16px -10px rgba(28,30,33,.4); }
.btn--glass-light:hover { background: #fff; }
.btn[hidden] { display: none; }

/* ——— 1. Первый экран ——— */
.k-hero { justify-content: flex-end; }
.k-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.k-hero .hero__media::after { background: linear-gradient(180deg, rgba(12,13,16,.55) 0%, rgba(12,13,16,.22) 32%, rgba(12,13,16,.42) 60%, rgba(12,13,16,.84) 100%); }
.k-hero__body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px;
  padding-top: calc(var(--header-h) + clamp(64px, 12vh, 160px)); padding-bottom: clamp(36px, 6vh, 72px); }
.k-hero__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -.035em; text-wrap: balance;
  color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.3); max-width: 13ch; }
.k-hero__title em { font-style: normal; color: #c9d0ff; }
.k-hero .hero__sub { max-width: 36ch; }

/* стеклянная «бирка»: дырочка, строчка по краю */
.tag-card { position: relative; width: 300px; padding: 40px 26px 24px; border-radius: 22px 22px 26px 26px; color: #fff;
  background: rgba(20,21,24,.36); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gd-edge), var(--gd-drop); }
.tag-card::before { content: ''; position: absolute; inset: 8px; border-radius: 16px 16px 20px 20px; border: 1px dashed rgba(255,255,255,.32); pointer-events: none; }
.tag-card__hole { position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: rgba(0,0,0,.35);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.5), 0 0 0 3px rgba(255,255,255,.22); }
.tag-card__k { font-size: 13px; color: rgba(255,255,255,.72); }
.tag-card__name { margin-top: 4px; font-family: var(--font-head); font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.tag-card__spec { display: grid; margin-top: 14px; }
.tag-card__spec div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.tag-card__spec dt { color: rgba(255,255,255,.66); }
.tag-card__spec dd { margin: 0; text-align: right; }
.tag-card__price { margin-top: 10px; font-family: var(--font-head); font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: #fff; }

@media (max-width: 899px) {
  .k-hero__body { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 64px); padding-bottom: 16px; gap: 22px; }
  .k-hero__title { font-size: clamp(36px, 10.4vw, 52px); }
  .k-hero__media img { object-position: 62% 50%; }
  .k-hero .hero__cta { flex-wrap: wrap; }
  .k-hero .hero__cta .btn { flex: 1 1 100%; }
  .tag-card { width: 100%; padding: 34px 20px 18px; }
  .tag-card__spec { grid-template-columns: 1fr 1fr; column-gap: 16px; margin-top: 10px; }
  .tag-card__spec div { flex-direction: column; gap: 0; padding: 7px 0; }
  .tag-card__spec dd { text-align: left; }
  .tag-card__price { font-size: 32px; }
}

/* ——— 2. Кто ведёт: кадр цеха + портрет ——— */
.k-why__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; }
.k-why__ph { position: relative; margin: 0; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: var(--r-tile); background: #2a2b2e; }
.k-why__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.k-why__ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,16,.12), rgba(12,13,16,0) 40%, rgba(12,13,16,.25)); pointer-events: none; }
.callout { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0; padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; color: #fff; white-space: nowrap; background: rgba(20,21,24,.42); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gd-edge); }
.callout i { position: absolute; top: 50%; width: 46px; height: 1px; background: rgba(255,255,255,.85); }
.callout i::after { content: ''; position: absolute; top: -4px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(48,63,144,.85); }
.callout--a { top: 12%; left: 8%; } .callout--a i { left: 100%; } .callout--a i::after { right: -9px; }
.callout--b { top: 46%; right: 7%; } .callout--b i { right: 100%; } .callout--b i::after { left: -9px; }
.callout--c { bottom: 10%; left: 10%; } .callout--c i { left: 100%; } .callout--c i::after { right: -9px; }
.k-why__txt { display: grid; gap: 18px; justify-items: start; }
.k-why__txt .title { white-space: normal; max-width: 20ch; font-size: clamp(30px, 3.25vw, 48px); }
.k-why__lead { font-family: var(--font-head); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.38; font-weight: 500; letter-spacing: -.012em; color: var(--ink); }
.k-why__txt > p:not(.k-why__lead) { font-size: 16px; color: var(--muted); max-width: 54ch; }
@media (max-width: 860px) {
  .k-why__in { grid-template-columns: 1fr; gap: 22px; }
  .k-why__ph { aspect-ratio: 4 / 4.2; }
  .k-why__lead { font-size: 18px; }
  .callout { font-size: 12px; padding: 6px 11px; }
  .callout i { width: 26px; }
}

/* ——— 3. Продукты ——— */
.k-prod { padding-bottom: clamp(40px, 5vw, 72px); }
.k-course { margin-inline: var(--edge); min-height: min(78vh, 720px); }
.k-course .vit__ph img { object-position: 50% 45%; }
.k-course__card { max-width: 540px; }
.k-course__sub { margin-top: -4px; font-family: var(--font-head); font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: #c9d0ff; }
.k-course__card .vit__text { font-size: 15.5px; }
.k-course__meta { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.92); }
.k-course__meta::before { content: ''; flex: none; width: 22px; height: 1px; margin-top: .72em; background: currentColor; opacity: .7; }
.k-course__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 10px; }
.k-course__price { font-family: var(--font-head); font-size: 34px; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.k-course__price small { display: block; margin-top: 4px; font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.74); }
.k-course .k-course__buy .btn { margin-top: 0; }

.k-more { margin-top: var(--edge); border-radius: var(--r-tile); background: rgba(255,255,255,.55);
  box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.06), 0 14px 34px -24px rgba(28,30,33,.4); }
.k-more__row { display: grid; grid-template-columns: 132px minmax(0, 1fr) 170px 150px; align-items: center; gap: 28px; padding: 18px 28px 18px 18px; }
.k-more__row + .k-more__row { box-shadow: inset 0 1px 0 var(--line); }
.k-more__ph { display: block; aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: 18px; background: #2a2b2e; }
.k-more__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) { .k-more__row:hover .k-more__ph img { transform: scale(1.05); } }
.k-more__txt h3 { font-family: var(--font-head); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.k-more__txt p { margin-top: 6px; font-size: 16px; color: var(--muted); max-width: 52ch; }
.k-more__price { font-size: 15px; font-weight: 500; color: var(--sub); }
.k-more__link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.k-more__link::after { content: ' \2192'; }
.k-more__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.k-more__btn { width: 100%; }
@media (max-width: 860px) {
  .k-course { min-height: 560px; }
  .k-course__price { font-size: 30px; }
  .k-course__sub { font-size: 17px; }
  .k-course__card .vit__text { font-size: 14.5px; line-height: 1.45; }
  .k-course__meta { font-size: 13px; }
  .k-more__row { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "ph txt" "ph foot"; gap: 4px 16px; padding: 14px; }
  .k-more__ph { grid-row: 1 / span 2; align-self: start; border-radius: 14px; }
  .k-more__txt p { font-size: 14px; line-height: 1.45; }
  .k-more__txt h3 { font-size: 21px; }
  .k-more__price { grid-column: 2; font-size: 13px; margin-top: 4px; }
  .k-more__btn { grid-column: 2; justify-self: start; width: auto; margin-top: 6px; }
}

/* ——— 4. Программа: бирка-спецификация + лента ——— */
.k-prog { padding-top: clamp(40px, 5vw, 72px); }
.k-prog__in { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px clamp(28px, 5vw, 80px); align-items: start; }
.spec { position: relative; padding: 30px 28px 26px; border-radius: 18px; background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(28,30,33,.06), 0 18px 40px -28px rgba(28,30,33,.45); }
.spec div:last-child { border-bottom: 0; padding-bottom: 4px; }
@media (min-width: 861px) { .spec { position: sticky; top: calc(var(--header-h, 76px) + 24px); } }
.spec::before { content: ''; position: absolute; inset: 9px; border: 1px dashed rgba(48,63,144,.35); border-radius: 12px; pointer-events: none; }
.spec div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; }
.spec .spec__price { border-bottom: 0; align-items: baseline; padding-top: 16px; }
.spec .spec__price dd { font-family: var(--font-head); font-size: 38px; line-height: 1; font-weight: 600; letter-spacing: -.03em; color: var(--blue); }

/* лента-сантиметр: 12 делений, снятые уроки закрашены */
.tape { padding: 28px; border-radius: var(--r-card); background: rgba(255,255,255,.55); box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.06); }
.tape__cap { font-family: var(--font-head); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.tape__cap b { color: var(--blue); }
.tape__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 22px; border-radius: 10px; overflow: hidden;
  background: #efe7cf; box-shadow: inset 0 0 0 1px rgba(28,30,33,.1); }
.tape__row li { position: relative; display: grid; align-content: space-between; height: 92px; padding: 8px 0 10px 6px; font-family: var(--font-head); font-size: 15px; font-weight: 600;
  background: repeating-linear-gradient(90deg, rgba(28,30,33,.45) 0 1px, transparent 1px 25%) left top / 100% 12px no-repeat; box-shadow: inset -1px 0 0 rgba(28,30,33,.25); }
.tape__row li:last-child { box-shadow: none; }
.tape__row li span { margin-top: 10px; }
.tape__row li small { font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); justify-self: start; }
.tape__row li.is-ready { background-color: var(--blue); color: #fff;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 1px, transparent 1px 25%); }
.tape__row li.is-ready small { color: rgba(255,255,255,.8); }
.tape__note { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 60ch; }

/* список уроков, когда сервер отдал названия */
.lessons { display: grid; border-radius: var(--r-card); background: rgba(255,255,255,.55); box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.06); }
.lessons li { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: baseline; gap: 4px 16px; padding: 16px 22px; }
.lessons li + li { box-shadow: inset 0 1px 0 var(--line); }
.lessons__n { font-size: 13px; color: var(--muted); }
.lessons__t { font-weight: 500; font-size: 16px; }
.lessons__s { grid-column: 2; font-size: 14px; color: var(--muted); }
.lessons__t.is-plain { font-weight: 400; color: var(--sub); }
/* все «скоро» — одной строкой: пунктир, как у недошитого шва */
.lessons li.lessons__more { box-shadow: none; border-top: 1px dashed rgba(28,30,33,.28); }
.lessons__more .lessons__n { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--sub); }
.lessons__more .lessons__t { color: var(--sub); }
.k-prog__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
@media (max-width: 860px) {
  .k-prog__in { grid-template-columns: 1fr; }
  .spec { padding: 22px 20px 18px; }
  .spec div { grid-template-columns: 96px 1fr; font-size: 14px; padding: 9px 0; }
  .spec .spec__price dd { font-size: 32px; }
  .tape { padding: 18px 16px; }
  .tape__row { margin-top: 16px; }
  .tape__row li { height: 78px; padding-left: 4px; font-size: 13px; }
  .tape__row li small { font-size: 10px; }
  .tape__note { font-size: 14px; }
  .lessons li { grid-template-columns: 1fr; padding: 14px 16px; }
  .lessons__n { grid-column: 1 / -1; }
  .lessons__s { grid-column: 1 / -1; }
  .lessons__more .lessons__n { font-size: 16px; }
  .k-prog__cta .btn { width: 100%; }
}

/* ——— 5. Квиз ——— */
.k-quiz-sec .title { white-space: normal; }
.quiz { position: relative; padding: clamp(22px, 3vw, 40px); border-radius: var(--r-card); background: var(--gl-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gl-edge), var(--gl-drop); }
.lg-gpu .is-glass .quiz { background: rgba(255,255,255,.5); -webkit-backdrop-filter: none; backdrop-filter: none; }
.quiz__bar { height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(28,30,33,.22) 0 6px, transparent 6px 10px); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; transition: width .5s var(--ease); }
.quiz__count { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
.quiz.is-result .quiz__count { display: none; }
.quiz__stage { min-height: 300px; }
.q-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.q-step legend { padding: 0; margin-top: 6px; font-family: var(--font-head); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.q-step__hint { margin-top: 8px; font-size: 15px; color: var(--muted); }
.q-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 22px; }
/* шесть вариантов — ровно по три в ряд, без одинокой карточки во второй строке */
@media (min-width: 761px) { .q-opts[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.q-opt { position: relative; display: block; cursor: pointer; }
.q-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.q-opt > span { display: grid; gap: 3px; height: 100%; min-height: 64px; padding: 14px 18px; border-radius: var(--r-field); background: rgba(255,255,255,.62);
  box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.07), 0 2px 6px -3px rgba(28,30,33,.2); transition: background .2s, box-shadow .2s, color .2s; }
.q-opt b { font-size: 16px; font-weight: 600; }
.q-opt small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.q-opt:hover > span { background: rgba(255,255,255,.95); }
.q-opt input:checked + span { background: linear-gradient(180deg, var(--blue-2), var(--blue)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 22px -10px rgba(48,63,144,.7); }
.q-opt input:checked + span small { color: rgba(255,255,255,.8); }
.q-opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.q-opt--multi > span { padding-right: 46px; }
.q-opt--multi > span::after { content: ''; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(28,30,33,.3); }
.q-opt--multi input:checked + span::after { box-shadow: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23303f90' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.q-step__err { margin-top: 12px; font-size: 14px; color: #b3402f; }
.quiz__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 26px; }
.quiz__nav #quiz-next { margin-left: auto; min-width: 200px; }
.quiz.is-result .quiz__form { display: none; }

.quiz__result { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px clamp(28px, 4vw, 56px); margin-top: 20px; outline: none; }
.quiz__result[hidden] { display: none; }
.quiz__res-main { display: grid; align-content: start; gap: 14px; }
.quiz__sum { font-family: var(--font-head); font-size: clamp(40px, 4.6vw, 68px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; color: var(--blue);
  font-variant-numeric: lining-nums tabular-nums; text-wrap: balance; }
.quiz__per { font-size: 16px; font-weight: 500; }
.quiz__budget { padding: 14px 16px; border-radius: var(--r-field); background: rgba(28,30,33,.05); font-size: 15px; }
.quiz__budget:empty { display: none; }
.quiz__res-side { display: grid; align-content: start; gap: 14px; justify-items: start; }
.quiz__side-t { font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.quiz__extra { display: grid; width: 100%; }
.quiz__extra li { display: flex; gap: 12px; padding: 10px 0; font-size: 15px; box-shadow: inset 0 -1px 0 var(--line); }
.quiz__extra li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--blue); }
.quiz__extra li span { color: var(--muted); }
.quiz__diag { display: grid; gap: 10px; width: 100%; margin-top: 8px; padding: 22px; border-radius: var(--r-card); background: rgba(255,255,255,.7);
  box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1.5px rgba(48,63,144,.28), 0 14px 30px -20px rgba(48,63,144,.6); }
.quiz__diag-t { font-size: 15px; color: var(--muted); }
.qform[hidden] { display: none; }
.qform { display: grid; gap: 12px; margin-top: 4px; }
.qfield { display: grid; gap: 6px; }
.qfield > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.qinput { width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: var(--r-field); font-size: 16px; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(28,30,33,.14); transition: box-shadow .2s; }
.qinput:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.qfield__err { display: none; font-size: 13px; font-style: normal; color: #b3402f; }
.qfield.is-invalid .qfield__err { display: block; }
.qfield.is-invalid .qinput { box-shadow: inset 0 0 0 1.5px #b3402f; }
.qcheck { position: relative; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.qcheck input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.qcheck i { flex: none; width: 22px; height: 22px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(28,30,33,.3); }
.qcheck input:checked + i { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.4 3.4L16 8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: none; }
.qcheck input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.qfield.is-invalid .qcheck i { box-shadow: inset 0 0 0 1.5px #b3402f; }
.qcheck a { color: var(--ink); }
.qform__send { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.qform__err, .k-form__err { font-size: 14px; color: #b3402f; }
.k-form__err { flex-basis: 100%; color: #f19a8f; }
.qform__done { display: grid; gap: 8px; outline: none; }
.qform__done[hidden] { display: none; }
.qform__done-t { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--blue); }
.qform__done p:not(.qform__done-t) { font-size: 15px; color: var(--muted); }
.is-busy { opacity: .7; pointer-events: none; }
@media (max-width: 899px) {
  .quiz { padding: 18px 16px 20px; }
  .quiz__stage { min-height: 0; }
  .q-step legend { font-size: 23px; }
  .q-step__hint { font-size: 14px; }
  .q-opts { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .q-opt > span { min-height: 56px; padding: 11px 12px; }
  .q-opt b { font-size: 15px; }
  .q-opt small { font-size: 12px; }
  .q-opt--multi > span { padding-right: 38px; }
  .q-opt--multi > span::after { top: 12px; right: 10px; }
  .quiz__nav { margin-top: 18px; }
  .quiz__nav #quiz-next { min-width: 0; flex: 1; }
  .quiz__result { grid-template-columns: 1fr; gap: 22px; margin-top: 12px; }
  .quiz__sum { font-size: clamp(34px, 10vw, 44px); }
  .quiz__diag { padding: 16px; }
}
@media (max-width: 380px) { .q-opts { grid-template-columns: 1fr; } }

/* ——— 6. Цех рядом ——— */
.k-ceh { padding-top: clamp(40px, 5vw, 72px); padding-bottom: 0; }
.k-strip { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: var(--edge); height: clamp(320px, 36vw, 540px); padding-inline: var(--edge); }
.k-strip figure { position: relative; margin: 0; overflow: hidden; isolation: isolate; border-radius: var(--r-tile); background: #2a2b2e; }
.k-strip figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 10px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: #fff;
  background: rgba(20,21,24,.34); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gd-edge); }
.k-strip .ph img { transition: transform 1.1s var(--ease); }
@media (hover: hover) { .k-strip figure:hover .ph img { transform: scale(1.035); } }
.k-sites { display: grid; gap: 10px; margin-top: var(--edge); }
.k-sites .horeca-pill { margin-top: 0; }
@media (max-width: 760px) {
  .k-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .k-strip__a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .k-strip__b, .k-strip__c { aspect-ratio: 3 / 4; }
  .k-strip figcaption { left: 8px; bottom: 8px; padding: 7px 11px; font-size: 13px; }
}

/* ——— 7. Форма на тёмном ——— */
.k-form__pick { margin-bottom: 20px; }
.k-form .chip > span { color: var(--on-dark); background: rgba(255,255,255,.08); box-shadow: inset 1px 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06); }
.k-form .chip:hover > span { background: rgba(255,255,255,.16); }
.k-form .chip input:checked + span { background: linear-gradient(180deg, var(--blue-2), var(--blue)); }
.k-form.is-done .k-form__pick { display: none; }
@media (max-width: 899px) { .k-form__pick { gap: 6px; } }

@media (prefers-reduced-transparency: reduce) {
  .tag-card, .callout, .k-strip figcaption { background: rgba(20,21,24,.88); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .quiz { background: rgba(251,250,246,.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ——— Реквизиты в подвале ——— */
.k-req { flex-basis: 100%; max-width: 100%; align-self: stretch; font-size: 13px; color: var(--muted); }
.footer .k-legal { max-width: 100%; align-self: stretch; display: flex; flex-wrap: wrap; gap: 0 20px; flex-basis: 100%; }
@media (max-width: 899px) { .kurs .footer__in { grid-template-columns: repeat(2, minmax(0, max-content)); } .footer .k-req, .footer .k-legal { grid-column: 1 / -1; margin-top: 8px; }
  /* ссылки не рвём («Форма» одна на строке); «Все площадки» — своей строкой */
  .kurs .footer__in > a { white-space: nowrap; } .kurs .footer__in > a.footer__hub { grid-column: 1 / -1; } }
.footer .k-legal a { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.k-more__contact { margin-top: 14px; font-size: 15px; color: var(--muted); }
.k-more__contact a { color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.k-more__contact a:hover { color: var(--blue); }

/* ——— Документ (оферта) ——— */
.doc-head { position: sticky; top: 0; z-index: 10; background: rgba(246,243,236,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 -1px 0 var(--line); }
.doc-head__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.doc { padding-block: clamp(36px, 6vw, 88px) clamp(48px, 7vw, 104px); }
.doc__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.doc__side { position: sticky; top: 96px; }
.doc__title { font-family: var(--font-head); font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.025em; }
.doc__meta { margin-top: 12px; font-size: 15px; color: var(--muted); }
.doc__toc { display: grid; margin-top: 24px; }
.doc__toc a { display: flex; align-items: center; min-height: 40px; font-size: 14px; color: var(--ink); text-decoration: none; box-shadow: inset 0 -1px 0 var(--line); }
.doc__toc a:hover { color: var(--blue); }
.doc__body { max-width: 72ch; }
.doc__body section { padding: 26px 0 28px; box-shadow: inset 0 1px 0 var(--line); scroll-margin-top: 80px; }
.doc__body h2 { font-family: var(--font-head); font-size: clamp(21px, 1.8vw, 25px); font-weight: 600; letter-spacing: -.015em; }
.doc__body p, .doc__body li { margin-top: 10px; font-size: 16px; line-height: 1.6; }
.doc__body ul { margin-top: 4px; }
.doc__body li { position: relative; padding-left: 18px; }
.doc__body li::before { content: ''; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--ink); }
.doc__body a { color: var(--blue); text-underline-offset: 3px; }
.doc__req { display: grid; margin-top: 12px; }
.doc__req div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line); font-size: 15px; }
.doc__req dt { color: var(--muted); }
.doc__req dd { margin: 0; overflow-wrap: anywhere; }
.doc__todo { padding: 2px 8px; border-radius: 6px; background: #ffe58a; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .doc__grid { grid-template-columns: 1fr; }
  .doc__side { position: static; }
  .doc__toc { display: none; }
  .doc__body p, .doc__body li { font-size: 15px; }
  .doc__req div { grid-template-columns: 100px 1fr; font-size: 14px; }
}

/* ——— 2. Кто ведёт: портрет Марии поверх кадра цеха ——— */
.k-why__media { position: relative; padding-bottom: 36px; }
.k-me { position: absolute; right: -14px; bottom: 0; z-index: 3; width: min(46%, 260px); margin: 0; padding: 8px 8px 12px; border-radius: 22px;
  background: var(--paper); box-shadow: 0 1px 2px rgba(28,30,33,.06), 0 26px 50px -24px rgba(28,30,33,.55); }
.k-me img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 32%; border-radius: 15px; }
.k-me figcaption { display: grid; gap: 1px; padding: 10px 4px 0; font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.k-me figcaption small { font-family: var(--font); font-weight: 400; font-size: 12.5px; color: var(--muted); letter-spacing: 0; white-space: nowrap; }

@media (max-width: 860px) {
  .k-me { right: 6px; width: 46%; padding: 6px 6px 10px; border-radius: 18px; }
  .k-me figcaption { font-size: 13.5px; padding-top: 8px; }
  .k-me figcaption small { font-size: 12px; white-space: normal; }
}

/* ——— 4½. Как выглядит курс ——— */
.k-look { background: linear-gradient(180deg, var(--milk) 0%, var(--milk-2) 100%); }
.k-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
@media (min-width: 761px) and (max-width: 1100px) { .k-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.k-phone { display: grid; gap: 8px; }
.k-phone__fr { display: block; padding: 9px; border-radius: 46px; background: #1c1e21;
  box-shadow: inset 0 0 0 1.5px #3a3c41, 0 40px 70px -40px rgba(28,30,33,.65); margin-bottom: 14px; }
.k-phone__fr img { width: 100%; aspect-ratio: 400 / 790; object-fit: cover; object-position: 50% 0; border-radius: 37px; }
.k-phone__t { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -.015em; line-height: 1.2; padding-inline: 6px; }
.k-phone__p { font-size: 15px; color: var(--muted); padding-inline: 6px; }

.k-frames { margin-top: clamp(56px, 7vw, 96px); }
.k-frames__h { font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; margin-bottom: 20px; }
.k-frames__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.k-frame { display: grid; gap: 4px; align-content: start; } /* короткий заголовок не растягивает строки — «Урок 3» вровень с соседями */
.k-frame__ph { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #d9d6cf; margin-bottom: 10px; }
.k-frame__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.k-frame__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--blue); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.k-frame__play svg { width: 22px; height: 22px; margin-left: 2px; }
.k-frame__free { position: absolute; left: 12px; top: 12px; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1; }
.k-frame__free svg { width: 13px; height: 13px; margin-right: 6px; margin-left: -2px; }
.k-frame__free--lock { background: rgba(20,21,24,.55); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gd-edge); font-weight: 500; }
.k-frame__n { font-size: 13px; color: var(--sub); }
.k-frame__t { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -.012em; line-height: 1.2; }
@media (hover: hover) { a.k-frame__ph:hover img { transform: scale(1.04); } }
.k-frames__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.k-frames__cta p { font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  /* телефоны и кадры — лентой с прокруткой внутри блока, страница вбок не едет */
  .k-phones, .k-frames__row { display: flex; justify-content: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
    scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter); }
  .k-phones::-webkit-scrollbar, .k-frames__row::-webkit-scrollbar { display: none; }
  .k-phone { flex: 0 0 64vw; max-width: 270px; scroll-snap-align: start; }
  .k-phone__fr { border-radius: 40px; padding: 7px; }
  .k-phone__fr img { border-radius: 33px; }
  .k-phone__t { font-size: 18px; }
  .k-frame { flex: 0 0 80vw; max-width: 340px; scroll-snap-align: start; }
  .k-frame__t { font-size: 17px; }
  .k-frames__cta .btn { width: 100%; }
}

/* ——— 5½. Консультация (Мария) и сопровождение (команда) ——— */
.k-help { padding-bottom: clamp(48px, 6vw, 96px); }
.k-help .title { white-space: normal; }
/* консультация: большое «60» — как мерная лента на полях; шаги — одной строчкой-швом, без карточек */
.k-consult { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start;
  padding-block: clamp(28px, 3vw, 44px); border-top: 1px solid rgba(28,30,33,.18); border-bottom: 1px solid var(--line); }
.k-consult__big { display: grid; gap: 6px; }
.k-consult__big b { font-family: var(--font-head); font-size: clamp(110px, 12vw, 176px); line-height: .82; font-weight: 500; letter-spacing: -.06em; color: var(--blue); font-variant-numeric: lining-nums; }
.k-consult__big span { font-family: var(--font-head); font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: var(--sub); }
.k-consult__t { font-family: var(--font-head); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; font-weight: 600; letter-spacing: -.022em; }
.k-consult__p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 58ch; }
.k-seam { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; padding-top: 22px; counter-reset: seam; }
.k-seam::before { content: ''; position: absolute; left: 0; right: 0; top: 0; border-top: 1.5px dashed rgba(48,63,144,.45); }
.k-seam li { position: relative; padding-right: 18px; font-size: 15.5px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.k-seam li::before { content: ''; position: absolute; left: 0; top: -27px; width: 9px; height: 9px; border-radius: 50%; background: var(--milk); box-shadow: inset 0 0 0 1.5px var(--blue); }
.k-seam li:last-child::before { background: var(--blue); }
.k-consult__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.k-consult__price, .k-start__price { font-size: 15px; font-weight: 500; color: var(--sub); }

/* сопровождение: тянущийся кадр лекал + «техпакет» из десяти строк */
.k-support { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 0 clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 88px); }
.k-support__ph { grid-row: 1; position: relative; margin: 0; min-height: 100%; overflow: hidden; border-radius: var(--r-tile); background: #2a2b2e; }
.k-support__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.k-support__body { grid-row: 1; padding-block: 6px 8px; }
.k-support__t { font-family: var(--font-head); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.k-support__lead { margin-top: 14px; font-family: var(--font-head); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; color: var(--ink); max-width: 44ch; }
.k-support__cap { margin-top: 30px; font-size: 14px; font-weight: 600; color: var(--blue); }
.k-can { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-top: 10px; counter-reset: can; }
.k-can li { counter-increment: can; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.k-can li::before { content: counter(can); font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--sub); font-variant-numeric: tabular-nums; padding-top: 1px; }
.k-start { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px clamp(28px, 4vw, 64px); margin-top: clamp(16px, 2vw, 28px);
  padding: clamp(24px, 3vw, 40px); border-radius: var(--r-tile); background: var(--graphite); color: var(--on-dark); }
.k-start__k { font-size: 14px; font-weight: 500; color: var(--on-dark-muted); }
.k-start__t { margin-top: 4px; font-family: var(--font-head); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.k-start__p { margin-top: 10px; font-size: 16px; color: var(--on-dark-muted); max-width: 60ch; }
.k-start__cta { display: grid; justify-items: start; gap: 10px; }
.k-start__price { color: var(--on-dark-muted); font-size: 14px; }
.k-start .btn { white-space: normal; text-align: center; }
@media (max-width: 860px) {
  .k-consult { grid-template-columns: 1fr; gap: 14px; }
  .k-consult__big { grid-template-columns: auto 1fr; align-items: end; gap: 14px; }
  .k-consult__big b { font-size: 92px; }
  .k-consult__big span { padding-bottom: 8px; font-size: 17px; }
  .k-consult__p { font-size: 15.5px; }
  .k-seam { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; padding: 0 0 0 22px; }
  .k-seam::before { left: 4px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 1.5px dashed rgba(48,63,144,.45); }
  .k-seam li { font-size: 15px; padding-right: 0; }
  .k-seam li::before { left: -22px; top: 5px; }
  .k-consult__foot .btn { width: 100%; }
  .k-support { grid-template-columns: 1fr; }
  .k-support__ph { grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; margin-bottom: 22px; }
  .k-support__body { grid-row: auto; padding: 0; }
  .k-support__lead { font-size: 17px; }
  .k-can { grid-template-columns: 1fr; }
  .k-can li { font-size: 14.5px; padding: 10px 0; }
  .k-start { grid-template-columns: 1fr; margin-top: 22px; padding: 22px 18px; }
  .k-start__p { font-size: 15px; }
  .k-start__cta, .k-start .btn { width: 100%; justify-items: stretch; }
}

/* «30-минутной» не рвётся на «30-/минутной»: в шрифтах нет неразрывного дефиса U+2011 */
.nobr { white-space: nowrap; }

/* Присланное Марией фото из цеха. */
.k-me img { height: auto; object-position: 50% 62%; }
