/* Статьи блога trustdirect.ru — свой код вместо ленты Тильды (фаза 3 переезда, 28.09.2026).
   Размеры сняты с живых страниц Тильды на ширинах 1440/1200/960/640/480/320. */

@font-face{font-family:'Font';src:url('/assets/static.com/tild3534-3237-4565-a335-623564333039/FuturaPT-Light.woff') format('woff');font-weight:100;font-style:normal;font-display:swap}
@font-face{font-family:'Font';src:url('/assets/static.com/tild3665-3732-4965-b338-626139393662/FuturaPT-Light.woff') format('woff');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Font';src:url('/assets/static.com/tild3334-6235-4933-b139-313939336431/FuturaPT-Book.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Font';src:url('/assets/static.com/tild3562-3830-4566-b964-623433333339/FuturaPT-Medium.woff') format('woff');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Font';src:url('/assets/static.com/tild6538-3464-4539-a163-353032353237/FuturaPT-Bold.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Font';src:url('/assets/static.com/tild3335-3735-4264-b663-653465653965/FuturaPT-Heavy.woff') format('woff');font-weight:900;font-style:normal;font-display:swap}

/* шрифты проекта — те же переменные, что у Тильды: на них ссылается CSS Zero-блоков */
:root{--t-text-font:'Font',Arial,sans-serif;--t-headline-font:'Font',Arial,sans-serif}
html{-webkit-text-size-adjust:100%}
body.b{margin:0;background:#fff;color:#000;font-family:'Font',Arial,sans-serif;-webkit-font-smoothing:antialiased}
/* базовые правила в :where() — нулевая специфичность, не перебивают классы компонентов */
:where(.b) a{color:#ff8562;text-decoration:none}
:where(.b) img{max-width:100%}
:where(.b) button{font:inherit;color:inherit;cursor:pointer}
.b-hidden{display:none!important}

/* ---------- статья ---------- */
.post{box-sizing:border-box;max-width:760px;margin:0 auto;padding:95px 0}
@media (max-width:1200px){.post{max-width:620px}}
@media (max-width:960px){.post{max-width:640px}}
@media (max-width:640px){.post{max-width:none;margin:0 20px}}
/* отступы страницы, обложки и даты у Тильды переключаются на 560, шрифты — на 640 */
@media (max-width:560px){.post{padding:70px 0}}

.post__title{margin:0;font-size:36px;line-height:1.23;font-weight:600}
@media (max-width:1200px){.post__title{font-size:32px}}
@media (max-width:640px){.post__title{font-size:28px}}

.post__cover{margin:30px 0;font-size:0}
/* как у Тильды: max-width, без растяжения — картинка уже колонки остаётся в натуральном размере */
.post__cover img{display:inline-block;max-width:100%;width:auto;height:auto;vertical-align:top}
@media (max-width:560px){.post__cover{margin:15px 0 20px}}

.post__body{font-size:20px;line-height:1.55}
@media (max-width:1200px){.post__body{font-size:18px}}
@media (max-width:640px){.post__body{font-size:16px;line-height:1.45}}
.post__body>:first-child{margin-top:0!important;padding-top:0!important}
.post__body h2{margin:2rem 0 .75rem;padding:.25rem 0;font-size:30px;line-height:1.3;font-weight:700}
@media (max-width:1200px){.post__body h2{font-size:28px}}
@media (max-width:640px){.post__body h2{font-size:26px}}
.post__body .p{margin-bottom:.75rem;padding:.25rem 0;line-height:1.4}
.post__body .p ul{margin:0;padding-left:20px}
/* у Тильды толщина рамки ссылок обнулена; во встроенных стилях текста есть border-bottom-style:solid */
.post__body a{border-bottom-width:0}
.post__body .quote{margin:1rem 0;padding-left:20px;border-left:3px solid rgba(0,0,0,.84);line-height:1.5}
.post__body figure{margin:1rem 0;width:100%}
.post__body figure img{display:block;width:100%;height:auto}
.post__body figcaption{margin-top:5px;font-size:16px;font-style:italic;opacity:.5}
.post__body .video__box{position:relative;height:0;padding-top:25px;padding-bottom:56.25%}
.post__body .video__box iframe{position:absolute;left:0;top:0;width:100%;height:100%;border:0}
.post__body .callout{position:relative;margin:2rem 0;padding:30px 20px 28px 55px;font-size:18px}
@media (max-width:640px){.post__body .callout{font-size:16px}}
.post__body .callout__icon{position:absolute;left:20px;top:27px}
.post__body .callout__icon svg{display:block}

.post__author{display:flex;align-items:center;margin-top:35px;color:#ff8562}
.post__author-img{flex:none;width:30px;height:30px;margin-right:10px;border-radius:50%;background:50%/cover no-repeat}
.post__author-name{font-size:12px;line-height:1.55;color:#000}
/* обёртка даты — как у Тильды: 18 px (на мобильном 28), дата на 4 px ниже верха */
.post__meta{height:18px;margin-top:45px}
.post__date{display:block;padding-top:4px;font-size:10px;line-height:normal;font-weight:600;letter-spacing:1.5px;color:rgba(0,0,0,.5)}
@media (max-width:560px){.post__meta{height:28px;margin-top:25px}}

/* ---------- кнопка меню и меню ---------- */
.burger{position:fixed;z-index:990;top:15px;right:15px;width:48px;height:48px;padding:0;border:0;border-radius:100px;background:#ff654f;transition:opacity .3s,visibility .3s}
.burger--off{opacity:0;visibility:hidden}
.burger span{position:absolute;left:13px;width:22px;height:2px;background:#fbfbfb}
.burger span:nth-child(1){top:17px}.burger span:nth-child(2){top:23px}.burger span:nth-child(3){top:29px}
.menu-overlay{position:fixed;z-index:9998;inset:0;background:#fff;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.menu{position:fixed;z-index:9999;top:0;right:0;bottom:0;width:100%;max-width:260px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;padding:48px 40px 38px;overflow-y:auto;background:#fbfbfb;transform:translateX(100%);transition:transform .3s ease-in-out}
.menu-open .menu-overlay{opacity:.6;visibility:visible}
.menu-open .menu{transform:none}
.menu__close{position:absolute;top:5px;right:5px;width:40px;height:40px;padding:0;border:0;background:#fbfbfb}
.menu__close span{position:absolute;left:8px;top:19px;width:24px;height:2px;background:#0f0f0f;transform:rotate(45deg)}
.menu__close span+span{transform:rotate(-45deg)}
.menu__logo{display:block;margin-bottom:25px}
.menu__logo img{display:block;width:120px;height:auto}
.menu__list{list-style:none;margin:0 0 10px;padding:0}
.menu__list a{display:inline-block;margin-bottom:15px;font-size:24px;line-height:1.3;color:#0f0f0f!important}
.menu__list li:last-child a{margin-bottom:0}
.menu__bottom{margin-top:30px;font-size:13px;line-height:1.55}
.menu__social{display:flex;gap:8px;margin-top:24px}
.menu__social a{display:block;width:30px;height:30px}
.menu__social svg{display:block;width:30px;height:30px}
.menu__bottom .menu__privacy{display:block;margin-top:25px;color:#858585}

/* ---------- плашка cookie ---------- */
.cookie{position:fixed;z-index:100001;left:100px;bottom:30px;width:340px;max-width:100%}
.cookie__box{position:relative;padding:20px 30px;border-radius:5px;background:#fff;box-shadow:0 0 20px rgba(0,0,0,.3);text-align:center}
.cookie__text{margin-bottom:15px;font-size:12px;line-height:1.55;font-weight:600}
.cookie__btn{display:inline-block;padding:8.4px 15px;border:0;border-radius:30px;background:#ff8562;color:#fff;font-size:13px;line-height:1.4;font-weight:600;text-transform:uppercase}
.cookie__close{position:absolute;top:5px;right:5px;width:20px;height:20px;padding:5px;border:0;background:none}
.cookie__close svg{display:block;width:10px;height:10px}
/* у T657 полоса во всю ширину с 960, увеличенная кнопка — с 640 */
@media (max-width:960px){
  .cookie{left:0;right:0;bottom:0;width:auto}
  .cookie__box{padding:20px 10px;border-radius:0}
  .cookie__close{display:none}
}
@media (max-width:639px){.cookie__btn{padding:10.9px 15px}}

/* ---------- кнопка связи слева ---------- */
.lw__btn{position:fixed;z-index:9990;left:20px;bottom:20px;width:60px;height:60px;padding:0;border:0;border-radius:50%;background:#ff654f;box-shadow:0 0 10px rgba(0,0,0,.3)}
.lw__btn svg{position:absolute;left:16px;top:17px;width:28px;fill:#fbfbfb}
.lw__btn .lw__x{display:none;left:21px;top:21px;width:18px}
.lw-open .lw__btn .lw__chat{display:none}.lw-open .lw__btn .lw__x{display:block}
.lw__circle{position:absolute;inset:-3px;border:3px solid #ff654f;border-radius:100%;box-shadow:0 0 20px rgba(0,0,0,.2);opacity:0;animation:lw-pulse 3s ease-out infinite}
@keyframes lw-pulse{0%{transform:scale(1);opacity:0}10%{opacity:.8}40%{transform:scale(1.5);opacity:0}100%{opacity:0}}
.lw__pop{position:fixed;z-index:9991;left:20px;bottom:95px;width:360px;max-width:360px;box-sizing:border-box;border-radius:5px;background:#fff;box-shadow:0 0 20px rgba(0,0,0,.4)}
.lw__top{display:none}
.lw__wrap{padding:30px 35px 40px}
.lw__title{margin-bottom:25px;font-size:22px;line-height:1.35;font-weight:600}
@media (max-width:960px){
  .lw__btn{left:10px;bottom:10px}
  .lw__pop{left:0;right:0;top:0;bottom:0;width:auto;max-width:none;border-radius:0;overflow-y:auto}
  .lw__top{display:block;position:fixed;top:0;left:0;right:0;height:50px;background:#000}
  .lw__close-m{position:absolute;right:0;top:0;width:50px;height:50px;padding:17px;border:0;background:none}
  .lw__close-m svg{display:block;width:16px;height:16px}
  .lw__wrap{max-width:500px;margin:0 auto;padding:100px 35px 40px}
  .lw__title{font-size:20px}
  .lw-open .lw__btn{display:none}
}

/* ---------- формы ---------- */
.f{text-align:left}
.f__group{margin-bottom:10px}
.f__input,.f__phone{box-sizing:border-box;width:100%;height:50px;margin:0;border:1px solid #d6d6d6;border-radius:0;background:#fff;color:#000;font:inherit;font-size:16px;line-height:1.33;outline:none}
.f__input{padding:0 18px}
.f__phone{display:flex;align-items:center;padding:0 18px}
.f__flag{flex:none;width:18px;height:13px;background:linear-gradient(#fff 33.3%,#0039a6 33.3% 66.6%,#d52b1e 66.6%);box-shadow:0 0 0 1px #c5c5c5 inset}
.f__tri{flex:none;margin-left:6px;border:4px solid transparent;border-top:5px solid #000;border-bottom:0;opacity:.5}
.f__code{flex:none;margin:0 5px 0 10px}
.f__phone input{flex:1;min-width:0;height:48px;padding:0;border:0;background:none;color:inherit;font:inherit;outline:none}
.f__cb{position:relative;display:flex;align-items:flex-start;padding-top:1.6px;font-size:14px;line-height:1.2;cursor:pointer}
.f__cb input{position:absolute;opacity:0;width:1px;height:1px}
.f__cb-ind{flex:none;position:relative;width:20px;height:20px;box-sizing:border-box;margin:-1.6px 10px 0 0;border:2px solid #000}
.f__cb input:checked+.f__cb-ind::after{content:'';position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #000;border-width:0 2px 2px 0;transform:rotate(45deg)}
.f__cb input:focus-visible+.f__cb-ind{outline:2px solid #4a6ff2}
.f__submit{display:inline-flex;align-items:center;justify-content:center;width:100%;height:50px;margin-top:10px;padding:0 45px;border:0;border-radius:5px;background:#ff654f;color:#fbfbfb;font-size:16px;line-height:1.4;font-weight:600;text-transform:uppercase}
.f__submit[disabled]{opacity:.6;cursor:default}
.f__error{display:none;margin-top:5px;font-size:13px;line-height:1.3;color:#f95d51}
.f__group.is-error .f__error{display:block}
.f__group.is-error .f__input,.f__group.is-error .f__phone{border-color:#f95d51}
.f__errbox{display:none;margin-top:10px;padding:10px 15px;background:#f95d51;color:#fff;font-size:14px;line-height:1.4}
.f__errbox.is-shown{display:block}
@media (max-width:960px){.f--lw .f__cb{font-size:12px;padding-top:2.8px}.f--lw .f__cb-ind{margin-top:-2.8px}.f--lw .f__submit{padding:0 30px}}

/* форма консультации — вид из Zero-блока (поля data-field-input*/button* формы, ступени res-960/640/480/320) */
.f--consult{text-align:center}
.f--consult .f__group{margin-bottom:20px}
.f--consult .f__title{padding:0 10px 5px 0;font-size:16px;line-height:1.3;text-align:center}
.f__imgsel{display:flex;flex-wrap:wrap;gap:22px 18px;padding-top:7px}
.f__imgopt{position:relative;width:calc(25% - 13.5px);cursor:pointer;text-align:center}
.f__imgopt input{position:absolute;opacity:0;width:1px;height:1px}
.f__imgopt-ind{display:block;position:relative;padding-bottom:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.1);border-radius:4px;background:50%/cover no-repeat;background-clip:padding-box}
.f__imgopt-text{display:block;margin-top:12px;font-size:14px;line-height:1.1}
.f__imgopt input:checked+.f__imgopt-ind::after{content:'';position:absolute;left:-7px;top:-7px;width:28px;height:28px;border-radius:50%;background:#4a6ff2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M8.5 14.5l4 4 7-8' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/100% no-repeat}
.f--consult .f__phone{border-color:#858585;border-radius:8px;padding:0 20px}
.f--consult .f__cb{justify-content:flex-start;text-align:center}
.f--consult .f__cb-ind{border-color:#4a6ff2}
.f--consult .f__cb input:checked+.f__cb-ind::after{border-color:#4a6ff2}
.f--consult .f__submit{height:100px;margin:0;padding:0 15px;border-radius:11px;background:linear-gradient(303.84deg,#FF624C 13.45%,#FFACA1 93.89%),linear-gradient(321.47deg,#FF624C 23.38%,#FF9283 81.96%);box-shadow:0 3px 0 0 rgb(219 86 65);color:#fff;font-size:14.33px;font-weight:500;letter-spacing:.365em;white-space:nowrap}
@media (max-width:959px){.f--consult .f__submit{height:80px}}
@media (max-width:640px){.f__imgopt{width:calc(50% - 9px)}.f__imgopt-text{font-size:12px}}
@media (max-width:639px){.f--consult .f__title{font-size:14px}.f--consult .f__phone{font-size:15px}}
@media (max-width:479px){.f--consult .f__title{font-size:12px}.f--consult .f__phone{font-size:14px}}

/* ---------- попап консультации ---------- */
.pop{position:fixed;z-index:99999;inset:0;overflow-y:auto;-webkit-overflow-scrolling:touch;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.pop.is-open{opacity:1;visibility:visible}
.pop-open{overflow:hidden}

/* ---------- Zero-блоки: база; координаты — в zero.css, переписанном из CSS Тильды ---------- */
.zb{position:relative;width:100%;overflow:hidden}
.zb__carrier,.zb__filter{position:absolute;left:0;top:0;width:100%;height:100%}
.zb__carrier{z-index:0}.zb__filter{z-index:1}
.zb .e{position:absolute;box-sizing:border-box;display:table}
.zb .a{display:table-cell;vertical-align:middle;width:inherit;height:inherit!important;box-sizing:border-box;text-decoration:none;-webkit-text-size-adjust:100%}
.zb .img{display:block;width:100%;height:auto}
.zb .e[data-t=text] .a{word-break:normal}
.zb .e[data-t=button]{display:block}
.zb .e[data-t=button] .a{display:flex;width:100%;height:100%;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:center;overflow:hidden}
.zb .e[data-t=form] .a{vertical-align:top}
