/* ТОПай в ТОП, 30.10.2026: старые статьи блога (страницы с обложкой T338) — в светлый дизайн сайта.
   Срабатывает только на страницах, где среди блоков есть T338; шапку, подвал и попапы не трогает. */
#allrecords:has(> .r[data-record-type="338"]) > .r:not([data-record-type="1093"]):not([data-record-type="702"]):not([data-record-type="131"]){background-color:#fafafa!important;background-image:none!important}
#allrecords:has(> .r[data-record-type="338"]) > .r :is(div,p,span,li,a,h1,h2,h3,h4,strong,em,b,i,button,td){font-family:'Inter Tight','TildaSans',Arial,sans-serif!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="396"] :is(div,p,span,a,strong){font-family:inherit}

/* обложка */
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="338"] :is(.t-cover,.t-cover__carrier){background:linear-gradient(180deg,#fff6ff 0%,#fae6fa 100%)!important;background-image:linear-gradient(180deg,#fff6ff 0%,#fae6fa 100%)!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="338"] .t-cover__filter{display:none!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="338"] .t338__title{color:#000!important;font-size:clamp(28px,4vw,46px)!important;font-weight:700!important;line-height:1.12!important;letter-spacing:-.02em;word-break:normal!important;overflow-wrap:normal!important;text-wrap:balance}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="338"] .t338__descr{color:#4d454e!important}
#allrecords:has(> .r[data-record-type="338"]) > .r :is(.t338__btn,.t-btn):not(.t1093 *){background:linear-gradient(90deg,#ff00fa 0%,#a925ff 100%)!important;color:#fff!important;border:0!important;border-radius:100px!important;box-shadow:0 14px 34px rgba(255,0,250,.22)!important}
#allrecords:has(> .r[data-record-type="338"]) > .r .t-btn .t-btnflex__text{color:#fff!important}

/* текст статьи: одна колонка для чтения */
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="239"] .t210 .t-container > .t-col{display:flex!important;flex-direction:column;float:none!important;width:auto!important;max-width:760px;margin:0 auto!important;padding:0 20px;box-sizing:border-box}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="239"] .t210 .t-container > .t-col > .t-col{float:none!important;width:auto!important;max-width:none!important;margin:0!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="239"] .t210__descrblock{order:-1;margin-bottom:14px!important}
#allrecords:has(> .r[data-record-type="338"]) > .r :is(.t210__descr,.t220__title,.t480__title,.t-heading,.t-section__title){color:#000!important;font-size:clamp(23px,2.4vw,30px)!important;font-weight:700!important;line-height:1.2!important;letter-spacing:-.02em;text-transform:none!important}
#allrecords:has(> .r[data-record-type="338"]) > .r :is(.t210__descr,.t220__title,.t480__title) strong{color:inherit!important;font-weight:inherit!important}
#allrecords:has(> .r[data-record-type="338"]) > .r :is(.t-text,.t-descr,.t480__descr,.t210__text,.t220__text){color:#4d454e!important;font-size:17px!important;font-weight:400!important;line-height:1.65!important}
#allrecords:has(> .r[data-record-type="338"]) > .r :is(.t-text,.t-descr,.t480__descr,.t210__text,.t220__text) :is(strong,b){color:#000!important;font-weight:700!important}
#allrecords:has(> .r[data-record-type="338"]) > .r :is(.t-text,.t-descr) a{color:#a925ff!important;text-decoration:underline;text-underline-offset:3px}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="248"] .t220 .t-col{max-width:760px;width:auto!important;float:none!important;margin:0 auto!important;padding:0 20px;box-sizing:border-box}
#allrecords:has(> .r[data-record-type="338"]) > .r:not([data-record-type="396"]):not([data-record-type="1093"]) [style*="background-color:#1b1b1b"],#allrecords:has(> .r[data-record-type="338"]) > .r:not([data-record-type="396"]):not([data-record-type="1093"]) [style*="background-color: #1b1b1b"],#allrecords:has(> .r[data-record-type="338"]) > .r:not([data-record-type="396"]):not([data-record-type="1093"]) [style*="background-color: rgb(27, 27, 27)"]{background-color:#fff!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="248"] .t220__textwrapper{background:#fff!important;border-radius:24px;padding:clamp(22px,3vw,36px)!important;box-shadow:0 10px 24px rgba(169,37,255,.06)}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="480"] .t480 img,
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="480"] .t480 .t-bgimg{border-radius:24px}

/* «Ещё статьи» */
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="405"] .t405__link{display:block;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 10px 24px rgba(169,37,255,.08);transition:transform .2s}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="405"] .t405__link:hover{transform:translateY(-3px)}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="405"] .t405__textwrapper{padding:12px 14px 16px}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="405"] .t405__title{color:#000!important;font-size:15px!important;font-weight:700!important;line-height:1.3!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="405"] .t405__descr{color:#726972!important;font-size:13px!important}

/* FAQ */
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="1118"] .t-section__title{font-size:clamp(26px,3vw,40px)!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="1118"] .t-section__descr{color:#726972!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="1118"] .t1118__accordion{background:#fff;border-radius:20px;margin-bottom:10px;padding:2px 22px;border:0!important;box-shadow:0 8px 22px rgba(169,37,255,.06)}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="1118"] :is(.t1118__wrapper,.t1118__header){border-color:transparent!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="1118"] .t1118__title{color:#000!important;font-size:18px!important;font-weight:700!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="1118"] .t1118__descr{color:#4d454e!important;font-size:16px!important}
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="1118"] :is(.t1118__icon,.t1118__icon path,.t1118__icon line,svg line,svg path){stroke:#a925ff!important}

/* Zero-баннеры с призывом: фиолетовая полоса как у тёмных блоков нового дизайна (текст в них белый) */
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="396"] .t396__artboard{background:radial-gradient(ellipse 620px 420px at 14% 20%,rgba(255,28,246,.28),transparent 65%),linear-gradient(135deg,#5b0a8a 0%,#3d085e 52%,#260642 100%)!important}
/* старый блок контактов внизу статьи (с телефоном) дублирует общий подвал — скрываем */
#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="396"]:has(a[href^="tel:"]){display:none!important}
#allrecords:has(> .r[data-record-type="338"]) > .r .t210__line{background:linear-gradient(90deg,#ff00fa,#a925ff)!important;width:64px!important;max-width:64px!important;height:3px!important;border-radius:3px;opacity:1!important}
@media (max-width:640px){#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="248"] .t220__textwrapper{margin:0 16px}#allrecords:has(> .r[data-record-type="338"]) > .r[data-record-type="944"] .t944__btn{width:calc(100% - 32px)!important;margin-left:16px!important;margin-right:16px!important}}
/* /blog: фильтр и карточки ленты */
#allrecords:has(> .r[data-record-type="338"]) > .r .t-feed__parts-switch-btn{background:#fff!important;border-color:#eadff0!important}
#allrecords:has(> .r[data-record-type="338"]) > .r .t-feed__parts-switch-btn a{color:#000!important}
#allrecords:has(> .r[data-record-type="338"]) > .r .t-feed__parts-switch-btn.t-active{background:linear-gradient(90deg,#ff00fa,#a925ff)!important;border-color:transparent!important}
#allrecords:has(> .r[data-record-type="338"]) > .r .t-feed__parts-switch-btn.t-active a{color:#fff!important}
#allrecords:has(> .r[data-record-type="338"]) > .r .t-feed__col-grid__post-wrapper{border-radius:20px;overflow:hidden;box-shadow:0 10px 24px rgba(169,37,255,.08)}
