/* ТЕКСТОСКОП · Surgical Pass v2 */
html{scroll-behavior:smooth}
body{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4{ text-wrap:balance; }
p,li,td,th,summary{ text-wrap:pretty; }
a,button,input,textarea{font-kerning:normal}

/* Общая аккуратность для страниц сервиса */
.wrap,.container,main,section{min-width:0}
.grid,.related,.steps,.hubgrid,.moneySeoGrid,.publicCasesGrid,.knowledgeHubGrid{min-width:0}
.grid > *,.related > *,.steps > *,.hubgrid > *,.moneySeoGrid > *,.publicCasesGrid > *,.knowledgeHubGrid > *{min-width:0}
.card p,.caseLink span,.hubcard span,.moneySeoCard span,.publicCase p,.knowledgeHubCard span{line-height:1.52}
.faq summary{line-height:1.28}

/* Главная: новый единый sticky desktop-header */
#tekSurgicalHeader{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  background:rgba(248,245,238,.96);
  border-bottom:1px solid #d8d0c5;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:box-shadow .18s ease,background .18s ease;
}
#tekSurgicalHeader.is-scrolled{
  background:rgba(248,245,238,.99);
  box-shadow:0 8px 24px rgba(45,38,32,.08);
}
#tekSurgicalHeader .tek-inner{
  width:min(1360px,calc(100% - 48px));
  min-height:72px;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:30px;
}
#tekSurgicalHeader .tek-brand{
  display:flex;align-items:center;gap:13px;min-width:0;
  color:#22211f;text-decoration:none;
}
#tekSurgicalHeader .tek-wordmark{
  font-family:Arial,"Helvetica Neue",sans-serif;
  font-size:17px;line-height:1;font-weight:800;
  letter-spacing:.075em;white-space:nowrap;
}
#tekSurgicalHeader .tek-wordmark b{color:#7b2831}
#tekSurgicalHeader .tek-descriptor{
  padding-left:13px;border-left:1px solid #d8d0c5;
  font-family:Arial,"Helvetica Neue",sans-serif;
  font-size:9px;line-height:1.18;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;color:#77716a;
  white-space:nowrap;
}
#tekSurgicalHeader .tek-nav{
  display:flex;align-items:center;justify-content:center;
  gap:24px;min-width:0;
}
#tekSurgicalHeader .tek-nav a{
  font-family:Arial,"Helvetica Neue",sans-serif;
  font-size:12px;line-height:1;font-weight:500;
  color:#55514c;text-decoration:none;white-space:nowrap;
}
#tekSurgicalHeader .tek-nav a:hover{color:#7b2831}
#tekSurgicalHeader .tek-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:10px;
}
#tekSurgicalHeader .tek-tg{
  width:38px;height:38px;min-width:38px;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0;border:0;border-radius:50%;
  background:#229ED9;color:#fff;text-decoration:none;
  transition:transform .15s ease,opacity .15s ease;
}
#tekSurgicalHeader .tek-tg:hover{transform:translateY(-1px);opacity:.9}
#tekSurgicalHeader .tek-tg svg{width:19px;height:19px;display:block;fill:#fff;margin-left:-1px}
#tekSurgicalHeader .tek-primary{
  min-height:40px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 16px;border:1px solid #7b2831;background:#7b2831;color:#fff;
  text-decoration:none;font:700 11.5px/1 Arial,"Helvetica Neue",sans-serif;
  white-space:nowrap;cursor:pointer;
}
#tekSurgicalHeader .tek-primary:hover{background:#672128;border-color:#672128}
@media(min-width:981px){
  body.tek-home header.tek-original-header{display:none!important}
}
@media(max-width:1180px) and (min-width:981px){
  #tekSurgicalHeader .tek-descriptor{display:none}
  #tekSurgicalHeader .tek-inner{width:min(1360px,calc(100% - 30px));gap:18px}
  #tekSurgicalHeader .tek-nav{gap:16px}
}
@media(max-width:980px){
  #tekSurgicalHeader{display:none!important}
}

/* Hero главной: меньше случайных переносов */
body.tek-home .tek-hero-title{
  max-width:1120px!important;
  font-size:clamp(50px,5.15vw,74px)!important;
  line-height:.98!important;
  letter-spacing:-.035em!important;
  margin-bottom:20px!important;
}
body.tek-home .tek-hero-copy{
  max-width:750px!important;
  font-size:16px!important;
  line-height:1.52!important;
}

/* Основные продуктовые блоки: плотнее и легче читать */
body.tek-home .tek-short-copy{max-width:820px!important}
body.tek-home table td,body.tek-home table th{vertical-align:top}
@media(min-width:981px){
  body.tek-home section{scroll-margin-top:88px}
}

/* SEO-хабы внизу: сохраняем SEO, но не превращаем главную в каталог */
#money-seo-hub,#public-cases,#knowledge-hub{
  margin-top:48px!important;
  padding-top:36px!important;
  padding-bottom:36px!important;
}
#money-seo-hub h2,#public-cases h2,#knowledge-hub h2{
  font-size:clamp(28px,3.2vw,42px)!important;
  line-height:1.04!important;
}
#money-seo-hub .moneySeoGrid{gap:8px!important}
#money-seo-hub .moneySeoCard{
  min-height:138px!important;padding:15px!important;
}
#money-seo-hub .moneySeoCard b{
  font-size:17px!important;margin:11px 0 6px!important;
}
#public-cases .publicCasesGrid{gap:8px!important}
#public-cases .publicCase{
  min-height:145px!important;padding:15px!important;
}
#public-cases .publicCase b{font-size:18px!important;margin:13px 0 7px!important}
#knowledge-hub .knowledgeHubGrid{gap:8px!important}
#knowledge-hub .knowledgeHubCard{padding:14px!important}
#knowledge-hub .knowledgeHubCard b{font-size:17px!important}

/* Подстраницы: унифицируем ширины и ритм без переписывания дизайна */
body:not(.tek-home) .hero{
  gap:40px!important;
}
body:not(.tek-home) .lead{
  max-width:760px;
  line-height:1.55!important;
}
body:not(.tek-home) .section{
  padding-top:46px!important;
  padding-bottom:46px!important;
}
body:not(.tek-home) .grid{
  gap:10px!important;
}
body:not(.tek-home) .card{
  padding:20px!important;
}

/* TEKSTOSKOP SEO hubs alignment fix v1
   Три поздно добавленных SEO-хаба приводим к той же ширине,
   что и основные .container-блоки главной. Контент и ссылки не меняем. */
body.tek-home #money-seo-hub,
body.tek-home #public-cases,
body.tek-home #knowledge-hub{
  box-sizing:border-box!important;
  width:min(var(--max,1240px),calc(100% - 48px))!important;
  max-width:var(--max,1240px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.tek-home #money-seo-hub .moneySeoHead,
body.tek-home #money-seo-hub .moneySeoGrid,
body.tek-home #public-cases .publicCasesHead,
body.tek-home #public-cases .publicCasesGrid,
body.tek-home #knowledge-hub .knowledgeHubHead,
body.tek-home #knowledge-hub .knowledgeHubGrid{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
body.tek-home #money-seo-hub .moneySeoHead>*,
body.tek-home #money-seo-hub .moneySeoGrid>*,
body.tek-home #public-cases .publicCasesHead>*,
body.tek-home #public-cases .publicCasesGrid>*,
body.tek-home #knowledge-hub .knowledgeHubHead>*,
body.tek-home #knowledge-hub .knowledgeHubGrid>*{
  min-width:0!important;
}
@media(max-width:620px){
  body.tek-home #money-seo-hub,
  body.tek-home #public-cases,
  body.tek-home #knowledge-hub{
    width:calc(100% - 24px)!important;
  }
}

/* TEKSTOSKOP ABOUT trust block v1 */
body.tek-home #about-trust{
  box-sizing:border-box;
  width:min(var(--max,1240px),calc(100% - 48px));
  max-width:var(--max,1240px);
  margin:58px auto 8px;
  padding:0;
  scroll-margin-top:88px;
}
body.tek-home #about-trust .tekAboutTrustInner{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:42px;
  padding:42px;
  border:1px solid #d8d0c5;
  border-top:4px solid #7b2831;
  background:rgba(255,253,248,.78);
}
body.tek-home #about-trust .tekAboutTrustIntro{min-width:0;max-width:640px}
body.tek-home #about-trust .tekAboutTrustLabel{
  margin:0 0 14px;
  font:700 10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#7b2831;
}
body.tek-home #about-trust h2{
  margin:0 0 18px;
  max-width:660px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(31px,3.45vw,47px)!important;
  line-height:1.03!important;
  font-weight:500;
  letter-spacing:-.035em;
  color:#20211f;
}
body.tek-home #about-trust .tekAboutTrustIntro p{
  margin:0;
  max-width:660px;
  font-size:15px;
  line-height:1.58;
  color:#5f5a54;
}
body.tek-home #about-trust .tekAboutTrustCta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  margin-top:24px;
  padding:0 17px;
  border:1px solid #7b2831;
  color:#7b2831;
  background:transparent;
  text-decoration:none;
  font:700 12px/1 Arial,"Helvetica Neue",sans-serif;
}
body.tek-home #about-trust .tekAboutTrustCta:hover{background:#7b2831;color:#fff}
body.tek-home #about-trust .tekAboutTrustGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  min-width:0;
}
body.tek-home #about-trust .tekAboutTrustGrid article{
  min-width:0;
  min-height:166px;
  padding:18px;
  border:1px solid #ddd5ca;
  background:#f8f5ee;
}
body.tek-home #about-trust .tekAboutTrustGrid article>span{
  display:block;
  margin-bottom:20px;
  font:700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.11em;
  color:#9a8e82;
}
body.tek-home #about-trust .tekAboutTrustGrid strong{
  display:block;
  margin-bottom:8px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:19px;
  line-height:1.12;
  font-weight:500;
  color:#272521;
}
body.tek-home #about-trust .tekAboutTrustGrid p{
  margin:0;
  font-size:12.5px;
  line-height:1.48;
  color:#6d6861;
}
@media(max-width:920px){
  body.tek-home #about-trust .tekAboutTrustInner{grid-template-columns:1fr;gap:28px;padding:30px}
  body.tek-home #about-trust .tekAboutTrustIntro{max-width:none}
}
@media(max-width:620px){
  body.tek-home #about-trust{width:calc(100% - 24px);margin-top:38px}
  body.tek-home #about-trust .tekAboutTrustInner{padding:24px 18px}
  body.tek-home #about-trust h2{font-size:34px!important}
  body.tek-home #about-trust .tekAboutTrustGrid{grid-template-columns:1fr}
  body.tek-home #about-trust .tekAboutTrustGrid article{min-height:0}
  body.tek-home #about-trust .tekAboutTrustCta{width:100%;justify-content:center}
}


/* TEKSTOSKOP ABOUT trust refinement v2 */
body.tek-home .site-nav .tekAboutNav{
  color:var(--wine,#7b2831);
  font-weight:700;
}
body.tek-home .site-nav .tekAboutNav:hover{
  color:var(--wine-dark,#571922);
}
body.tek-home #about-trust .tekAboutTrustIntro p.tekAboutTrustProofLine{
  max-width:620px;
  margin-top:15px;
  padding-top:14px;
  border-top:1px solid #ddd5ca;
  font-size:12.5px;
  line-height:1.52;
  color:#6d6861;
}
body.tek-home #about-trust .tekAboutTrustProofLine strong{
  color:#272521;
  font-weight:700;
}