/* «Требования к макетам» (ТЗ-21Б): хаб /information/tech-requirements/, темы, гайд /design/guide/, шаблоны, форматы бумаги. */

/* ---------- Первый экран: «коврик для резки» с метками обреза ---------- */
.tk-hero {
  position: relative; overflow: hidden; padding: 8px 0 56px;
  background:
    linear-gradient(rgba(0, 160, 227, .07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(0, 160, 227, .07) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(560px 320px at 95% 0%, rgba(229, 9, 127, .08), transparent 70%),
    #F7F9FB;
  border-bottom: 1px solid var(--pc-border);
}
.tk-hero .container { position: relative; z-index: 1; }
.tk-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; padding-top: 12px; }
.tk-hero-grid--solo { grid-template-columns: minmax(0, 820px); }
.tk-hero h1 { max-width: 760px; margin-bottom: 16px; }
.tk-hero .lead { max-width: 720px; color: var(--pc-text); font-size: 18px; line-height: 1.6; }
.tk-hero .section-eyebrow .bi { color: var(--pc-cta); }
.tk-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tk-crop { position: absolute; width: 28px; height: 28px; pointer-events: none; opacity: .5; }
.tk-crop::before, .tk-crop::after { content: ""; position: absolute; background: var(--pc-dark); }
.tk-crop::before { width: 1px; height: 22px; } .tk-crop::after { width: 22px; height: 1px; }
.tk-crop--tl { left: 14px; top: 14px; } .tk-crop--tl::before { left: 22px; top: 0; } .tk-crop--tl::after { left: 0; top: 22px; }
.tk-crop--tr { right: 14px; top: 14px; } .tk-crop--tr::before { right: 22px; top: 0; } .tk-crop--tr::after { right: 0; top: 22px; }
.tk-crop--bl { left: 14px; bottom: 14px; } .tk-crop--bl::before { left: 22px; bottom: 0; } .tk-crop--bl::after { left: 0; bottom: 22px; }
.tk-crop--br { right: 14px; bottom: 14px; } .tk-crop--br::before { right: 22px; bottom: 0; } .tk-crop--br::after { right: 0; bottom: 22px; }

/* «Коротко» справа */
.tk-short { background: #fff; border-radius: var(--pc-radius-lg); padding: 24px; box-shadow: var(--pc-shadow-lg); border-top: 4px solid var(--pc-cta); }
.tk-short-label { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--pc-eyebrow); margin-bottom: 10px; }
.tk-short ul { list-style: none; padding: 0; margin: 0 0 18px; }
.tk-short li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px dashed var(--pc-border); font-size: 15px; line-height: 1.45; }
.tk-short li:last-child { border-bottom: 0; }
.tk-short li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 12px; border-radius: 3px; background: var(--pc-cyan); box-shadow: 4px 4px 0 rgba(229, 9, 127, .55); }
.tk-short li strong { color: var(--pc-dark); }
.tk-short p { font-size: 15px; color: var(--pc-text-light); }

/* Цифры (хаб, шаблоны) */
.tk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk-stats--3 { grid-template-columns: 1fr; }
.tk-stat { background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 14px 16px; }
.tk-stat:first-child { grid-column: 1 / -1; background: var(--pc-dark); border-color: var(--pc-dark); }
.tk-stat:first-child b { color: #fff; } .tk-stat:first-child span { color: rgba(255, 255, 255, .72); }
.tk-stat b { display: block; font-size: 26px; line-height: 1.1; color: var(--pc-dark); font-weight: 700; }
.tk-stat span { font-size: 13.5px; color: var(--pc-text-light); line-height: 1.35; display: block; margin-top: 4px; }

.tk-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tk-jump a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--pc-border); font-size: 14px; color: var(--pc-dark); }
.tk-jump a:hover { border-color: var(--pc-cyan); color: var(--pc-link); }

/* ---------- Заголовки секций ---------- */
.tk-head { margin-bottom: 32px; max-width: 780px; }
.tk-head p, .tk-muted { color: var(--pc-text-light); }
.tk-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.tk-head--row h2 { margin-bottom: 0; } .tk-head--row > p { max-width: 460px; margin: 0; }
.tk-small { font-size: 14px; }
.tk-narrow { max-width: 860px; }
.tk-narrow .tk-faq { margin-top: 0; }
.tk-scheme-grid .h2 { font-weight: 700; }
.tk-lead-more { }
.tk-h-sm { font-size: 22px; margin-bottom: 20px; }

/* ---------- Главное за минуту ---------- */
.tk-rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tk-rule { display: flex; gap: 18px; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); padding: 20px 22px; transition: box-shadow .2s, border-color .2s; }
.tk-rule:hover { box-shadow: var(--pc-shadow); border-color: #cfd8e3; }
.tk-ricon { flex: 0 0 64px; margin-top: 2px; }
.tk-rule h3 { font-size: 18px; margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; }
.tk-rule-n { font-size: 13px; color: var(--pc-cta); font-weight: 700; letter-spacing: .5px; }
.tk-rule p { margin: 0 0 6px; font-size: 15px; color: var(--pc-text); line-height: 1.5; }
.tk-rule-more { font-size: 14px; font-weight: 600; }

/* ---------- Схема вылетов ---------- */
.tk-scheme-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.tk-scheme { background: #fff; border-radius: var(--pc-radius-lg); padding: 16px; box-shadow: var(--pc-shadow); margin-top: 16px; }
.tk-scheme svg { display: block; width: 100%; height: auto; }
.tk-z-hl { opacity: 0; transition: opacity .2s; }
.tk-z--safe .tk-z-hl { fill-opacity: 1; }
.tk-scheme.is-bleed .tk-z--bleed .tk-z-hl { opacity: 1; }
.tk-scheme.is-trim .tk-z--trim .tk-z-hl { opacity: 1; }
.tk-scheme.is-safe .tk-z--safe .tk-z-hl { opacity: .28; }
.tk-scheme.is-safe .tk-card-art, .tk-scheme.is-bleed .tk-card-art { opacity: .55; }
.tk-card-art { transition: opacity .2s; }
.tk-z { cursor: pointer; }
.tk-scheme-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tk-scheme-legend button {
  text-align: left; background: #fff; border: 1px solid var(--pc-border); border-left: 4px solid var(--z); border-radius: var(--pc-radius);
  padding: 10px 12px; font: inherit; color: var(--pc-text); cursor: pointer; transition: box-shadow .2s, background .2s;
}
.tk-scheme-legend button b { display: block; font-size: 15px; color: var(--pc-dark); }
.tk-scheme-legend button span { display: block; font-size: 13px; color: var(--pc-text-light); line-height: 1.35; margin-top: 2px; }
.tk-scheme-legend button[aria-pressed="true"], .tk-scheme-legend button:hover { box-shadow: var(--pc-shadow); background: #FAFCFE; }

/* ---------- Таблицы ---------- */
.tk-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 20px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); background: #fff; }
.tk-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 100%; }
.tk-table th, .tk-table td { padding: 10px 14px; border-bottom: 1px solid #EDEFF2; text-align: left; vertical-align: top; }
.tk-table thead th { background: #F3F6F9; font-size: 13.5px; font-weight: 700; color: var(--pc-dark); white-space: nowrap; }
.tk-table tbody tr:last-child > * { border-bottom: 0; }
.tk-table tbody th { font-weight: 600; color: var(--pc-dark); }
.tk-table tbody tr:hover { background: #FAFCFE; }

/* ---------- Темы, карточки, плашки ---------- */
.tk-group { margin-bottom: 28px; }
.tk-group-title { font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--pc-text-light); margin: 0 0 12px; }
.tk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tk-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg); color: var(--pc-text); transition: border-color .2s, box-shadow .2s, transform .2s; min-height: 132px;
}
.tk-card:hover { border-color: var(--pc-cyan); box-shadow: var(--pc-shadow); transform: translateY(-2px); color: var(--pc-text); }
.tk-card > .bi { font-size: 26px; color: var(--pc-cyan); line-height: 1; margin-bottom: 4px; }
.tk-card b { font-size: 17px; color: var(--pc-dark); line-height: 1.25; }
.tk-card span { font-size: 14px; color: var(--pc-text-light); line-height: 1.4; }
.tk-card--sm { min-height: 0; padding: 16px; }
.tk-card--accent { background: var(--pc-dark); border-color: var(--pc-dark); }
.tk-card--accent b { color: #fff; } .tk-card--accent span { color: rgba(255, 255, 255, .7); } .tk-card--accent > .bi { color: var(--pc-cta); }
.tk-plates { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-top: 12px; }
.tk-plate {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 56px 24px 24px; border-radius: var(--pc-radius-lg);
  background: #fff; border: 1px solid var(--pc-border); color: var(--pc-text); transition: box-shadow .2s;
}
.tk-plate:hover { box-shadow: var(--pc-shadow-lg); color: var(--pc-text); }
.tk-plate b { font-size: 20px; color: var(--pc-dark); line-height: 1.25; }
.tk-plate > span:not(.section-eyebrow) { font-size: 14.5px; color: var(--pc-text-light); }
.tk-plate .section-eyebrow { margin: 0; }
.tk-plate > .bi { position: absolute; right: 22px; top: 22px; font-size: 22px; color: var(--pc-cta); }
.tk-plate--dark { background: linear-gradient(135deg, var(--pc-dark), #15335f); border-color: transparent; }
.tk-plate--dark b { color: #fff; } .tk-plate--dark > span:not(.section-eyebrow) { color: rgba(255, 255, 255, .75); }

/* ---------- Чек-лист ---------- */
.tk-check-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.tk-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tk-check label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); cursor: pointer; transition: border-color .2s, background .2s; font-size: 15.5px; line-height: 1.45; }
.tk-check input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--pc-cta); }
.tk-check label:has(input:checked) { border-color: #9ED7B5; background: #F3FBF6; }
.tk-check label:has(input:checked) span { color: var(--pc-text-light); text-decoration: line-through; text-decoration-color: rgba(31, 157, 85, .5); }
.tk-check-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.tk-check-progress span { flex: 1 1 auto; height: 8px; border-radius: 99px; background: #E4E8EE; overflow: hidden; position: relative; }
.tk-check-progress span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, var(--pc-cyan), #1F9D55); transition: width .25s; }
.tk-check-progress b { font-size: 14px; white-space: nowrap; }

/* ---------- Раскладка темы: навигация + текст ---------- */
.tk-main { padding-top: 48px; }
.tk-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 48px; align-items: start; }
.tk-aside { position: sticky; top: calc(var(--pc-sticky-top, 90px) + 16px); max-height: calc(100vh - var(--pc-sticky-top, 90px) - 32px); overflow: auto; }
.tk-nav-box > summary { display: none; }
.tk-nav-hub { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 8px 10px; margin-bottom: 10px; border-radius: var(--pc-radius); background: #F3F6F9; color: var(--pc-dark); }
.tk-nav-group { margin-bottom: 14px; }
.tk-nav-label { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--pc-text-light); padding: 0 10px; margin-bottom: 4px; }
.tk-nav ul { list-style: none; padding: 0; margin: 0; }
.tk-nav li a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--pc-radius-sm); font-size: 14.5px; color: var(--pc-text); line-height: 1.3; border-left: 3px solid transparent; }
.tk-nav li a .bi { color: var(--pc-text-light); font-size: 15px; flex: 0 0 auto; }
.tk-nav li a:hover { background: #F3F6F9; color: var(--pc-dark); }
.tk-nav li a[aria-current="page"], .tk-nav li a.is-active { background: #FFF3EB; color: var(--pc-dark); font-weight: 700; border-left-color: var(--pc-cta); }
.tk-nav li a[aria-current="page"] .bi, .tk-nav li a.is-active .bi { color: var(--pc-cta); }

.tk-body { min-width: 0; max-width: 860px; }
.tk-toc { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 12px 14px; background: #F7F9FB; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); margin-bottom: 28px; font-size: 14px; }
.tk-toc > span { color: var(--pc-text-light); font-weight: 600; margin-right: 4px; }
.tk-toc a { padding: 3px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--pc-border); color: var(--pc-dark); }
.tk-toc a:hover { border-color: var(--pc-cyan); }

/* Текст темы и гайда */
.tk-prose { font-size: 17px; line-height: 1.7; color: var(--pc-text); }
.tk-prose > :first-child { margin-top: 0; }
.tk-prose h2 { font-size: 28px; line-height: 1.25; margin: 48px 0 16px; padding-top: 4px; scroll-margin-top: calc(var(--pc-sticky-top, 90px) + 16px); }
.tk-prose h3 { font-size: 21px; margin: 32px 0 12px; scroll-margin-top: calc(var(--pc-sticky-top, 90px) + 16px); }
.tk-prose h4 { font-size: 18px; margin: 24px 0 10px; }
.tk-prose h2::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; margin-bottom: 14px; background: linear-gradient(90deg, var(--pc-cyan) 0 33%, var(--pc-magenta) 33% 66%, var(--pc-yellow) 66%); }
.tk-prose p, .tk-prose ul, .tk-prose ol { margin-bottom: 16px; }
.tk-prose ul, .tk-prose ol { padding-left: 24px; }
.tk-prose li { margin-bottom: 6px; }
.tk-prose li::marker { color: var(--pc-cta); }
.tk-prose strong { color: var(--pc-dark); }
.tk-prose a { text-decoration: underline; text-decoration-color: rgba(0, 119, 179, .35); text-underline-offset: 3px; }
.tk-prose a:hover { text-decoration-color: currentColor; }
.tk-prose code { background: #F3F6F9; padding: 1px 6px; border-radius: 4px; font-size: .9em; color: var(--pc-dark); }
.tk-anchor { margin-left: 8px; font-weight: 400; color: #B8C2CE; text-decoration: none !important; opacity: 0; transition: opacity .2s; font-size: .8em; }
.tk-prose h2:hover .tk-anchor, .tk-prose h3:hover .tk-anchor, .tk-anchor:focus-visible { opacity: 1; }
.tk-anchor.is-copied::after { content: " ссылка скопирована"; font-size: 13px; color: #1F9D55; }

/* Врезки */
.tk-note { position: relative; margin: 24px 0; padding: 16px 20px 16px 52px; border-radius: var(--pc-radius); background: #EEF7FC; border: 1px solid #CDE8F6; font-size: 16px; }
.tk-note::before { position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--pc-cyan); color: #fff; font-weight: 700; font-size: 14px; line-height: 22px; text-align: center; content: "i"; font-family: Georgia, serif; }
.tk-note p:last-child { margin-bottom: 0; }
.tk-note--warn { background: #FFF5EC; border-color: #FFD9BD; } .tk-note--warn::before { content: "!"; background: var(--pc-cta); font-family: inherit; }
.tk-note--tip { background: #F2FAF5; border-color: #C8EBD6; } .tk-note--tip::before { content: "✓"; background: #1F9D55; font-family: inherit; }
.tk-note--short { background: var(--pc-dark); border-color: var(--pc-dark); color: rgba(255, 255, 255, .85); }
.tk-note--short::before { content: "→"; background: var(--pc-cta); font-family: inherit; }
.tk-note--short strong { color: #fff; } .tk-note--short a { color: #8BD3F5; }

/* Картинки и схемы */
.tk-fig { margin: 24px 0; }
.tk-fig a { display: block; border-radius: var(--pc-radius); overflow: hidden; background: #F3F6F9; border: 1px solid var(--pc-border); cursor: zoom-in; }
.tk-fig img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.tk-fig--scheme a { border: 0; background: transparent; }
.tk-fig--scheme img { width: 100%; }
.tk-fig figcaption { font-size: 14px; color: var(--pc-text-light); margin-top: 8px; line-height: 1.45; }
.tk-fig figcaption b { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 2px 8px; border-radius: 4px; margin-right: 6px; }
.tk-fig.is-ok a { border-color: #9ED7B5; box-shadow: inset 0 0 0 1px #9ED7B5; } .tk-fig.is-ok figcaption b { background: #E3F5EA; color: #157443; }
.tk-fig.is-bad a { border-color: #F3B4B4; box-shadow: inset 0 0 0 1px #F3B4B4; } .tk-fig.is-bad figcaption b { background: #FDE8E8; color: #B42318; }
.tk-figs { display: grid; gap: 16px; margin: 24px 0; align-items: start; }
.tk-figs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-figs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-figs .tk-fig { margin: 0; }

/* FAQ, «Где пригодится», «Смотрите также», переход */
.tk-faq { margin-top: 48px; }
.tk-faq h2 { font-size: 28px; margin-bottom: 16px; }
.tk-faq details { border: 1px solid var(--pc-border); border-radius: var(--pc-radius); background: #fff; margin-bottom: 10px; }
.tk-faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 700; color: var(--pc-dark); list-style: none; position: relative; font-size: 16.5px; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--pc-cta); font-weight: 400; }
.tk-faq details[open] summary::after { content: "−"; }
.tk-faq details p { padding: 0 18px 16px; margin: 0; color: var(--pc-text); line-height: 1.6; }
.tk-where, .tk-more { margin-top: 40px; }
.tk-where h2, .tk-more h2 { font-size: 22px; margin-bottom: 14px; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: #F3F6F9; color: var(--pc-dark); font-size: 15px; font-weight: 600; }
.tk-chips a:hover { background: #FFF3EB; color: var(--pc-dark); }
.tk-chips .bi { color: var(--pc-cta); }
.tk-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tk-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--pc-border); }
.tk-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--pc-radius); border: 1px solid var(--pc-border); color: var(--pc-dark); }
.tk-pager a:hover { border-color: var(--pc-cyan); }
.tk-pager span { font-size: 13px; color: var(--pc-text-light); } .tk-pager b { font-size: 16px; }
.tk-pager-next { text-align: right; grid-column: 2; }

/* ---------- Форма проверки макета ---------- */
.tk-form-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.tk-form-lead { color: rgba(255, 255, 255, .75); font-size: 17px; }
.tk-form-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.tk-form-points li { display: flex; gap: 12px; color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.45; }
.tk-form-points li .bi { color: var(--pc-cta); font-size: 18px; flex: 0 0 auto; }
.tk-form-points li > span { flex: 1 1 auto; min-width: 0; }
.tk-form-points small { display: block; color: rgba(255, 255, 255, .55); font-size: 13px; }
.tk-form-points a { color: #8BD3F5; }

/* ---------- Шаблоны ---------- */
.tk-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.tk-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #F7F9FB; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); }
.tk-steps .bi { font-size: 24px; color: var(--pc-cyan); }
.tk-steps b { font-size: 16.5px; color: var(--pc-dark); }
.tk-steps span:not(.tk-step-n) { font-size: 14.5px; color: var(--pc-text-light); line-height: 1.45; }
.tk-step-n { position: absolute; right: 16px; top: 12px; font-size: 32px; font-weight: 700; color: rgba(10, 22, 40, .08); }
.tk-tpl-group { margin-bottom: 44px; scroll-margin-top: calc(var(--pc-sticky-top, 90px) + 16px); }
.tk-tpl-group h2 { font-size: 24px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; }
.tk-tpl-group h2 small { font-size: 14px; color: var(--pc-text-light); font-weight: 600; }
.tk-tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tk-tpl { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); overflow: hidden; transition: box-shadow .2s; }
.tk-tpl:hover { box-shadow: var(--pc-shadow-lg); }
.tk-tpl-img { display: flex; align-items: center; justify-content: center; height: 200px; padding: 14px; background: repeating-linear-gradient(45deg, #F7F9FB 0 10px, #F1F4F7 10px 20px); border-bottom: 1px solid var(--pc-border); cursor: zoom-in; }
.tk-tpl-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 2px 10px rgba(10, 22, 40, .12); background: #fff; }
.tk-tpl-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1 1 auto; }
.tk-tpl h3 { font-size: 16.5px; margin: 0; line-height: 1.3; }
.tk-tpl h3 span { color: var(--pc-text-light); font-weight: 600; white-space: nowrap; }
.tk-tpl dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 13.5px; }
.tk-tpl dt { color: var(--pc-text-light); font-weight: 400; } .tk-tpl dd { margin: 0; color: var(--pc-dark); font-weight: 600; }
.tk-tpl-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.tk-tpl-dl a { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: var(--pc-radius); border: 1px solid var(--pc-border); font-weight: 700; font-size: 14px; color: var(--pc-dark); text-align: center; line-height: 1.2; }
.tk-tpl-dl a .bi { color: var(--pc-cta); }
.tk-tpl-dl a small { font-weight: 400; font-size: 11.5px; color: var(--pc-text-light); }
.tk-tpl-dl a:hover { border-color: var(--pc-cta); background: #FFF8F3; }
.tk-tpl-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; font-weight: 600; }

/* ---------- Форматы бумаги ---------- */
.tk-fmt-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.tk-fmt-scheme { background: #fff; border-radius: var(--pc-radius-lg); padding: 16px; box-shadow: var(--pc-shadow); }
.tk-fmt-scheme svg { display: block; width: 100%; height: auto; }
.tk-fmt-r rect { fill: color-mix(in srgb, var(--c) 7%, #fff); stroke: var(--pc-dark); stroke-width: 1.2; transition: fill .15s; cursor: pointer; }
.tk-fmt-r text { fill: var(--pc-dark); text-anchor: middle; font-weight: 700; font-family: DINPro, system-ui, sans-serif; pointer-events: none; }
.tk-fmt-r .tk-fmt-mm { font-weight: 400; fill: var(--pc-text-light); }
.tk-fmt-r.is-on rect { fill: color-mix(in srgb, var(--c) 30%, #fff); }
.tk-fmt-out { margin: 12px 4px 0; font-size: 15px; color: var(--pc-text); min-height: 1.5em; }
.tk-fmt-table tr { cursor: default; }
.tk-fmt-table tr.is-on { background: #FFF3EB; }
.tk-uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tk-use { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); }
.tk-use b { font-size: 17px; color: var(--pc-dark); }
.tk-use > span { font-size: 14.5px; color: var(--pc-text-light); line-height: 1.45; }
.tk-use div { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; font-size: 14px; font-weight: 600; }
.tk-fmt-bc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.tk-fmt-bc h2 { font-size: 26px; }

/* ---------- Лайтбокс ---------- */
.tk-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 22, 40, .92); display: flex; align-items: center; justify-content: center; padding: 48px 16px 64px; }
.tk-lightbox[hidden] { display: none; }
.tk-lightbox img { max-width: min(1200px, 100%); max-height: 100%; object-fit: contain; background: #fff; border-radius: 6px; }
.tk-lightbox figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; color: rgba(255, 255, 255, .85); font-size: 14px; }
.tk-lightbox button { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- Адаптив ---------- */
@media (max-width: 1199.98px) {
  .tk-cards, .tk-tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tk-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 991.98px) {
  .tk-hero-grid, .tk-scheme-grid, .tk-check-grid, .tk-form-grid, .tk-fmt-grid, .tk-fmt-bc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tk-rules { grid-template-columns: minmax(0, 1fr); }
  .tk-plates { grid-template-columns: minmax(0, 1fr); }
  .tk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tk-aside { position: sticky; top: var(--pc-sticky-top, 64px); z-index: 20; max-height: none; overflow: visible; margin: 0 -12px 20px; }
  .tk-nav-box { background: #fff; border-bottom: 1px solid var(--pc-border); box-shadow: 0 6px 12px -10px rgba(10, 22, 40, .3); }
  .tk-nav-box > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; font-weight: 700; color: var(--pc-dark); cursor: pointer; list-style: none; }
  .tk-nav-box > summary::-webkit-details-marker { display: none; }
  .tk-nav-box > summary .bi-list-ul { color: var(--pc-cta); margin-right: 6px; }
  .tk-nav-box[open] > summary .bi-chevron-down { transform: rotate(180deg); }
  .tk-nav-box:not([open]) > :not(summary) { display: none; }
  .tk-nav-box[open] { max-height: 70vh; overflow: auto; padding-bottom: 8px; }
  .tk-nav-box[open] > :not(summary) { margin-left: 8px; margin-right: 8px; }
}
@media (max-width: 767.98px) {
  .tk-tpls, .tk-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tk-card { min-height: 0; padding: 14px; } .tk-card b { font-size: 15.5px; } .tk-card span { font-size: 13px; }
  .tk-fig--scheme a { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tk-fig--scheme img { width: 600px; max-width: none; }
  .tk-jump { flex-wrap: nowrap; overflow-x: auto; margin-right: -12px; padding-bottom: 4px; }
  .tk-jump a { white-space: nowrap; }
  .tk-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tk-stats--3 .tk-stat { grid-column: auto; padding: 10px; } .tk-stats--3 .tk-stat b { font-size: 20px; }
  .tk-stats { gap: 8px; } .tk-stat { padding: 10px 12px; } .tk-stat b { font-size: 21px; }
  .tk-scheme-legend { grid-template-columns: minmax(0, 1fr); }
  .tk-prose { font-size: 16px; }
  .tk-prose h2, .tk-faq h2 { font-size: 23px; margin-top: 36px; }
  .tk-prose h3 { font-size: 19px; }
  .tk-figs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-hero .lead { font-size: 16.5px; }
  .tk-tpl-img { height: 160px; }
}
@media (max-width: 575.98px) {
  .tk-tpls, .tk-more-grid, .tk-uses, .tk-steps { grid-template-columns: minmax(0, 1fr); }
  .tk-rule { gap: 12px; padding: 16px; }
  .tk-ricon { flex-basis: 44px; width: 44px; height: 33px; }
  .tk-rule h3 { font-size: 16.5px; }
  .tk-lead-more { display: none; }
  .tk-figs--2, .tk-figs--3 { grid-template-columns: minmax(0, 1fr); }
  .tk-pager { grid-template-columns: minmax(0, 1fr); } .tk-pager-next { grid-column: 1; }
  .tk-table table { font-size: 14px; } .tk-table th, .tk-table td { padding: 8px 10px; }
  .tk-hero-actions .btn { width: 100%; }
  .tk-crop { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tk-card, .tk-card:hover { transition: none; transform: none; } }
