/* Статьи tstline.ru (TST 25.10.2026): страница статьи и список /stati.
   Подключается только шаблонами блога (lightshop_blog.twig, lightshop_blog_list_main.twig). */
.tst-art-page{ --ink:#151a23; --text:#2a3038; --muted:#6b7480; --line:#e6ebf2; --soft:#f4f6f9; --brand:#376caa; --brand-d:#2b5686;
	font-family:'Roboto','Mulish',Arial,Helvetica,sans-serif; color:var(--text); padding-bottom:24px; }
.tst-art-page *{ box-sizing:border-box; }

/* хлебные крошки */
.tst-crumbs{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:22px 0 0; font-size:13px; line-height:1.4; color:var(--muted); }
.tst-crumbs a{ color:var(--muted); text-decoration:none; }
.tst-crumbs a:hover{ color:var(--brand); }
.tst-crumbs__sep{ color:#b3bac5; }
.tst-crumbs__here{ color:var(--text); max-width:56ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.tst-dot{ display:inline-block; width:3px; height:3px; border-radius:50%; background:currentColor; opacity:.55; margin:0 9px; vertical-align:middle; }
.tst-chip{ display:inline-flex; align-items:center; height:28px; padding:0 12px; border-radius:999px; background:#eaf1fa; color:var(--brand) !important;
	font-size:13px; font-weight:500; text-decoration:none !important; transition:background .2s; }
.tst-chip:hover{ background:#dce8f6; }
.tst-btn{ display:inline-flex; align-items:center; justify-content:center; height:46px; padding:0 22px; border-radius:12px; background:var(--brand); color:#fff !important;
	font-size:15px; font-weight:500; text-decoration:none !important; transition:background .2s, transform .2s; }
.tst-btn:hover{ background:var(--brand-d); }

/* ── статья ── */
.tst-art__head{ max-width:860px; margin:22px 0 26px; }
.tst-art__title{ margin:14px 0 12px; font-size:40px; line-height:1.15; font-weight:700; letter-spacing:-.015em; color:var(--ink); text-transform:none; padding:0; font-family:inherit; }
.tst-art__meta{ margin:0; font-size:14px; color:var(--muted); }
.tst-art__grid{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:56px; max-width:1640px; align-items:start; }
.tst-art__cover{ margin:0 0 30px; border-radius:18px; overflow:hidden; background:#eceae6; aspect-ratio:16/10; }
.tst-art__cover img{ display:block; width:100%; height:100%; object-fit:cover; }
.tst-art__aside{ position:sticky; top:140px; display:flex; flex-direction:column; gap:18px; }

.tst-art__main, .tst-art__aside{ min-width:0; }

/* «Содержание» */
.tst-toc{ border:1px solid var(--line); border-radius:16px; padding:18px 18px 12px; background:#fff; }
.tst-toc__title{ margin:0 0 10px; font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
.tst-toc ol{ list-style:none; margin:0; padding:0; counter-reset:toc; }
.tst-toc li{ margin:0; }
.tst-toc a{ display:block; position:relative; padding:7px 0 7px 14px; font-size:14px; line-height:1.4; color:var(--text); text-decoration:none; border-left:2px solid var(--line); transition:color .2s, border-color .2s; }
.tst-toc a:hover{ color:var(--brand); }
.tst-toc a.is-active{ color:var(--brand); border-left-color:var(--brand); font-weight:500; }
.tst-toc--inline{ display:none; }

/* связь с нами */
.tst-help{ border-radius:16px; padding:20px; background:var(--soft); }
.tst-help__title{ margin:0 0 6px; font-size:17px; line-height:1.3; font-weight:700; color:var(--ink); }
.tst-help__text{ margin:0 0 16px; font-size:14px; line-height:1.5; color:var(--muted); }
.tst-help .tst-btn{ width:100%; }
.tst-help__phone, .tst-help__mail{ display:block; margin-top:12px; font-size:15px; font-weight:500; color:var(--ink) !important; text-decoration:none !important; text-align:center; }
.tst-help__mail{ margin-top:6px; font-size:14px; font-weight:400; color:var(--brand) !important; }

/* текст статьи */
.tst-art__body{ font-size:17px; line-height:1.7; color:var(--text); }
.tst-art__body p{ margin:0 0 18px; font-size:inherit; line-height:inherit; }
.tst-art__body > p:first-child{ font-size:19px; line-height:1.6; color:var(--ink); }
.tst-art__body h2{ margin:44px 0 16px; font-size:28px; line-height:1.25; font-weight:700; letter-spacing:-.01em; color:var(--ink); scroll-margin-top:140px; font-family:inherit; text-transform:none; }
.tst-art__body h3{ margin:28px 0 10px; font-size:20px; line-height:1.35; font-weight:700; color:var(--ink); font-family:inherit; text-transform:none; }
.tst-art__body ul, .tst-art__body ol{ margin:0 0 20px; padding-left:24px; }
.tst-art__body li{ margin:0 0 9px; font-size:inherit; line-height:1.6; }
.tst-art__body li::marker{ color:var(--brand); }
.tst-art__body a{ color:var(--brand); text-decoration:none; border-bottom:1px solid rgba(55,108,170,.3); transition:border-color .2s; }
.tst-art__body a:hover{ border-bottom-color:var(--brand); }
.tst-art__body strong, .tst-art__body b{ color:var(--ink); font-weight:600; }

.tst-art__body .art-summary{ margin:26px 0 30px; padding:22px 24px; border-radius:16px; background:#f1f6fc; border:0; }
.tst-art__body .art-summary__title{ margin:0 0 10px !important; font-size:13px !important; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--brand) !important; }
.tst-art__body .art-summary ul{ margin:0; padding-left:20px; }
.tst-art__body .art-summary li{ margin:0 0 7px; font-size:16px; }
.tst-art__body .art-summary li:last-child{ margin-bottom:0; }

.tst-art__body .art-figure{ margin:30px 0 34px; }
.tst-art__body .art-figure img{ display:block; width:100%; height:auto; margin:0; padding:0; border:0; border-radius:16px; background:#eceae6; }
.tst-art__body .art-figure figcaption{ margin-top:10px; font-size:14px; line-height:1.45; color:var(--muted); text-align:left; }

.tst-art__body .art-table{ margin:22px 0 28px; overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--line); border-radius:14px; }
.tst-art__body table{ width:100%; margin:0; border:0; border-collapse:collapse; font-size:15px; line-height:1.45; }
.tst-art__body table th, .tst-art__body table td{ padding:12px 14px !important; border:0; border-bottom:1px solid #edf0f4; text-align:left !important; vertical-align:top; line-height:1.45 !important; white-space:normal; }
.tst-art__body table th{ background:var(--soft); font-weight:600; color:var(--ink); white-space:nowrap; font-size:14px; }
.tst-art__body table tr:last-child td{ border-bottom:0; }
.tst-art__body table tbody tr:nth-child(even) td{ background:#fafbfd; }

.tst-art__body .art-faq{ margin:44px 0 10px; padding:28px 0 0; border-top:1px solid var(--line); }
.tst-art__body .art-faq h2{ margin-top:0; }
.tst-art__body .art-faq h3{ margin:22px 0 8px; font-size:18px; }
.tst-art__body .art-faq p{ margin:0 0 6px; color:#4a5260; }
.tst-art__body .art-note{ margin:34px 0 8px; padding:20px 22px; border-radius:16px; background:var(--soft); border:0; font-size:16px; }
.tst-art__body .art-note p:last-child{ margin-bottom:0; }

/* ── карточки (список и «Читайте также») ── */
.tst-cards{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px 26px; }
.tst-card{ display:flex; flex-direction:column; color:inherit !important; text-decoration:none !important; }
.tst-card[hidden]{ display:none; }
.tst-card__img{ display:block; position:relative; border-radius:16px; overflow:hidden; background:#eceae6; aspect-ratio:16/10; }
.tst-card__img img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.2,.7,.2,1); }
.tst-card:hover .tst-card__img img{ transform:scale(1.035); }
.tst-card__body{ display:flex; flex-direction:column; padding:16px 2px 0; }
.tst-card__topic{ font-size:12.5px; font-weight:500; letter-spacing:.02em; color:var(--brand); margin-bottom:7px; }
.tst-card__title{ font-size:19px; line-height:1.3; font-weight:700; color:var(--ink); transition:color .2s; }
.tst-card:hover .tst-card__title{ color:var(--brand); }
.tst-card__text{ margin-top:8px; font-size:14.5px; line-height:1.5; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tst-card__meta{ margin-top:12px; font-size:13px; color:#8a94a3; }

/* «Читайте также» */
.tst-more{ margin:56px 0 10px; padding:48px 0 8px; border-top:1px solid var(--line); }
.tst-more__title{ margin:0 0 26px; font-size:28px; line-height:1.2; font-weight:700; color:var(--ink); font-family:inherit; text-transform:none; }

/* ── список /stati ── */
.tst-blog__head{ margin:22px 0 24px; max-width:760px; }
.tst-blog__title{ margin:0 0 10px; font-size:40px; line-height:1.15; font-weight:700; letter-spacing:-.015em; color:var(--ink); padding:0; text-transform:none; font-family:inherit; }
.tst-blog__lead{ margin:0; font-size:18px; line-height:1.55; color:var(--muted); }
.tst-filter{ display:flex; gap:8px; margin:0 0 30px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; padding-bottom:2px; }
.tst-filter::-webkit-scrollbar{ display:none; }
.tst-filter__btn{ flex:0 0 auto; height:38px; padding:0 16px; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--text);
	font:500 14px/1 'Roboto',Arial,sans-serif; cursor:pointer; transition:background .2s, color .2s, border-color .2s; }
.tst-filter__btn:hover{ border-color:#c9d6e6; color:var(--brand); }
.tst-filter__btn.is-active{ background:var(--ink); border-color:var(--ink); color:#fff; }
.tst-card--wide{ grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:40px; align-items:center; margin-bottom:10px; }
.tst-card--wide .tst-card__img{ border-radius:20px; }
.tst-card--wide .tst-card__body{ padding:0; }
.tst-card--wide .tst-card__title{ font-size:30px; line-height:1.2; letter-spacing:-.01em; }
.tst-card--wide .tst-card__text{ font-size:16.5px; -webkit-line-clamp:4; margin-top:14px; }
.tst-cards--list.is-filtered .tst-card--wide{ grid-column:auto; display:flex; gap:0; margin:0; }
.tst-cards--list.is-filtered .tst-card--wide .tst-card__body{ padding:16px 2px 0; }
.tst-cards--list.is-filtered .tst-card--wide .tst-card__title{ font-size:19px; }
.tst-cards--list.is-filtered .tst-card--wide .tst-card__text{ font-size:14.5px; -webkit-line-clamp:2; margin-top:8px; }
.tst-empty{ color:var(--muted); }
.tst-blog__about{ margin:40px 0 0; max-width:800px; }

/* ── планшет ── */
@media (max-width:1199px){
	.tst-art__grid{ grid-template-columns:minmax(0,1fr) 270px; gap:40px; }
}
@media (max-width:991px){
	.tst-art__grid{ grid-template-columns:minmax(0,1fr); gap:0; }
	.tst-art__aside{ position:static; }
	.tst-toc--side{ display:none; }
	.tst-toc--inline{ display:block; margin:0 0 26px; padding:0; }
	.tst-toc--inline summary{ list-style:none; cursor:pointer; padding:14px 18px; font-size:15px; font-weight:600; color:var(--ink); display:flex; justify-content:space-between; align-items:center; }
	.tst-toc--inline summary::-webkit-details-marker{ display:none; }
	.tst-toc--inline summary::after{ content:''; width:8px; height:8px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); margin-top:-4px; transition:transform .2s; }
	.tst-toc--inline[open] summary::after{ transform:rotate(-135deg); margin-top:4px; }
	.tst-toc--inline ol{ padding:0 18px 12px; }
	.tst-help{ display:none; }
	.tst-cards{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 20px; }
	.tst-card--wide{ grid-template-columns:minmax(0,1fr); gap:0; }
	.tst-card--wide .tst-card__body{ padding:18px 2px 0; }
	.tst-card--wide .tst-card__title{ font-size:26px; }
}
/* ── телефон ── */
@media (max-width:767px){
	.tst-crumbs{ margin-top:14px; font-size:12.5px; }
	.tst-crumbs__here{ display:none; }
	.tst-crumbs__sep:nth-last-child(2){ display:none; }
	.tst-art__head{ margin:14px 0 18px; }
	.tst-art__title, .tst-blog__title{ font-size:28px; line-height:1.2; }
	.tst-art__cover{ margin:0 -15px 22px; border-radius:0; }
	.tst-art__body{ font-size:16.5px; line-height:1.65; }
	.tst-art__body > p:first-child{ font-size:17.5px; }
	.tst-art__body h2{ font-size:23px; margin:36px 0 12px; scroll-margin-top:90px; }
	.tst-art__body h3{ font-size:18px; }
	.tst-art__body .art-summary{ padding:18px; margin:20px 0 24px; }
	.tst-art__body .art-figure{ margin:24px -15px 28px; }
	.tst-art__body .art-figure img{ border-radius:0; }
	.tst-art__body .art-figure figcaption{ padding:0 15px; }
	.tst-art__body .art-table table{ min-width:560px; font-size:14px; }
	.tst-art__body .art-table--wide table{ min-width:640px; }
	.tst-art__body .art-table::before{ content:'Таблицу можно листать вбок →'; display:block; position:sticky; left:0; padding:8px 12px 0; font-size:12px; color:#8a919e; }
	.tst-blog__lead{ font-size:16px; }
	.tst-filter{ margin:0 -15px 24px; padding:0 15px 2px; }
	.tst-cards{ grid-template-columns:minmax(0,1fr); gap:30px; }
	.tst-card__title{ font-size:19px; }
	.tst-card--wide .tst-card__title{ font-size:23px; }
	.tst-more{ margin-top:40px; padding-top:34px; }
	.tst-more__title{ font-size:23px; }
}
/* широкий экран: статья до правого меню — текст чуть крупнее, обложка чуть ниже (TST 28.10.2026) */
@media (min-width:1500px){
	.tst-art__body{ font-size:18px; }
	.tst-art__body > p:first-child{ font-size:20px; }
	.tst-art__cover{ aspect-ratio:16/9; }
}
@media (prefers-reduced-motion:reduce){ .tst-card__img img{ transition:none; } .tst-card:hover .tst-card__img img{ transform:none; } }
/* тема нумерует все ol li:before — в «Содержании» номера не нужны */
.tst-toc li::before{ content:none !important; display:none !important; }
