/* Карлсон, страница «Набор руководителя» /nabor-rukovoditelya/ (13.10). Дополняет k.css и page.css теми же токенами.
   Светлая розовая подача брендбука: Fire Red только в кнопке заявки и мелких метках, Royal Blue #5271FF в 3D-просмотре и на схеме логотипа.
   Под кадрами подпись «Визуализация. Первый образец в работе»: физического образца по редакции 2 пока нет. */

.kw { --blue: #5271FF; }

/* подпись под кадрами */
.nb-vis { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 11px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.nb-vis::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--red); }
.nb-vis-c { margin-top: 20px; }
.bg-steel .nb-vis { color: #B9C6CC; }
.nb-ph-in { position: relative; overflow: hidden; background: #E4E4E4; }
.nb-ph-in img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 1. первый экран. Кегль H1 по общему правилу site.css (ширина и высота окна), но слово «руководителя» длинное:
   чуть мельче, чтобы заголовок занимал не больше трёх строк на 1920×910, 1536×730, 1366×650 и на телефоне 390 */
@media (min-width: 821px) { .kw .lh.nb-hero h1 { font-size: clamp(32px, min(3.9vw, 6.1vh), 68px) !important; } }
@media (max-width: 820px) { .kw .lh.nb-hero h1 { font-size: clamp(26px, 8vw, 36px) !important; } }
.nb-hero-ph { margin: 0; }
.nb-hero-ph .nb-ph-in { aspect-ratio: 4 / 3; box-shadow: 0 50px 100px -60px rgba(11, 35, 45, .55); }
.nb-hero-ph img { object-position: 55% 50%; }
.nb-chip { position: absolute; left: 20px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 4px; max-width: calc(100% - 40px); padding: 14px 18px; background: rgba(255, 255, 255, .94); }
.nb-chip .lbl { color: var(--corten); font-size: 11px; }
.nb-chip b { font-weight: 600; font-size: 15px; line-height: 1.35; }

/* 2. одна линия */
.nb-wide { margin: 0; }
.nb-wide .nb-ph-in { aspect-ratio: 16 / 7; background: #E4E4E4; }
.nb-wide img { object-position: 50% 52%; }
.nb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.nb-facts > div { padding: 22px 28px 0 0; }
.nb-facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.nb-facts .disp { font-size: 44px; line-height: 1; white-space: nowrap; }
.nb-facts .p { margin-top: 12px; font-size: 15px; line-height: 1.5; max-width: 360px; }

/* 3. логотип */
.nb-logo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.nb-logo-l { grid-column: 1 / 6; }
.nb-logo-l .lead { margin: 28px 0 32px; }
.nb-logo-r { grid-column: 7 / 13; display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.nb-cut { grid-column: 1 / -1; margin: 0; background: var(--white); padding: 28px 28px 22px; }
.nb-cut svg { display: block; width: 100%; height: auto; }
.nb-cut-panel { fill: var(--blue); }
.nb-cut-legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.nb-cut-legend li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.nb-cut-legend b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--steel); color: var(--white); font-size: 12px; font-weight: 600; }
.nb-cut-legend b.sw-panel { background: var(--blue); }
.nb-cut text { font-family: 'Commissioner', 'Helvetica Neue', sans-serif; }
.nb-cut-ph { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ti); }
.nb-cut-ph img { width: 100%; height: 100%; object-fit: cover; }
.nb-cut-ph .lbl { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--white); padding: 7px 10px; font-size: 10px; letter-spacing: .1em; }
.nb-note { margin: 0; align-self: center; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* 4. пять предметов */
/* 14.10 по дизайну Claude Design: органайзер на всю ширину, остальные четыре крупными карточками 2 × 2 */
.nb-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nb-item { display: flex; flex-direction: column; background: var(--pink); }
.nb-item.wide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.nb-item.wide .nb-ph { grid-column: 1 / 8; aspect-ratio: 16 / 9; }
.nb-item.wide .bd { grid-column: 8 / 13; justify-content: center; padding: 44px 48px 44px 8px; gap: 18px; }
.nb-item.wide .disp { font-size: 40px; }
.nb-item.wide .p { font-size: 17px; }
.nb-ph { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #E4E4E4; }
.nb-ph > span { position: absolute; inset: 0; transition: opacity .45s ease; }
.nb-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.nb-item:hover .nb-ph img { transform: scale(1.04); }
.nb-ph .v-empty { opacity: 0; }
.nb-item.is-empty .v-empty { opacity: 1; }
.nb-item.is-empty .v-use { opacity: 0; }
.nb-sw { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; background: var(--white); padding: 3px; gap: 3px; }
.kw .nb-sw button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background .25s, color .25s; }
.kw .nb-sw button:hover { background: var(--pink); }
.kw .nb-sw button[aria-pressed="true"] { background: var(--steel); color: var(--white); }
.nb-item .bd { display: flex; flex-direction: column; gap: 12px; padding: 26px 30px 30px; flex: 1; }
.nb-item .disp { font-size: 30px; line-height: 1; }
.nb-item .p { font-size: 16px; line-height: 1.55; max-width: 560px; }
.nb-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 16px; padding: 36px 44px; background: var(--steel); color: var(--white); }
.nb-cta .disp { font-size: 34px; line-height: 1; }
.nb-cta .p { margin-top: 10px; color: #C3CED3; font-size: 16px; line-height: 1.5; }
.nb-cta .btn { flex: none; }
.nb-item .ulink { margin-top: auto; align-self: flex-start; padding-top: 6px; color: var(--ink); }
.nb-item .ulink .ico { width: 16px; height: 16px; }

/* 5. именная табличка */
.nb-plate-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.nb-plate-l { grid-column: 1 / 6; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.nb-plate-l .lead { color: #D5DEE2; }
.nb-plate-r { grid-column: 6 / 13; position: relative; padding-bottom: 96px; }
.nb-plate-big { margin: 0; }
.nb-plate-big .nb-ph-in { aspect-ratio: 3 / 2; }
.nb-plate-sm { position: absolute; right: -24px; bottom: 0; width: 46%; margin: 0; border: 8px solid var(--steel); background: var(--steel); }
.nb-plate-sm .nb-ph-in { aspect-ratio: 3 / 2; }
.nb-plate-sm .lbl { display: block; padding-top: 10px; color: #B9C6CC; }
.nb-plate-p { color: #B9C6CC; font-size: 15px; line-height: 1.5; max-width: 460px; }
.nb-dl { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.nb-dl li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.nb-dl li span:first-child { flex: none; color: var(--muted); }
.nb-dl li span:last-child { text-align: right; }
.bg-steel .nb-dl, .bg-steel .nb-dl li { border-color: rgba(255, 255, 255, .16); }
.bg-steel .nb-dl li span:first-child { color: #8FA3AB; }

/* 6 и 7. 3D: подложка студийная, сцена и кнопки */
.n3-stage { position: relative; overflow: hidden; background: radial-gradient(120% 95% at 50% 40%, #F2F2F2 0%, #E6E6E6 55%, #D6D7D9 100%); }
.n3-items .n3-stage { aspect-ratio: 16 / 8; }
.n3-box .n3-stage { aspect-ratio: 1 / 1; }
.n3-poster { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.n3-poster.on { opacity: 1; }
.n3-poster img { width: 100%; height: 100%; object-fit: cover; background: transparent !important; }
.n3-gl { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.n3-gl canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.n3-gl canvas:active { cursor: grabbing; }
.n3-on .n3-gl { opacity: 1; }
.n3-on .n3-poster { opacity: 0 !important; pointer-events: none; }
.kw .n3-go { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--steel); color: var(--white); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; box-shadow: 0 18px 40px -18px rgba(11, 35, 45, .6); transition: background .25s, transform .25s; }
.kw .n3-go:hover { background: var(--blue); }
.n3-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.n3-on .n3-go, .n3-load .n3-go, .n3-fail .n3-go { opacity: 0; pointer-events: none; }
.n3-spin { position: absolute; left: 50%; top: 50%; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid rgba(82, 113, 255, .25); border-top-color: var(--blue); border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .3s; }
.n3-load .n3-spin { opacity: 1; animation: n3spin .8s linear infinite; }
@keyframes n3spin { to { transform: rotate(360deg); } }
.n3-hint { position: absolute; left: 16px; bottom: 16px; z-index: 2; max-width: calc(100% - 32px); padding: 7px 10px; background: rgba(255, 255, 255, .9); font-size: 12px; line-height: 1.3; color: var(--steel); opacity: 0; transition: opacity .4s; pointer-events: none; }
.n3-on .n3-hint, .n3-fail .n3-hint { opacity: 1; }
.n3-tag { position: absolute; right: 14px; top: 14px; z-index: 2; padding: 5px 8px; background: rgba(255, 255, 255, .86); color: var(--steel); font-size: 10px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; pointer-events: none; }
.n3-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kw .n3-tabs button { min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.kw .n3-tabs button:hover { border-color: var(--steel); }
.kw .n3-tabs button.on { background: var(--steel); border-color: var(--steel); color: var(--white); box-shadow: inset 0 -3px 0 var(--blue); }
.n3-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; background: rgba(255, 255, 255, .94); }
.n3-bar .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
.kw .n3-box .n3-go { top: 44%; bottom: auto; transform: translate(-50%, -50%); }
.n3-box .n3-hint { top: 16px; bottom: auto; }
.n3-angle { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; min-width: 0; }
.n3-angle input { flex: 1; min-width: 0; accent-color: var(--blue); height: 28px; }
.n3-angle output { flex: none; min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

.nb-box { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.nb-box-l { grid-column: 1 / 6; }
@container k (min-width: 821px) { .nb-box-l .h2, .nb-plate-l .h2 { font-size: min(4.4cqi, 64px); } }
.nb-box-l .lead { margin: 28px 0 28px; }
.nb-box-dl { margin-bottom: 28px; }
.nb-box-r { grid-column: 6 / 13; }
.nb-box-ph { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.nb-box-ph figure { margin: 0; }
.nb-box-ph img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.nb-box-ph .lbl { display: block; margin-top: 8px; color: var(--muted); }

/* 8. характеристики */
.nb-spec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.nb-spec-l { grid-column: 1 / 7; }
.nb-spec-r { grid-column: 8 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 8px; }
.nb-tbl { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.nb-tbl th { padding: 14px 18px; text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--white); background: var(--steel); }
.nb-tbl td { padding: 14px 18px; border-bottom: 1px solid rgba(11, 35, 45, .12); vertical-align: baseline; }
.nb-tbl tbody tr:nth-child(even) td { background: var(--pink); }
.nb-tbl th + th, .nb-tbl td + td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 9. дополнительно */
.nb-extra { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.nb-extra-ph { grid-column: 1 / 6; margin: 0; }
.nb-extra-ph .nb-ph-in { aspect-ratio: 1 / 1; background: #5E5E5E; }
.nb-extra-t { grid-column: 7 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.nb-pill { display: inline-flex; padding: 8px 12px; border: 1px solid var(--corten); color: var(--corten); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; line-height: 1.3; }

/* ---------- ноутбуки ---------- */
@container k (min-width: 821px) and (max-width: 1240px) {
  .nb-item.wide .bd { padding: 28px 28px 28px 0; }
  .nb-item.wide .disp { font-size: 32px; }
  .nb-cta { padding: 30px 32px; }
  .nb-cta .disp { font-size: 28px; }
  .nb-logo-l { grid-column: 1 / 7; }
  .nb-logo-r { grid-column: 7 / 13; grid-template-columns: 1fr; }
  .nb-facts .disp { font-size: 36px; }
}

/* ---------- телефон ---------- */
@container k (max-width: 820px) {
  .nb-hero-ph .nb-ph-in { aspect-ratio: 4 / 3; }
  .nb-wide .nb-ph-in { aspect-ratio: 4 / 3; }
  .nb-facts { grid-template-columns: 1fr; margin-top: 28px; }
  .nb-facts > div, .nb-facts > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .nb-facts .disp { font-size: 34px; }
  .nb-logo, .nb-plate-g, .nb-box, .nb-spec, .nb-extra { display: flex; flex-direction: column; gap: 32px; }
  .nb-logo-r { grid-template-columns: 1fr; width: 100%; }
  .nb-cut { padding: 16px 14px 14px; }
  .nb-cut-legend { grid-template-columns: 1fr; }
  .nb-chip { left: 10px; bottom: 10px; padding: 10px 12px; max-width: calc(100% - 20px); }
  .nb-chip b { font-size: 13px; }
  .nb-cta { flex-direction: column; align-items: stretch; gap: 20px; padding: 26px 20px; }
  .nb-cta .disp { font-size: 24px; }
  .nb-items { grid-template-columns: 1fr; }
  .nb-item.wide { display: flex; }
  .nb-item.wide .nb-ph { aspect-ratio: 3 / 2; }
  .nb-item.wide .bd { padding: 20px 18px 22px; gap: 12px; }
  .nb-item.wide .disp, .nb-item .disp { font-size: 24px; }
  .nb-item.wide .p { font-size: 15px; }
  .nb-item .bd { padding: 20px 18px 22px; }
  .nb-plate-r { width: 100%; padding-bottom: 0; }
  .nb-plate-sm { position: relative; right: auto; width: 60%; margin: 12px 0 0 auto; }
  .nb-plate-l .btn, .nb-spec-r .btn, .nb-extra-t .btn, .nb-box .btn { align-self: stretch; }
  .nb-box-l, .nb-box-r, .nb-spec-l, .nb-spec-r, .nb-extra-ph, .nb-extra-t, .nb-plate-l { width: 100%; }
  .n3-items .n3-stage { aspect-ratio: 4 / 3.4; }
  .kw .n3-go { bottom: 16px; min-height: 48px; font-size: 14px; }
  .n3-tag { right: 8px; top: 8px; font-size: 9px; padding: 4px 6px; letter-spacing: .1em; }
  .n3-hint { left: 8px; bottom: 8px; font-size: 11px; max-width: calc(100% - 16px); }
  .n3-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); }
  .n3-tabs::-webkit-scrollbar { display: none; }
  .kw .n3-tabs button { flex: none; min-height: 44px; padding: 0 16px; font-size: 14px; }
  /* на телефоне кнопки коробки под сценой, а не поверх неё */
  .n3-box .n3-stage { overflow: visible; margin-bottom: 124px; }
  .n3-bar { left: 0; right: 0; bottom: auto; top: 100%; padding: 12px 0 0; background: transparent; }
  .n3-bar .btn { flex: 1 1 40%; min-height: 50px; padding: 0 14px; }
  .n3-angle { flex-basis: 100%; }
  .nb-tbl { margin-top: 28px; font-size: 15px; }
  .nb-tbl td + td { white-space: normal; }
}
