/* Карлсон страницы услуг цеха /uslugi/lazernaya-rezka/, /uslugi/gibka-metalla/, /uslugi/poroshkovaya-pokraska/, /uslugi/svarka-nerzhavejki/ (06.10).
   Перенос svc.css из холста Claude Design «Карлсон: Услуги цеха» один в один. Дополняет k.css и page.css, те же токены и сетка 12 колонок. */

/* переключатель услуг под первым экраном */
.svn { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.svn .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svn a { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 24px 20px 24px 0; text-decoration: none; border-right: 1px solid var(--line2); transition: background .25s; }
.svn a + a { padding-left: 20px; }
.svn a:last-child { border-right: 0; }
.svn a:hover { background: var(--pink); }
.svn a .lbl { color: var(--muted); }
.svn a b { font-size: 19px; font-weight: 500; line-height: 1.25; }
.svn a small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.svn a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.svn a:hover::after, .svn a.on::after { transform: scaleX(1); }
.svn a.on .lbl { color: var(--corten); }

/* карточка заявки на первом экране */
.tool-ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ti); }
.tool-ph img { width: 100%; height: 100%; object-fit: cover; }
.tool-ph .lbl { position: absolute; left: 12px; bottom: 12px; background: var(--white); padding: 7px 10px; }
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; }
.kv dd.acc { color: var(--corten); }
.tool-cta { display: flex; flex-direction: column; gap: 14px; }
.tool-cta .btn { width: 100%; }
.tool-cta .ulink { align-self: flex-start; font-size: 14px; }
.tool-file { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-file span { display: inline-flex; padding: 6px 12px; background: var(--pink); font-size: 13px; }

/* что делаем: текст в карточке */
.item .bd .p { font-size: 15px; line-height: 1.5; }

/* металлы образцами */
.mats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.mat { grid-column: span 3; margin: 0; background: var(--white); display: flex; flex-direction: column; }
.mat .mph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--ti); }
.mat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.mat:hover img { transform: scale(1.05); }
.mat figcaption { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.mat b { font-size: 18px; font-weight: 500; line-height: 1.25; }
.mat span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.mats-note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: 40px; }
.mats-note > div { padding: 20px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.mats-note > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.mats-note b { font-size: 18px; font-weight: 500; }
.mats-note .p { font-size: 15px; max-width: 520px; }

/* цена и минимальный заказ */
.pz { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.pz-l { grid-column: 1 / 7; }
.pz-l .lead { margin-top: 28px; }
.pz-card { grid-column: 8 / 13; background: var(--steel); color: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.pz-card .lbl { color: #B9C6CC; }
.pz-big { font-size: 72px; line-height: .95; letter-spacing: -.035em; }
.pz-big small { font-size: 26px; letter-spacing: 0; margin-left: 8px; }
.pz-card .btns { flex-direction: column; margin-top: 8px; }
.pz-card .btn { width: 100%; }
.kw .pz-card .btn-line { color: var(--white); }
.kw .pz-card .btn-line:hover { color: var(--ink); }

/* лазерная сварка отдельным блоком */
.feat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.feat-ph { grid-column: 1 / 6; position: relative; height: 640px; overflow: hidden; background: #133542; }
.feat-ph img { width: 100%; height: 100%; object-fit: cover; }
.feat-ph .lbl { position: absolute; left: 14px; top: 14px; background: var(--white); color: var(--ink); padding: 7px 10px; }
.feat-t { grid-column: 7 / 13; }
.feat-t .lead { margin-top: 28px; color: #DDE4E7; max-width: 560px; }
.feat-t .tnd-list { margin: 36px 0 40px; }
.feat-t .btns .btn-line { color: var(--white); }

/* таблица возможностей на сетке, строки приходят из данных услуги */
.ctab { background: var(--white); font-size: 16px; }
.ctab-h, .ctab-r { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.ctab-h { background: var(--steel); }
.ctab-h span { padding: 14px 20px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.kw .ctab-h span { color: var(--white); }
.ctab-r { border-bottom: 1px solid var(--line); }
.ctab-r:nth-child(odd) { background: #F4F4F3; }
.ctab-r span { padding: 16px 20px; line-height: 1.45; }
.ctab-r span:first-child { font-weight: 500; }

/* ---------- телефон ---------- */
@container k (max-width: 820px) {
  .ctab { font-size: 14px; }
  .ctab-h, .ctab-r { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
  .ctab-h span, .ctab-r span { padding: 12px; }

  .svn .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
  .svn .wrap::-webkit-scrollbar { display: none; }
  .svn a, .svn a + a { flex: none; flex-direction: row; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; }
  .svn a .lbl, .svn a small, .svn a::after { display: none; }
  .svn a b { font-size: 14px; white-space: nowrap; }
  .svn a.on { background: var(--steel); border-color: var(--steel); }
  .kw .svn a.on { color: var(--white); }

  .mats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mat { grid-column: span 1; }
  .mat figcaption { padding: 12px 12px 16px; }
  .mat b { font-size: 15px; }
  .mat span { font-size: 13px; }
  .mats-note { grid-template-columns: 1fr; margin-top: 28px; }
  .mats-note > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }

  .pz { display: block; }
  .pz-card { margin-top: 36px; padding: 24px 18px; }
  .pz-big { font-size: 48px; }
  .pz-big small { font-size: 20px; }

  .feat { display: block; }
  .feat-ph { height: 420px; margin-bottom: 36px; }
  .feat-t .btns .btn { flex: 1 1 100%; }
}

/* ---------- служебное для сайта ---------- */
/* первый экран: размер листа «1500×3000» шире своей колонки в строке цифр и в макете наезжает на соседнюю цифру,
   здесь кегль такой цифры ужимается по ширине колонки (как .trust-dims на «Работах по чертежу»), остальные цифры как в макете */
.trust > div.tw { container-type: inline-size; }
.trust .tw .disp { font-size: min(30px, 18cqi); }
@container k (max-width: 820px) {
  .trust .tw .disp { font-size: min(26px, 18cqi); }
}
