/* Внутренние страницы: карточки как на главной — «чертёж → печать» по прокрутке.
   inner.js оборачивает карточку: .ib-w > [.ib-bp (чертёж), .card (печатается целиком), .ib-line (линия сопла)].
   Только на страницах без 3D-сцены (класс .inner на <html>). Без JS — прежний вид карточек.
   --ip: 0 — только чертёж, 1 — карточка напечатана. */

/* общий вид карточки (как .pc-fin на главной) */
.inner .card { border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(36, 36, 39, .82), rgba(24, 24, 26, .80));
  box-shadow: 0 18px 50px rgba(7, 7, 8, .38), inset 0 1px 0 rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.inner .card::before, .inner .card::after { display: none; }

/* обёртка: чертёж и линия — снаружи карточки, поэтому их не задевает маска печати */
.inner .ib-w { --ip: 0; position: relative; display: flex; flex-direction: column; min-width: 0; }
.inner .ib-w > .card { position: relative; z-index: 1; flex: 1 1 auto; margin: 0;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--ip) * 100%), transparent calc(var(--ip) * 100%)); mask-image: linear-gradient(to top, #000 calc(var(--ip) * 100%), transparent calc(var(--ip) * 100%)); }
.inner .ib-w.ip-done > .card { -webkit-mask-image: none; mask-image: none; }

/* чертёж: пунктир, сетка, подписи, контур иконки, уголки */
.inner .ib-bp { position: absolute; inset: 0; z-index: 0; border: 1px dashed rgba(255, 119, 46, .6); border-radius: 8px; pointer-events: none; opacity: calc(1 - var(--ip) * .88);
  background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 16px 16px, rgba(20, 20, 21, .35); }
.inner .ib-bp::before, .inner .ib-bp::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid #ff8c4a; }
.inner .ib-bp::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.inner .ib-bp::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.inner .ib-bp .dm { position: absolute; max-width: calc(100% - 96px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 500 .6rem var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 160, 110, .8); }
.inner .ib-bp .dm.a { left: 12px; top: 8px; } .inner .ib-bp .dm.b { left: 12px; bottom: 8px; } .inner .ib-bp .dm.c { right: 12px; bottom: 8px; }
.inner .ib-bp svg { position: absolute; right: 14px; top: 14px; width: 54px; height: 54px; fill: none; stroke: rgba(255, 140, 74, .85); stroke-width: 1.2; stroke-dasharray: 3 2; }

/* линия печати (сопло) */
.inner .ib-line { position: absolute; z-index: 2; left: -3%; right: -3%; bottom: calc(var(--ip) * 100%); height: 2px; border-radius: 1px; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: linear-gradient(90deg, transparent, #ff8c4a 25%, #fff 50%, #ff8c4a 75%, transparent); box-shadow: 0 0 12px 2px rgba(255, 106, 26, .7); }
.inner .ib-w.printing .ib-line { opacity: 1; }

/* типографика как у карточек главной */
.inner .card .cnum { display: block; margin: 0 0 4px; font: 500 .72rem var(--mono, monospace); letter-spacing: .14em; color: var(--accent); }
.inner .card h3 { margin: 0 0 10px; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--line2);
  font: 700 1.22rem/1.2 var(--sans); letter-spacing: -.015em; text-transform: none; color: #fff; }
.inner .card.svc h3 { border-bottom: 0; padding-bottom: 0; margin-bottom: 6px; font-size: 1.3rem; }
.inner .card.svc p { color: rgba(224, 228, 237, .82); }
.inner .card.svc .more { color: var(--accent); font-weight: 600; }
.inner a.card.svc { transition: border-color .2s ease, transform .2s ease; }
.inner a.card.svc:hover { border-color: var(--accent); transform: translateY(-2px); }

/* текстовые разделы-карточки (статьи, цены, политика…) */
.inner .content section.card.blk { padding: 26px 28px 22px; margin: 0; }
.inner .content .ib-w:has(> .card.blk), .inner .content .ib-w.blk-w { margin: 1.4rem 0; }
.inner .card.blk h2 { margin: 0 0 .6em; padding: 0; border: 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: #fff; }
.inner .card.blk .tablewrap { margin: .4rem 0; }
@media (max-width: 640px) { .inner .content section.card.blk { padding: 20px 18px 18px; } }
