/* Страницы инструментов (PDF редактор, текст с картинки): шапка, блоки, вопросы */
.tl-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.tl-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.tl-hero h1::after { content: ""; display: block; width: min(13rem, 60%); height: 14px; margin-top: 1.2rem; background: var(--red); -webkit-mask: var(--band) left center / 16px 14px repeat-x; mask: var(--band) left center / 16px 14px repeat-x; }
.tl-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); white-space: nowrap; }
.tl-hero .lead { margin-top: 1.3rem; color: var(--text); opacity: 0.86; max-width: 34em; }
.tl-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.55rem; }
.tl-points li { display: flex; gap: 0.65rem; align-items: baseline; }
.tl-points li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg) translateY(-1px); }

.tl-drop { position: relative; display: grid; place-items: center; text-align: center; gap: 0.9rem; padding: clamp(2rem, 5vw, 3.2rem) 1.5rem; background: var(--surface); border: 2px dashed color-mix(in srgb, var(--red) 55%, var(--line)); transition: background .15s, border-color .15s; }
.tl-drop.on { background: color-mix(in srgb, var(--red) 8%, var(--surface)); border-color: var(--red); }
.tl-drop svg { width: 64px; height: 64px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tl-drop .btn { position: relative; }
.tl-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tl-drop label.btn:focus-within { outline: 3px solid var(--red-text); outline-offset: 3px; }
.tl-drop-or { color: var(--dim); font-size: 0.95rem; margin: 0; }
.tl-drop-note { display: flex; gap: 0.5rem; align-items: center; justify-content: center; margin: 0.3rem 0 0; color: var(--dim); font-size: 0.9rem; }
.tl-drop-note svg { width: 18px; height: 18px; stroke-width: 2; }
.tl-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tl-nojs { margin: 0; color: var(--dim); font-size: 0.9rem; }
.tl-ready .tl-nojs { display: none; }

.tl-section { padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.tl-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 1.8rem; }
.tl-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tl-feat { background: var(--surface); padding: 1.4rem 1.3rem; }
.tl-feat svg { width: 30px; height: 30px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tl-feat h3 { font-size: 1.12rem; margin: 0.8rem 0 0.4rem; }
.tl-feat p { margin: 0; color: var(--dim); font-size: 0.97rem; }
.tl-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.tl-steps li { counter-increment: s; padding-top: 0.2rem; }
.tl-steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 0.8rem; background: var(--red); color: var(--on-red); font: 700 1.1rem var(--display); }
.tl-steps b { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 0.3rem; }
.tl-steps p { margin: 0; color: var(--dim); }
.tl-seo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem clamp(2rem, 5vw, 4rem); }
.tl-seo h2 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin: 0 0 0.6rem; }
.tl-seo p { margin: 0; color: var(--dim); }
@media (max-width: 860px) { .tl-seo { grid-template-columns: 1fr; gap: 1.6rem; } }
.tl-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); align-items: start; border-bottom: 1px solid var(--line); }
.tl-faq details { border-top: 1px solid var(--line); padding: 1.05rem 0; }
.tl-faq summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; }
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: -0.1rem; background: var(--red); color: var(--on-red); font: 700 1.1rem/1 var(--display); transition: transform .2s; }
.tl-faq details[open] summary::after { transform: rotate(45deg); }
.tl-faq details p { margin: 0.7rem 0 0; padding-right: 2.6rem; color: var(--dim); max-width: 75ch; }
@media (max-width: 860px) { .tl-faq-list { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .tl-hero-in { grid-template-columns: 1fr; gap: 1.6rem; }
  .tl-hero-in > div:first-child { display: contents; }
  .tl-drop { order: 2; }
  .tl-points { order: 3; margin-top: 0; }
}


/* шапка без колонки с файлом (список инструментов) */
.tl-hero-short .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.tl-hero-short .lead { max-width: 46ch; }
/* карточки инструментов */
.tl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.tl-card { display: grid; align-content: start; gap: 0.5rem; padding: 1.5rem 1.4rem; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.tl-card:hover { border-color: var(--red); transform: translateY(-2px); }
.tl-card:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }
.tl-card svg { width: 38px; height: 38px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tl-card-t { font: 700 1.25rem var(--display); margin-top: 0.3rem; }
.tl-card-d { color: var(--dim); font-size: 0.97rem; }
.tl-card-go { margin-top: 0.4rem; color: var(--red-text); font-weight: 600; font-size: 0.95rem; }
.tl-card-go::after { content: " →"; }

/* шесть карточек: три колонки, без пустых ячеек */
.tl-feats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tl-feats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tl-feats-3 { grid-template-columns: 1fr; } }
