/* UniSeek v3 — «Инструменты» (/tools/, templates/v3/site/tools.html). Группы и карточки — общие include
   site/tools/_hub_groups.html и _card.html (классы tl-group, tl-cards, tl-card), здесь только их вид в v3. */
.to3 .tl-group{display:flex;align-items:center;gap:12px;margin:40px 0 16px;font-size:22px;line-height:1.2;font-weight:800;letter-spacing:-.01em;color:var(--v3-ink);scroll-margin-top:130px}
.to3 .tl-group::after{content:"";flex:1;height:1px;background:var(--v3-line)}
.to3 .v3-head+.tl-group{margin-top:8px}
.to3 .tl-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.to3 .tl-card{position:relative;display:flex;flex-direction:column;padding:18px 18px 16px;border:1px solid #EEEDFB;border-radius:var(--v3-r);background:#fff;box-shadow:0 8px 24px -20px rgba(39,34,120,.35);color:var(--v3-text);transition:transform .5s var(--v3-ease),box-shadow .5s var(--v3-ease),border-color .3s}
.to3 .tl-card:hover{transform:translateY(-4px);box-shadow:var(--v3-sh-h);border-color:var(--v3-lav-3)}
.to3 .tl-card i{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:12px;border-radius:11px;background:var(--v3-lav-2);color:var(--v3-accent);font-style:normal}
.to3 .tl-card i svg{width:22px;height:22px;stroke-width:1.9}
.to3 .tl-card b{font-size:16px;line-height:1.3;font-weight:700;color:var(--v3-ink)}
.to3 .tl-card:hover b{color:var(--v3-accent)}
.to3 .tl-card span{margin-top:6px;font-size:13.5px;line-height:1.5;color:var(--v3-text);flex:1}
.to3 .tl-card em{margin-top:12px;font-style:normal;font-size:14px;font-weight:600;color:var(--v3-accent)}
.to3-more{margin-top:32px}

/* иллюстрация первого экрана 600×340 (1em = 10px) */
.to-win{left:5em;top:3em;width:36em;padding-bottom:1.4em;transform:rotate(-2deg)}
.to-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1em;padding:1.3em 1.3em 0}
.to-tile{display:flex;flex-direction:column;align-items:flex-start;gap:.8em;padding:1.1em;border-radius:.8em;background:#F6F5FF}
.to-tile i{display:flex;align-items:center;justify-content:center;width:3.4em;height:3.4em;border-radius:.8em;background:#fff;color:var(--v3-accent);box-shadow:0 .4em 1em -.5em rgba(39,34,120,.4)}
.to-tile svg{width:1.9em;height:1.9em;stroke-width:2}
.to-tile .ill-t{font-size:1.15em;font-weight:600}
.to-res{left:36em;top:23.6em;display:flex;align-items:center;gap:1.2em;padding:1.2em 1.4em;transform:rotate(-2deg)}
.to-score{display:flex;align-items:center;justify-content:center;width:5.6em;height:5.6em;border-radius:50%;background:conic-gradient(var(--v3-mint) 0 92%,#E7E5F7 92%);-webkit-mask:radial-gradient(circle,#000 0 0);position:relative}
.to-score::before{content:"";position:absolute;inset:.6em;border-radius:50%;background:#fff}
.to-score .ill-t{position:relative;font-size:1.8em;font-weight:800}
.to-res-l{display:flex;flex-direction:column;gap:.6em}
.to-res-l>.ill-t{font-size:1.2em;font-weight:700}
.to-res-l .ill-ck .ill-t{font-size:1.05em;font-weight:500}
.to-photo{left:41em;top:1.5em;width:13em;padding:.7em;transform:rotate(4deg)}
.to-tag{display:block;margin-top:.6em;text-align:center}
.to-tag .ill-t{font-size:1em;font-weight:600;color:#12A57E}

@media (max-width:1100px){.to3 .tl-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:860px){.to3 .tl-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:540px){
  .to3 .tl-cards{grid-template-columns:1fr;gap:10px}
  .to3 .tl-card{display:grid;grid-template-columns:40px 1fr;column-gap:14px;padding:14px}
  .to3 .tl-card i{grid-row:span 3;width:40px;height:40px;margin:0}
  .to3 .tl-card em{margin-top:6px}
  .to3 .tl-group{font-size:19px;margin-top:30px}
}
@media (hover:none){.to3 .tl-card:hover{transform:none}}

/* Компактный каталог (21.10): группа = блок с иконкой у названия, инструменты — списком без иконок и описаний.
   Обёртки .tl-hub/.tl-cat — в _hub_groups.html; _card.html не трогаем (он же — «другие инструменты» на страницах). */
.to3 .tl-hub{columns:3 300px;column-gap:16px}
.to3 .tl-hub .tl-cat{break-inside:avoid;display:inline-block;width:100%;margin:0 0 16px;padding:20px 22px 14px;border:1px solid var(--v3-line);border-radius:var(--v3-r);background:#fff;box-shadow:0 8px 24px -20px rgba(40,40,45,.35)}
.to3 .tl-hub .tl-cat .tl-group{margin:0 0 8px;font-size:18px;gap:12px;scroll-margin-top:130px}
.to3 .tl-hub .tl-cat .tl-group::after{display:none}
.to3 .tl-hub .tl-gi{display:inline-flex;flex:none;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:var(--v3-lav-2);color:var(--v3-accent);font-style:normal}
.to3 .tl-hub .tl-gi svg{width:20px;height:20px;stroke-width:1.9}
.to3 .tl-hub .tl-cat .tl-cards{display:block}
.to3 .tl-hub .tl-cat .tl-card{display:flex;flex-direction:row;align-items:center;gap:8px;padding:8px 0;border:0;border-top:1px solid var(--v3-line);border-radius:0;background:none;box-shadow:none;transform:none}
.to3 .tl-hub .tl-cat .tl-card:first-child{border-top:0}
.to3 .tl-hub .tl-cat .tl-card i,.to3 .tl-hub .tl-cat .tl-card span,.to3 .tl-hub .tl-cat .tl-card em{display:none}
.to3 .tl-hub .tl-cat .tl-card b{flex:1;font-size:15px;line-height:1.35;font-weight:500;color:var(--v3-ink);transition:color .2s}
.to3 .tl-hub .tl-cat .tl-card::after{content:"→";color:var(--v3-accent);opacity:0;transform:translateX(-4px);transition:opacity .2s,transform .2s}
.to3 .tl-hub .tl-cat .tl-card:hover b{color:var(--v3-accent)}
.to3 .tl-hub .tl-cat .tl-card:hover::after{opacity:1;transform:none}
@media (max-width:540px){.to3 .tl-hub .tl-cat{padding:16px 16px 10px}.to3 .tl-hub .tl-cat .tl-card{padding:9px 0}}

/* Каталог /tools/ (вариант compact-3, выбран 21.10): раздел — карточка как «Наши решения» на главной (.h3-sol):
   слева заголовок, описание и ссылки со стрелкой, справа иллюстрация site/tools/_hub_ill.html */
.to3 .tl-hub.tl-hub--sol{columns:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.to3 .tl-hub.tl-hub--sol .tl-cat{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:8px;margin:0;padding:32px 24px 26px 28px;border:0;border-radius:var(--v3-r-lg);background:var(--v4-sand-2,#F8F6F2);box-shadow:none}
.to3 .tl-hub.tl-hub--sol .tl-cat .tl-group{grid-column:1;margin:0;font-size:clamp(24px,2.3vw,32px);line-height:1.1;font-weight:700;letter-spacing:-.02em}
.to3 .tl-hub.tl-hub--sol .tl-gi{display:none}
.to3 .tl-hub.tl-hub--sol .tl-cat-d{grid-column:1;margin-top:10px;font-size:15px;line-height:1.5;color:var(--v3-text)}
.to3 .tl-hub.tl-hub--sol .tl-cat .tl-cards{grid-column:1;margin-top:16px}
.to3 .tl-hub.tl-hub--sol .tl-cat .tl-card{gap:10px;padding:10px 0;border-top:1px solid var(--v3-line);color:var(--v4-link,var(--v3-accent))}
.to3 .tl-hub.tl-hub--sol .tl-cat .tl-card:first-child{border-top:0}
.to3 .tl-hub.tl-hub--sol .tl-cat .tl-card b{flex:none;font-weight:400;color:inherit}
.to3 .tl-hub.tl-hub--sol .tl-cat .tl-card::after{content:"";width:18px;height:18px;opacity:1;transform:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .3s var(--v3-ease)}
.to3 .tl-hub.tl-hub--sol .tl-cat .tl-card:hover{color:var(--v3-accent-h)}
.to3 .tl-hub.tl-hub--sol .tl-cat .tl-card:hover b{color:inherit}
.to3 .tl-hub.tl-hub--sol .tl-cat .tl-card:hover::after{transform:translateX(4px)}
.to3 .tl-hub.tl-hub--sol .tl-cat-art{grid-column:2;grid-row:1/span 3;align-self:start;margin:56px -6px 0 0;min-width:0}
/* иллюстрация: окно сзади + карточка с галочками спереди (геометрия как .v-back/.v-card на главной) */
.ti-back{left:13em;top:1em;width:15.5em;height:21em;padding:1.2em;transform:rotate(4deg)}
.ti-back .ill-p{width:100%;margin-bottom:.8em}
.ti-vis{position:static!important;display:flex;align-items:center;justify-content:center;width:100%;height:10em;margin-bottom:.8em;border-radius:.7em;background:#F7F3EE;color:var(--v3-accent)}
.ti-vis svg{width:4.4em;height:4.4em;stroke-width:1.6}
.ti-score.to-score{position:static!important;width:9em;height:9em;margin:.4em auto 1em}
.ti-score.to-score::before{inset:.9em}
.ti-score .ill-t{font-size:2.6em}
.ti-card{left:2em;top:3em;width:17.5em;padding:1.3em 1.3em 1.4em;display:flex;flex-direction:column;gap:.85em;transform:rotate(-3deg)}
.ti-cap{font-size:1.35em;font-weight:800;margin-bottom:.2em}
.ti-card .ill-ck .ill-t{font-size:1.05em;font-weight:500}
.ti-row{display:flex;justify-content:space-between;gap:1em}
.ti-row .ill-t{font-size:1.05em;font-weight:500}
.ti-row--sum{padding-top:.7em;border-top:1px solid #ECE9E5}
.ti-row--sum .ill-t{font-weight:800}
.to3 .tl-hub.tl-hub--sol.is-masonry{grid-auto-rows:1px;row-gap:0} /* раскладка «кирпичиками» — скрипт в v3/site/tools.html */
@media (max-width:1180px){.to3 .tl-hub.tl-hub--sol{grid-template-columns:1fr}}
@media (max-width:640px){
  .to3 .tl-hub.tl-hub--sol .tl-cat{grid-template-columns:1fr;padding:22px 18px}
  .to3 .tl-hub.tl-hub--sol .tl-cat-art{display:none}
}

.to3 .tl-group,.to3 .tl-hub .tl-cat .tl-group{scroll-margin-top:180px}

/* 22.10.2026: плашки «подпись + значение» в первом экране вместо кнопок — как .cvp-meta / .pdfhub-meta на /tools/pdf/ (копия из tools-convert.css) */
.cvp-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.cvp-meta div{padding:10px 16px 11px;border:1px solid var(--v3-line,#E6E2DE);border-radius:12px;background:#fff;box-shadow:0 6px 18px -14px rgba(40,40,45,.35)}
.cvp-meta span{display:block;margin-bottom:4px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--v3-accent,#F25A1C)}
.cvp-meta b{display:block;font-size:15px;font-weight:700;line-height:1.3;color:var(--v3-ink,#19191C)}
@media(max-width:560px){.cvp-meta div{flex:1 1 100%}}
