/* ===== FELIKS BLOG: статьи Потоков (только страницы постов .t-cms__page) ===== */
body:has(.t-cms__page){background:#FBFBFB}
.t-cms__page-header{display:none!important}
.t-cms__page{max-width:820px!important;margin:0 auto!important;padding:56px 20px 24px!important;box-sizing:border-box;background:transparent!important}
/* обложка */
.t-cms__page .t-cms__page__image{aspect-ratio:3/2;height:auto!important;padding-bottom:0!important;background-size:cover!important;background-position:center 45%!important}
/* дата */
.t-cms__page .t-uptitle{display:inline-block;margin:32px 0 14px!important;font-family:'Inter',Arial,sans-serif!important;font-size:13px!important;letter-spacing:1.5px;text-transform:uppercase;color:#6C7177!important}
/* H1 */
.t-cms__page .t-heading h1,.t-cms__page h1.t-cms__page__text{display:block;font-family:'Prata',Georgia,serif!important;font-weight:400!important;font-size:42px!important;line-height:1.18!important;letter-spacing:.5px;text-transform:uppercase;color:#17161C!important;margin:0 0 30px!important}
/* текст */
.t-cms__page .t-redactor__tte-view{font-family:'Inter',Arial,sans-serif!important;color:#26262B}
.t-cms__page .t-redactor__text{font-size:18px!important;line-height:1.7!important;color:#26262B!important;margin:0 0 22px!important}
.t-cms__page .t-redactor__tte-view>.t-redactor__text:first-child{font-size:21px!important;line-height:1.6!important;color:#17161C!important;margin-bottom:32px!important}
.t-cms__page .t-redactor__text strong,.t-cms__page .t-redactor__text b{font-weight:600;color:#17161C}
.t-cms__page .t-redactor__tte-view a{color:#17161C!important;text-decoration:underline!important;text-decoration-color:#E3A9A7!important;text-decoration-thickness:2px!important;text-underline-offset:4px;transition:color .2s}
.t-cms__page .t-redactor__tte-view a:hover{color:#6C7177!important}
/* подзаголовки */
.t-cms__page .t-redactor__h2{font-family:'Prata',Georgia,serif!important;font-weight:400!important;font-size:30px!important;line-height:1.22!important;letter-spacing:.5px;text-transform:uppercase;color:#17161C!important;margin:64px 0 22px!important}
.t-cms__page .t-redactor__h2:before{content:"";display:block;width:56px;height:3px;background:#EFCECD;margin-bottom:20px}
.t-cms__page .t-redactor__h3{font-family:'Inter',Arial,sans-serif!important;font-weight:600!important;font-size:21px!important;line-height:1.35!important;color:#17161C!important;margin:38px 0 12px!important}
/* списки */
.t-cms__page .t-redactor__text ul,.t-cms__page .t-redactor__text ol{margin:14px 0 6px!important;padding:0!important;list-style:none!important}
.t-cms__page .t-redactor__text li{position:relative;padding-left:30px;margin:0 0 12px}
.t-cms__page .t-redactor__text ul>li:before{content:"";position:absolute;left:4px;top:.62em;width:9px;height:9px;border-radius:50%;background:#EFCECD;box-shadow:0 0 0 1px #E3A9A7}
.t-cms__page .t-redactor__text ol{counter-reset:fb}
.t-cms__page .t-redactor__text ol>li{counter-increment:fb}
.t-cms__page .t-redactor__text ol>li:before{content:counter(fb);position:absolute;left:0;top:0;font-family:'Prata',Georgia,serif;font-size:19px;color:#17161C}
/* таблица */
.t-cms__page .t-table__viewport{margin:28px 0 34px!important;overflow-x:auto;width:100%!important}
.t-cms__page .t-table__wrapper{width:100%!important;max-width:none!important}
.t-cms__page .t-table__table{width:100%!important;border-collapse:collapse!important;border:0!important;font-family:'Inter',Arial,sans-serif!important;background:#fff}
.t-cms__page .t-table__cell{border:0!important;border-bottom:1px solid #ECE6E5!important;padding:15px 18px!important;font-size:16px!important;line-height:1.45!important;color:#26262B!important;vertical-align:top;background:transparent!important}
.t-cms__page .t-table__row:first-child .t-table__cell{background:#17161C!important;color:#fff!important;font-size:13px!important;font-weight:600;letter-spacing:1px;text-transform:uppercase;border-bottom:0!important}
.t-cms__page .t-table__row:nth-child(odd):not(:first-child) .t-table__cell{background:#FAF4F3!important}
/* блоки кода (наши компоненты) */
.t-cms__page .t-redactor__embedcode{margin:0!important;font-size:18px}
.fb-figure{margin:34px 0!important}
.fb-figure img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;object-position:center 45%}
.fb-figure figcaption{margin-top:10px;font-family:'Inter',Arial,sans-serif;font-size:14px;line-height:1.5;color:#6C7177}
.fb-note{margin:30px 0;padding:26px 30px;background:#F7EDEC;border-left:3px solid #E3A9A7;font-family:'Inter',Arial,sans-serif;font-size:17px;line-height:1.65;color:#26262B}
.fb-note b{display:block;margin-bottom:6px;font-family:'Prata',Georgia,serif;font-weight:400;font-size:19px;text-transform:uppercase;letter-spacing:.5px;color:#17161C}
.fb-cta{margin:56px 0 12px;padding:44px 44px 46px;background:#17161C;color:#fff;font-family:'Inter',Arial,sans-serif}
.fb-cta__title{font-family:'Prata',Georgia,serif;font-size:30px;line-height:1.2;text-transform:uppercase;letter-spacing:.5px;color:#fff;margin:0 0 14px}
.fb-cta__text{font-size:17px;line-height:1.6;color:rgba(255,255,255,.78);margin:0 0 28px;max-width:560px}
.fb-cta__row{display:flex;flex-wrap:wrap;gap:18px 32px;align-items:center}
.fb-cta__tels{display:flex;flex-direction:column;gap:4px}
.t-cms__page .fb-cta a.fb-btn{display:inline-block;padding:18px 30px;background:#FBFBFB;color:#17161C!important;text-decoration:none!important;font-size:14px;font-weight:600;letter-spacing:1px;text-transform:uppercase;transition:background .2s}
.t-cms__page .fb-cta a.fb-btn:hover{background:#EFCECD}
.t-cms__page .fb-cta a.fb-tel{color:#fff!important;text-decoration:none!important;font-size:16px;line-height:1.5}
.fb-faq{margin:10px 0 0}
@media (max-width:980px){
 .t-cms__page{padding:24px 16px 16px!important}
 .t-cms__page .t-heading h1,.t-cms__page h1.t-cms__page__text{font-size:28px!important}
 .t-cms__page .t-redactor__h2{font-size:24px!important;margin-top:48px!important}
 .t-cms__page .t-redactor__h3{font-size:19px!important}
 .t-cms__page .t-redactor__text{font-size:17px!important}
 .t-cms__page .t-redactor__tte-view>.t-redactor__text:first-child{font-size:19px!important}
 .t-cms__page .t-table__cell{padding:12px!important;font-size:14px!important}
 .fb-cta{padding:30px 22px}
 .fb-cta__title{font-size:23px}
}
/* мобильная шапка статей */
.fb-mhead{display:none}
@media (max-width:979px){
.fb-mhead{display:flex;position:fixed;top:0;left:0;right:0;z-index:9990;height:64px;padding:0 72px 0 16px;box-sizing:border-box;align-items:center;justify-content:space-between;background:rgba(241,241,241,.97);box-shadow:0 1px 0 rgba(23,22,28,.08);font-family:'Inter',Arial,sans-serif}
.fb-mhead__logo img{display:block;height:40px;width:auto}
.fb-mhead__right{display:flex;align-items:center;gap:8px}
.fb-mhead__ico{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#17161C}
.fb-mhead__ico svg{width:18px;height:18px;fill:#fff}
.fb-mhead__btn{display:inline-block;margin-left:4px;padding:12px 14px;background:#17161C;color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:500;letter-spacing:.6px;text-transform:uppercase;line-height:1}
}
/* страница списка статей /blog */
#rec4855847301{padding-top:170px!important;background:#FBFBFB}
#rec4855847301 .t-section__title{font-family:'Prata',Georgia,serif!important;font-weight:400!important;font-size:60px!important;line-height:1.1!important;letter-spacing:1px;text-transform:uppercase;color:#17161C!important}
#rec4855847301 .t-section__descr{font-family:'Inter',Arial,sans-serif!important;font-size:18px!important;line-height:1.6!important;color:#6C7177!important;max-width:620px;margin-left:auto;margin-right:auto}
#rec4855847301 .t-cms__card__atom.t-name{font-family:'Prata',Georgia,serif!important;font-weight:400!important;font-size:24px!important;line-height:1.25!important;letter-spacing:.5px;text-transform:uppercase;color:#17161C!important}
#rec4855847301 .t-cms__card__atom.t-text{font-family:'Inter',Arial,sans-serif!important;font-size:16px!important;line-height:1.6!important;color:#26262B!important}
#rec4855847301 .t-cms__card__atom.t-uptitle{font-family:'Inter',Arial,sans-serif!important;font-size:13px!important;letter-spacing:1.5px;text-transform:uppercase;color:#6C7177!important}
#rec4855847301 .t-cms__card__image{background-size:cover!important;background-position:center 45%!important}
@media (max-width:979px){#rec4855847301{padding-top:110px!important}#rec4855847301 .t-section__title{font-size:36px!important}#rec4855847301 .t-section__descr{font-size:16px!important}#rec4855847301 .t-cms__card__atom.t-name{font-size:20px!important}}
/* ===== /FELIKS BLOG ===== */

.pink-class {
    text-decoration: none;
    transition: opacity 300ms cubic-bezier(0.51, 0.92, 0.24, 1);
}
.pink-class::after {
    --scale: 0;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 2px;
    border-radius: 0px;
    background: #fbfbfb;
    transform: scaleX(var(--scale));
    transform-origin: var(--x) 50%;
    transition: transform 300ms cubic-bezier(0.51, 0.92, 0.24, 1);
}
.pink-class:hover {
    opacity: 1;
}
.pink-class:hover::after {
    --scale: 1;
}



document.querySelectorAll('.pink-class').forEach((elem) => {
	elem.onmouseenter = elem.onmouseleave = (e) => {
        const tolerance = 10;
		const left = 0;
		const right = elem.clientWidth;
		let x = e.pageX - elem.offsetLeft;
		if (x - tolerance < left) x = left;
		if (x + tolerance > right) x = right;
		elem.style.setProperty('--x', `${ x }px`);
	}
});





.pink-class1 {
    text-decoration: none;
    transition: opacity 300ms cubic-bezier(0.51, 0.92, 0.24, 1);
}
.pink-class1::after {
    --scale: 0;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
    border-radius: 0px;
    background: #FBFBFB;
    transform: scaleX(var(--scale));
    transform-origin: var(--x) 50%;
    transition: transform 300ms cubic-bezier(0.51, 0.92, 0.24, 1);
}
.pink-class1:hover {
    opacity: 1;
}
.pink-class1:hover::after {
    --scale: 1;
}



document.querySelectorAll('.pink-class1').forEach((elem) => {
	elem.onmouseenter = elem.onmouseleave = (e) => {
        const tolerance = 10;
		const left = 0;
		const right = elem.clientWidth;
		let x = e.pageX - elem.offsetLeft;
		if (x - tolerance < left) x = left;
		if (x + tolerance > right) x = right;
		elem.style.setProperty('--x', `${ x }px`);
	}
});



.pink-class2 {
    text-decoration: none;
    transition: opacity 300ms cubic-bezier(0.51, 0.92, 0.24, 1);
}
.pink-class2::after {
    --scale: 0;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
    border-radius: 0px;
    background: #A49E91;
    transform: scaleX(var(--scale));
    transform-origin: var(--x) 50%;
    transition: transform 300ms cubic-bezier(0.51, 0.92, 0.24, 1);
}
.pink-class2:hover {
    opacity: 1;
}
.pink-class2:hover::after {
    --scale: 1;
}



document.querySelectorAll('.pink-class2').forEach((elem) => {
	elem.onmouseenter = elem.onmouseleave = (e) => {
        const tolerance = 10;
		const left = 0;
		const right = elem.clientWidth;
		let x = e.pageX - elem.offsetLeft;
		if (x - tolerance < left) x = left;
		if (x + tolerance > right) x = right;
		elem.style.setProperty('--x', `${ x }px`);
	}
});
