/* «Что нового» — /obnovleniya, /obnovleniya/<slug> и блок «Последние
   обновления по …» на профильных страницах (ветка landing/obnovleniya,
   макет ceh360-chto-novogo-makety-v2.pdf). Цвета — только токены
   tsekh360.css; счётчик и метки в шапке — в landing.css рядом с шапкой. */

.upd{padding:20px 0 96px}
.upd-crumbs{display:flex;flex-wrap:wrap;gap:6px 8px;font-size:13px;color:var(--text-secondary);margin-bottom:28px}
.upd-crumbs a:hover{color:var(--accent-active)}
.upd-crumbs span:last-child{color:var(--text-primary)}

.upd-hero{max-width:680px;margin-bottom:36px}
.upd-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-active);margin-bottom:12px}
.upd-eyebrow::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent)}
.upd-hero h1{font-size:clamp(32px,4.4vw,48px);line-height:1.08;letter-spacing:-.03em;font-weight:700;margin-bottom:14px}
.upd-hero p{font-size:16px;line-height:1.6;color:var(--text-secondary)}
.upd-hero p.upd-last{margin-top:10px;font-size:13px}

/* ── Раскладка ── */
.upd-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:start}
.upd-layout--list{grid-template-columns:minmax(0,1fr) 280px;grid-template-areas:"list filter" "list aside";grid-template-rows:auto 1fr;row-gap:16px}
.upd-layout--list .upd-filter{grid-area:filter}
.upd-layout--list .upd-list{grid-area:list}
.upd-layout--list .upd-aside{grid-area:aside;align-self:start}
.upd-aside{display:flex;flex-direction:column;gap:16px}

/* ── Метки ── */
.upd-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-bottom:10px}
.upd-type,.upd-sec{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--radius-sm);font-size:12px;font-weight:600;line-height:1}
.upd-type--new{background:var(--accent-strong);color:var(--on-accent)}
.upd-type--improved{background:var(--bg);color:var(--tag-text);box-shadow:inset 0 0 0 1px var(--tag-line)}
.upd-sec{background:var(--surface-2);color:var(--text-secondary);font-weight:500}
.upd-date{font-size:13px;font-weight:600;color:var(--text-primary)}

/* ── Фильтр по разделам ── */
.upd-filter{border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px}
.upd-filter h3{font-size:13px;font-weight:700;margin-bottom:8px}
.upd-filter-list{display:flex;flex-direction:column;gap:2px}
.upd-filter button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;padding:6px 10px;border:0;border-radius:var(--radius-sm);
  background:none;font:inherit;font-size:14px;color:var(--text-primary);text-align:left;cursor:pointer}
.upd-filter button b{font-weight:500;color:var(--text-secondary);font-variant-numeric:tabular-nums}
.upd-filter button:hover{background:var(--surface-2)}
.upd-filter button.on{background:var(--accent-soft);color:var(--accent-active);font-weight:600}
.upd-filter button.on b{color:var(--accent-active)}

/* ── Список ── */
.upd-month{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary);padding:18px 0 4px;border-top:1px solid var(--border)}
.upd-list > .upd-month:first-child{border-top:0;padding-top:0}
.upd-item{display:grid;grid-template-columns:120px minmax(0,1fr);gap:24px;padding:24px 0 32px;border-bottom:1px solid var(--border-subtle)}
.upd-item-date time{display:block;font-size:14px;font-weight:700}
.upd-item-date span{font-size:13px;color:var(--text-secondary)}
.upd-item h3{font-size:22px;line-height:1.25;letter-spacing:-.02em;font-weight:700;margin-bottom:10px}
.upd-item h3 a:hover{color:var(--accent-active)}
.upd-item p{font-size:15px;line-height:1.6;color:var(--text-secondary)}
.upd-shot-link{display:block;margin-top:18px}
/* Кадры — часто не экран целиком, а его часть (на снимке только то, что
   совпадает с сайтом): показываются в своём размере, не растягиваются. В
   списке высокий кадр срезается снизу, полный — на странице записи. */
.upd-shot-link .upd-shot{max-height:460px;object-fit:cover;object-position:top}
.upd-shot{display:block;width:auto;max-width:100%;height:auto;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-2)}
.upd-where{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:16px;font-size:13px;color:var(--text-secondary)}
.upd-item .upd-where{font-size:13px}
.upd-where a{color:var(--accent-active);text-decoration:underline;text-underline-offset:2px}
.upd-where a:hover{color:var(--accent)}
.upd-more{display:inline-block;margin-top:12px;font-size:14px;font-weight:600;color:var(--accent-active)}
.upd-more:hover{color:var(--accent)}

/* ── Правая колонка ── */
.upd-side{border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px}
.upd-side h3{font-size:15px;font-weight:700;margin-bottom:4px}
.upd-side p{font-size:13px;line-height:1.5;color:var(--text-secondary);margin-bottom:14px}
.upd-side .btn{padding:12px 16px;font-size:14px}
.upd-side--tg{background:var(--accent-wash);border-color:var(--accent-border)}

/* ── Страница записи ── */
.upd-entry{max-width:760px}
.upd-entry h1{font-size:clamp(28px,3.6vw,40px);line-height:1.12;letter-spacing:-.03em;font-weight:700;margin:4px 0 14px}
.upd-lead{font-size:17px;line-height:1.6;color:var(--text-secondary)}
.upd-ba{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}
.upd-ba--one{grid-template-columns:1fr}
.upd-ba-card{border:1px solid var(--border);border-radius:var(--radius-md);padding:14px 16px}
.upd-ba-card b{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary);margin-bottom:6px}
.upd-ba-card p{font-size:14px;line-height:1.55}
.upd-ba-card--after{background:var(--accent-wash);border-color:var(--accent-border)}
.upd-ba-card--after b{color:var(--accent-active)}
.upd-fig{margin:8px 0 8px}
.upd-fig figcaption,.upd-fig390 figcaption{margin-top:8px;font-size:13px;line-height:1.5;color:var(--text-secondary)}
.upd-entry h2{font-size:22px;line-height:1.25;letter-spacing:-.02em;font-weight:700;margin:32px 0 12px}
.upd-ul{padding-left:20px;display:flex;flex-direction:column;gap:6px}
.upd-ul li,.upd-note li{font-size:15px;line-height:1.6;list-style:disc}
.upd-note{margin-top:20px;background:var(--surface-2);border-radius:var(--radius-md);padding:16px 20px}
.upd-note h3{font-size:14px;font-weight:700;margin-bottom:6px}
.upd-note ul{padding-left:18px;display:flex;flex-direction:column;gap:4px}
.upd-note li{font-size:14px}
.upd-steps{counter-reset:s;display:flex;flex-direction:column;gap:10px}
.upd-steps li{counter-increment:s;display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;font-size:15px;line-height:1.55;list-style:none}
.upd-steps li::before{content:counter(s);display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;
  background:var(--accent-soft);color:var(--accent-active);font-size:12px;font-weight:700}
.upd-cta{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;margin:28px 0;padding:16px 20px;border-radius:var(--radius-md);background:var(--accent-wash)}
.upd-cta p{font-size:15px;line-height:1.5}
.upd-cta .btn{flex:none;padding:12px 18px;font-size:14px}
.upd-fig390{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start;margin:8px 0 24px}
.upd-fig390 .upd-shot{border-radius:var(--radius-xl)}
.upd-fig390 figcaption{margin-top:0;font-size:14px}
.upd-entry > .upd-where{padding-top:20px;border-top:1px solid var(--border)}
.upd-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.upd-nav-card{display:block;border:1px solid var(--border);border-radius:var(--radius-md);padding:12px 16px;transition:border-color .2s var(--ease)}
.upd-nav-card:hover{border-color:var(--accent-border)}
.upd-nav-card small{display:block;font-size:12px;color:var(--text-secondary);margin-bottom:4px}
.upd-nav-card b{font-size:14px;line-height:1.4;font-weight:600}

/* ── Блок на профильных страницах ── */
.upd-related{border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px}
.upd-related-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-bottom:14px}
.upd-related-head h2{font-size:20px;line-height:1.25;letter-spacing:-.02em;font-weight:700}
.upd-related-head a{font-size:14px;font-weight:600;color:var(--accent-active)}
.upd-related ul{border:1px solid var(--border-subtle);border-radius:var(--radius-md)}
.upd-related li{list-style:none}
.upd-related li + li{border-top:1px solid var(--border-subtle)}
.upd-related li a{display:grid;grid-template-columns:110px minmax(0,1fr) 16px;gap:16px;align-items:center;padding:14px 16px}
.upd-related li a:hover b{color:var(--accent-active)}
.upd-related time{font-size:13px;color:var(--text-secondary)}
.upd-related b{font-size:15px;line-height:1.4;font-weight:600}
.upd-related li span{color:var(--text-secondary)}

@media(max-width:900px){
  .upd-layout,.upd-layout--list{grid-template-columns:minmax(0,1fr);grid-template-areas:"filter" "list" "aside";gap:24px}
  .upd-filter{border:0;padding:0}
  .upd-filter h3{display:none}
  /* Плашки в одну строку с прокруткой вбок: каждая — целиком, текст не режется. */
  .upd-filter-list{flex-direction:row;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .upd-filter-list::-webkit-scrollbar{display:none}
  .upd-filter button{flex:none;width:auto;min-height:40px;padding:8px 14px;border:1px solid var(--border);border-radius:var(--radius-full);white-space:nowrap}
  .upd-filter button.on{border-color:var(--accent-border)}
  .upd-entry{max-width:none}
}
@media(max-width:640px){
  .upd-item{grid-template-columns:minmax(0,1fr);gap:6px;padding:20px 0 28px}
  .upd-item-date{display:flex;gap:6px;align-items:baseline}
  .upd-item-date time{display:inline}
  .upd-item h3{font-size:19px}
  .upd-ba,.upd-nav{grid-template-columns:minmax(0,1fr)}
  .upd-cta{flex-direction:column;align-items:stretch}
  .upd-fig390{grid-template-columns:minmax(0,1fr);justify-items:center}
  .upd-fig390 .upd-shot{max-width:300px}
  .upd-related{padding:18px 16px}
  .upd-related li a{grid-template-columns:minmax(0,1fr) 16px;gap:4px 12px}
  .upd-related time{grid-column:1/-1}
}
