/* TECH SERVICE · concept-g · поток blog: blog.html (список статей) и article.html (шаблон статьи).
   Поверх styles.css: те же токены, шрифты и компоненты. Десктоп 1280+, мобилка и планшет — до 1279px. */

/* ---------- хлебные крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; line-height: 1.3; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; padding: 6px 0; }
.crumbs a:hover { text-decoration-thickness: 2px; }
.crumbs [aria-current] { font-weight: 600; }
.nav a[aria-current="page"] { border-color: currentColor; }

/* ---------- плакатный первый экран: блог и статья ---------- */
.bh { height: calc(100svh - var(--hdr)); min-height: 700px; max-height: 1100px; }
.bh .crumbs { position: absolute; left: var(--pad); top: 14px; z-index: 4; }
.bh__mark { position: absolute; left: var(--pad); right: var(--pad); top: 56px; font: 800 20vw/.8 var(--f-d); text-transform: uppercase; white-space: nowrap; text-align: center; letter-spacing: -.005em; z-index: 1; user-select: none; }
.bh__man { position: absolute; bottom: 0; left: 57%; transform: translateX(-50%); height: 82%; width: auto; max-width: none; z-index: 2; pointer-events: none; }
.bh__l { position: absolute; left: var(--pad); bottom: clamp(28px, 4.6vh, 48px); width: min(40vw, 560px); z-index: 3; }
.bh__l > .cap { margin-bottom: 14px; }
.bh h1 { font: 800 clamp(48px, 4.6vw, 80px)/.88 var(--f-d); text-transform: uppercase; letter-spacing: -.003em; max-width: 9.4em; text-wrap: balance; }
.bh__lead { margin-top: 18px; font-size: 15px; line-height: 1.5; max-width: 42ch; }
.bh__lead b { font-weight: 600; }
.bh .dia { margin-top: 22px; }
.bh__cta { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.bh__r { position: absolute; right: var(--pad); top: calc(var(--mark-h, 230px) + 24px); bottom: clamp(28px, 4.6vh, 48px); width: clamp(220px, 19vw, 300px); z-index: 3; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 18px; }
.bh__q { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; text-align: left; }
.bh__q .live { width: 12px; height: 12px; background: var(--live); color: var(--p-ink); box-shadow: 0 0 0 2px var(--p-ink); }
.bh .ava img { background: #E6E6E4; }
@media (prefers-reduced-motion: no-preference) {
  .bh__man { animation: rise 1.2s cubic-bezier(.16,1,.3,1) both; }
  .bh__mark { animation: mark 1.2s cubic-bezier(.16,1,.3,1) both; }
}

/* статья: слово-призрак во всю ширину, стиральная машина перед ним */
.bh--art { max-height: 980px; min-height: 660px; }
.ah__mark { color: var(--p-ghost); }
[data-skin="orange"] .ah__mark { color: rgba(255,255,255,.24); }
.ah__img { position: absolute; z-index: 2; right: calc(var(--pad) + 3vw); bottom: 0; height: 70%; width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 26px 30px rgba(0,0,0,.24)); }
.ah__l { width: min(58vw, 880px); }
.bh--art h1 { font-size: clamp(40px, 3.6vw, 62px); max-width: none; text-wrap: nowrap; }  /* 2 строки: перенос после «воду:» */
.ah__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ah__chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; font: 600 13px/1 var(--f-t); text-transform: uppercase; letter-spacing: .05em; background: var(--p-ink); color: var(--p); }
.ah__chip--o { background: none; color: inherit; border: 1px solid var(--p-ink); }
a.ah__chip:hover { text-decoration: underline; text-underline-offset: 3px; }
.ah__by { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--p-line); }
.ah__ava img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--p-ink); }
.ah__by p { font-size: 14px; line-height: 1.4; }
.ah__by b { display: block; font-size: 17px; font-weight: 600; }
.ah__dates { text-align: right; white-space: nowrap; }
.ah__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.ah__n { padding-top: 12px; border-top: 1px solid var(--p-line); font-size: 14px; line-height: 1.3; }
.ah__n b { display: block; font: 800 clamp(34px, 2.9vw, 48px)/.9 var(--f-d); text-transform: uppercase; margin-bottom: 6px; white-space: nowrap; }
@media (max-height: 860px) and (min-width: 1280px) { .ah__nums { display: none; } }

/* ---------- 02 статья недели ---------- */
.feat__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr) minmax(250px, .72fr); gap: clamp(28px, 3vw, 56px); align-items: start; }
.feat__img { position: relative; display: block; align-self: stretch; min-height: 420px; overflow: hidden; background: var(--paper); }
.feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.feat__img:hover img { transform: scale(1.03); }
.feat__new { position: absolute; left: 0; top: 0; padding: 10px 14px 8px; background: var(--acc-fill); color: var(--acc-on); font: 800 19px/1 var(--f-d); text-transform: uppercase; letter-spacing: .04em; }
.feat__txt .post__chip { margin-top: 0; }
.feat__txt h2 { margin-top: 18px; font-size: clamp(32px, 2.7vw, 46px); }
.feat__txt h2 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.feat__txt .txt { margin-top: 18px; }
.byline { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.byline p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.byline b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.feat__m { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 14px 0 26px; font-size: 14px; color: var(--muted); }
.feat__m span + span::before { content: "·"; margin: 0 10px; }
.pop { align-self: stretch; border-left: 1px solid var(--line); padding-left: clamp(24px, 2.4vw, 40px); }
.pop ol { counter-reset: p; margin-top: 14px; border-bottom: 1px solid var(--line); }
.pop a { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); counter-increment: p; }
.pop a::before { content: counter(p, decimal-leading-zero); grid-row: 1 / 4; font: 800 40px/.8 var(--f-d); color: var(--num); }
.pop__r { font: 600 12px/1.3 var(--f-t); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pop b { margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.pop a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.pop__m { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- 03 все статьи ---------- */
.posts__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 30%); gap: 40px; align-items: end; }
.posts__top .txt { margin: 0; justify-self: end; }
.rubrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.rubrics button { min-height: 48px; padding: 0 16px; background: var(--paper); font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s; }
.rubrics button:hover { background: #E9E7E3; }
.rubrics sup { font-size: 12px; margin-left: 4px; color: var(--muted); }
.rubrics [aria-pressed="true"], .rubrics [aria-pressed="true"]:hover { background: var(--ink); color: #fff; }
.rubrics [aria-pressed="true"] sup { color: #D4D4D4; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; }
/* карточки на subgrid: обложка, рубрика, заголовок, анонс и подпись в ряду стоят на одной линии */
.pgrid .bpost { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 48px; }
.bpost.is-new { animation: swap .5s cubic-bezier(.2,.8,.2,1) both; }
.bpost h3 { align-self: start; }
.pgrid .bpost .post__chip { justify-self: start; }
.bpost p { align-self: start; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bpost__m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bpost__m img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.bpost__m span:first-of-type { color: var(--ink); font-weight: 600; }
.bpost__m span + span::before { content: "·"; margin-right: 8px; }
.posts__more { display: flex; align-items: center; gap: 24px; }
.posts__more [hidden] { display: none; }
.posts__c { font-size: 14px; color: var(--muted); }
.posts__c b { color: var(--ink); font-weight: 600; }

/* ---------- 04 подписка ---------- */
.bsub { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: clamp(40px, 6vw, 120px); align-items: end; padding: clamp(64px, 7vw, 104px) var(--pad) clamp(170px, 15vw, 250px); }
.bsub__ghost { position: absolute; left: var(--pad); right: var(--pad); bottom: -.1em; z-index: 0; text-align: center; font: 800 16vw/.8 var(--f-d); text-transform: uppercase; color: var(--p-ghost); white-space: nowrap; letter-spacing: -.01em; user-select: none; }
.bsub__l, .bsub__r { position: relative; z-index: 2; }
.bsub__l .cap { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.bsub .h-poster { font-size: clamp(56px, 5.8vw, 100px); }
.bsub__p { margin-top: 26px; font-size: 16px; max-width: 48ch; }
.bsub__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.soon { margin-top: 14px; border-bottom: 1px solid var(--p-line); }
.soon li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 15px 0 13px; border-top: 1px solid var(--p-line); }
.soon time { font: 800 26px/1 var(--f-d); text-transform: uppercase; }
.soon span { font-size: 16px; font-weight: 500; line-height: 1.35; }
.bsub__n { margin-top: 22px; font-size: 14px; }
.bsub__n b { display: block; font: 800 56px/.9 var(--f-d); margin-bottom: 4px; }
.bsub .vlines { display: none; }

/* ---------- 05 спросите инженера ---------- */
.asks__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 30%); gap: 40px; align-items: end; margin-bottom: 40px; }
.asks__top .txt { margin: 0; justify-self: end; }
.askgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ask { display: grid; grid-template-columns: clamp(130px, 11vw, 170px) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 20px; padding: 16px; background: var(--paper); }
.ask__ph { grid-row: 1 / -1; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #E6E6E4; align-self: start; }
.ask__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.ask:hover .ask__ph img { transform: scale(1.04); }
.ask__y { position: absolute; left: 0; bottom: 0; padding: 7px 9px 4px; background: #fff; font: 800 20px/1 var(--f-d); text-transform: uppercase; }
.ask__y small { display: block; font: 600 11px/1 var(--f-t); letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.ask__what { font: 600 12px/1.3 var(--f-t); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
.ask h3 { margin-top: 8px; font: 800 30px/.95 var(--f-d); text-transform: uppercase; letter-spacing: .01em; }
.ask__role { margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.ask__s { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; }
.ask__s .live { background: var(--live); color: var(--live); }
.ask .btn { align-self: end; margin-top: 14px; min-height: 52px; padding: 0 16px; font-size: 19px; }

/* ---------- статья: колонка текста ---------- */
.pa .shead > span:first-child { color: var(--ink); }
.pb { font-size: 17px; line-height: 1.65; }
.pb__s { scroll-margin-top: calc(var(--hdr) + 20px); }
.pb__s + .pb__s { margin-top: 56px; }
.pb h2 { margin-bottom: 18px; font: 600 clamp(28px, 2.4vw, 38px)/1.12 var(--f-t); letter-spacing: -.025em; max-width: none; }
.pb h3 { font: 600 21px/1.3 var(--f-t); letter-spacing: -.01em; }
.pb__s > h3 { margin: 30px 0 10px; }
.pb p + p { margin-top: 14px; }
.pb__lead { font-size: 19px; line-height: 1.55; font-weight: 500; }
.tldr { margin-bottom: 30px; padding: 24px 28px; background: var(--paper); border-left: 4px solid var(--ico); }
.tldr ul { margin-top: 12px; display: grid; gap: 10px; }
.tldr li, .pb__list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; }
.tldr li::before, .pb__list li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 7px; height: 7px; background: var(--ico); transform: rotate(45deg); }
.pb__list { margin-top: 16px; display: grid; gap: 10px; }
.bars { margin-top: 20px; border-top: 1px solid var(--ink); }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.bars span { font-size: 16px; }
.bars b { font: 800 32px/.9 var(--f-d); color: var(--num); }
.bars li::after { content: ""; grid-column: 1 / -1; height: 6px; background: linear-gradient(90deg, var(--num) var(--v), var(--paper) 0); }
.ksteps { counter-reset: k; margin-top: 28px; border-top: 2px solid var(--ink); }
.ksteps li { display: grid; grid-template-columns: 76px minmax(0, 1fr) clamp(200px, 17vw, 250px); grid-template-areas: "n t ph" "n p ph"; grid-template-rows: auto 1fr; column-gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); counter-increment: k; }
.ksteps li::before { grid-area: n; content: counter(k, decimal-leading-zero); font: 800 70px/.78 var(--f-d); color: var(--num); letter-spacing: -.02em; }
.ksteps__t { grid-area: t; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ksteps__d { font: 600 12px/1 var(--f-t); text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px 5px; border: 1px solid var(--ink); white-space: nowrap; }
.ksteps li > p { grid-area: p; margin-top: 8px; font-size: 16px; line-height: 1.55; }
.ksteps__ph { grid-area: ph; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.ksteps__ph img, .pb__fig button img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.ksteps__ph:hover img, .pb__fig button:hover img { transform: scale(1.04); }
.tip { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; margin-top: 32px; padding: 24px 26px; background: var(--paper); border-top: 3px solid var(--ico); }
.tip > img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.tip__h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 600 13px/1 var(--f-t); text-transform: uppercase; letter-spacing: .06em; }
.tip__h .i { color: var(--ico); width: 22px; height: 22px; }
.tip p { font-size: 16px; line-height: 1.55; }
.pb .tip__n { margin-top: 10px; font-size: 14px; color: var(--muted); }
.pb__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.pb__fig button { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.pb__fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pb__fig figcaption b { color: var(--ink); font-weight: 600; }
.pb__q { margin: 40px 0 0; padding: 26px 0 0; border-top: 2px solid var(--ink); }
.pb__q p { font: 800 clamp(30px, 2.5vw, 40px)/.98 var(--f-d); text-transform: uppercase; letter-spacing: .005em; }
.pb__q p::before { content: "«"; color: var(--num); } .pb__q p::after { content: "»"; color: var(--num); }
.pb__q footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.pb__q footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.pb__q footer b { display: block; color: var(--ink); font-size: 15px; }
.pb__price { margin-top: 18px; border-top: 1px solid var(--ink); }
.pb .prow { grid-template-columns: minmax(0, 1fr) 110px 150px 48px; }
.pb .prow__n { font-size: 16px; }
#artPriceMore { margin-top: 24px; }
#artPriceMore[hidden] { display: none; }
.pcta { margin-top: 40px; padding: 30px 32px 32px; }
.pcta .cap { display: flex; align-items: center; gap: 12px; }
.pcta .live { background: var(--p-ink); color: var(--p-ink); }
.pcta__h { margin-top: 16px; font: 800 clamp(38px, 3.1vw, 52px)/.9 var(--f-d); text-transform: uppercase; }
.pb .pcta__p { margin-top: 14px; font-size: 15px; line-height: 1.5; max-width: 52ch; }
.pcta__b { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pb__num { counter-reset: n; margin-top: 8px; border-top: 1px solid var(--line); }
.pb__num li { position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--line); counter-increment: n; font-size: 16px; line-height: 1.5; }
.pb__num li::before { content: "[" counter(n, decimal-leading-zero) "]"; position: absolute; left: 0; top: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pb__num b { font-weight: 600; }
.pb__num + p { margin-top: 18px; }
.useful { padding: 28px; border: 1px solid var(--line); }
.pb .useful__h { margin: 0; font: 800 44px/.9 var(--f-d); text-transform: uppercase; letter-spacing: 0; }
.useful__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.useful__b { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 600; transition: background-color .2s, color .2s; }
.useful__b span { font: 800 22px/1 var(--f-d); padding-left: 10px; border-left: 1px solid currentColor; font-variant-numeric: tabular-nums; }
.useful__b:hover { background: var(--paper); }
.useful__b[aria-pressed="true"], .useful__b[aria-pressed="true"]:hover { background: var(--acc-fill); color: var(--acc-on); border-color: var(--acc-fill); }
[data-skin="lime"] .useful__b[aria-pressed="true"] { border-color: #111310; }
.useful.is-done .useful__b[aria-pressed="false"] { opacity: .45; }
.i--dn { transform: rotate(180deg) scaleX(-1); }
.pb .useful__thx { margin-top: 14px; font-size: 15px; }
.pb .useful__m { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.useful__m b { color: var(--ink); font-weight: 600; }
.expert__f { font-size: 13px; color: var(--muted); line-height: 1.4; }
.toc__prog { position: relative; height: 2px; margin-top: 16px; background: var(--line); }
.toc__prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
.pa .article__grid { grid-template-columns: minmax(220px, 1fr) minmax(0, 760px) minmax(300px, 1fr); }

/* ---------- связанные услуги ---------- */
.bsvc { padding: 26px var(--pad) clamp(72px, 7vw, 104px); }
.bsvc__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); gap: 40px; align-items: end; position: relative; z-index: 2; }
.bsvc__p { font-size: 16px; justify-self: end; max-width: 40ch; }
.svcgrid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.svcgrid { row-gap: 0; }
.svc { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 12px 12px 18px; background: #fff; color: var(--ink); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.svc:hover { transform: translateY(-4px); }
.svc__ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.svc__ph img { width: 100%; height: 100%; object-fit: cover; }
.svc--dev .svc__ph img { object-fit: contain; padding: 10px; }
.svc__n { margin-top: 14px; font: 800 27px/.95 var(--f-d); text-transform: uppercase; letter-spacing: .01em; padding-right: 8px; }
.svc__t { margin-top: 8px; font-size: 14px; color: var(--muted); }
.svc__p { align-self: end; margin-top: 16px; padding-right: 52px; font: 800 32px/1 var(--f-d); color: var(--num); }
.svc__p em { font: 600 13px/1 var(--f-t); font-style: normal; color: var(--muted); margin-right: 5px; text-transform: uppercase; }
.svc__ar { position: absolute; right: 12px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--ink); transition: background-color .2s, color .2s; }
.svc:hover .svc__ar { background: var(--acc-fill); color: var(--acc-on); border-color: var(--acc-fill); }
[data-skin="lime"] .svc:hover .svc__ar { border-color: #111310; }
.bsvc .vlines { display: none; }

.lb img { background: #fff; }
.blog .post { scroll-snap-align: start; }

/* ---------- линии сетки не проходят через текст (десктоп) ---------- */
@media (min-width: 1280px) {
  .bh .vlines { left: 46%; right: calc(var(--pad) + clamp(220px, 19vw, 300px) + 24px); width: auto; }
  .bh--art .vlines { left: calc(var(--pad) + min(58vw, 880px) + 32px); right: var(--pad); }
}
@media (min-width: 1700px) {
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1360px) {
  .bh__man { height: 78%; left: 61%; }
  .feat__grid { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }
  .pop { grid-column: 1 / -1; border: 0; padding: 0; }
  .pop ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; border: 0; }
  .svcgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .svc__n { font-size: 24px; }
  .ask { grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; }
  .ah__img { height: 68%; }
}

/* ======================================================================
   МОБИЛКА И ПЛАНШЕТ (до 1279px): плакатная сцена как на главной
   ====================================================================== */
@media (max-width: 1279px) {
  /* ---------- первый экран блога ---------- */
  .bh { height: calc(100svh - var(--hdr)); min-height: 520px; max-height: 1000px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
    grid-template-areas: "cr cr" "stage stage" "h h" "lead lead" "crew q" "cta cta"; padding: 6px var(--pad) 18px; }
  .bh .crumbs { position: static; grid-area: cr; font-size: 14px; }
  .bh__mark, .bh .big, .bh__l > .cap, .bh .dia, .bh .lnk, .crew__s { display: none !important; }
  .bh__l, .bh__r { display: contents; }
  .bh .m-word { grid-area: stage; align-self: start; margin-top: 2px; }
  .bh__man { position: relative; grid-area: stage; justify-self: center; align-self: end; left: auto; transform: none; z-index: 2; height: calc(100% - var(--mwf, 40vw) * .42); width: auto; max-width: 100%; max-height: 100%; margin: 0; object-fit: contain; object-position: 50% 100%; animation-name: rise-m;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); }
  .bh h1 { grid-area: h; position: relative; z-index: 3; margin-top: -.42em; font-size: clamp(40px, 13.1vw, 84px); line-height: .86; max-width: none; }
  .bh__lead { grid-area: lead; position: relative; z-index: 3; margin-top: 12px; font-size: 15px; max-width: 46ch; }
  .bh .crew { grid-area: crew; flex-direction: row; align-items: center; gap: 10px; margin-top: 16px; text-align: left; }
  .bh .crew b { font-size: 20px; line-height: .95; }
  .bh .ava img { width: 34px; height: 34px; margin-left: -10px; }
  .bh .ava img:first-child { margin-left: 0; }
  .bh .ava img:nth-child(n+4) { display: none; }
  .bh { grid-template-areas: "cr cr" "stage stage" "h h" "lead lead" "crew crew" "cta cta"; }
  .bh__q { display: none; }
  .bh .crew p { white-space: nowrap; }
  .bh__cta { grid-area: cta; margin-top: 16px; }
  .bh__cta .btn { width: 100%; }

  /* ---------- первый экран статьи ---------- */
  .bh--art { height: auto; min-height: 0; max-height: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto auto; grid-template-areas: "cr" "stage" "chips" "h" "by" "nums"; }
  .bh--art .m-word { color: var(--p-ghost); }
  [data-skin="orange"] .bh--art .m-word { color: rgba(255,255,255,.24); }
  .bh--art .bh__l { display: contents; }
  .ah__img { position: relative; grid-area: stage; right: auto; bottom: auto; justify-self: center; align-self: start; height: auto; width: min(64%, 340px); max-width: none; max-height: none; margin: calc(var(--mwf, 40vw) * .34) 0 0; object-fit: contain; -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 18px 22px rgba(0,0,0,.24)); }
  .ah__chips { grid-area: chips; position: relative; z-index: 3; margin: 16px 0 0; gap: 6px; }
  .ah__chip { font-size: 12px; padding: 0 9px; letter-spacing: .03em; }
  .bh--art h1 { margin-top: 14px; font-size: clamp(34px, 11.4vw, 64px); line-height: .9; text-wrap: wrap; }
  .bh--art h1 .soft { display: block; margin-top: .2em; font-size: .62em; white-space: nowrap; }
  .ah__br { display: none; }
  .ah__by { grid-area: by; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; margin-top: 18px; }
  .ah__ava { grid-row: 1 / 3; }
  .ah__ava img { width: 52px; height: 52px; }
  .ah__dates { text-align: left; white-space: normal; }
  .ah__dates br { display: none; }
  .ah__nums { grid-area: nums; gap: 12px; }
  .ah__n b { font-size: clamp(25px, 7vw, 44px); }

  /* ---------- статья недели ---------- */
  .feat__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feat__img { margin: 0 calc(-1 * var(--pad)); aspect-ratio: 4 / 3; }
  .feat__new { font-size: 17px; }
  .feat__txt h2 { font-size: clamp(30px, 8.6vw, 46px); line-height: 1.02; }
  .feat__txt .btn { width: 100%; }
  .feat__m span:nth-child(3) { display: none; }
  .pop { margin-top: 12px; }
  .pop ol { display: block; border-bottom: 1px solid var(--line); }
  .pop__r { font-size: 13px; }

  /* ---------- все статьи: лента — первая карточка крупно, дальше компактные строки ---------- */
  .posts__top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .posts__top .txt { justify-self: start; }
  .rubrics { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 18px calc(-1 * var(--pad)) 22px; padding: 0 var(--pad); border: 0; gap: 6px; }
  .rubrics::-webkit-scrollbar { display: none; }
  .rubrics button { flex: none; white-space: nowrap; }
  .rubrics sup { font-size: 13px; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pgrid .bpost { display: grid; grid-row: auto; grid-template-rows: none; grid-template-columns: 38% minmax(0, 1fr); grid-template-areas: "img chip" "img h" "img m"; column-gap: 14px; align-content: start; padding: 16px 0; border-top: 1px solid var(--line); }
  .pgrid .bpost .post__img { grid-area: img; aspect-ratio: 1; align-self: start; }
  .pgrid .bpost .post__chip { grid-area: chip; margin: 0; padding: 0; border: 0; font-size: 12px; color: var(--muted); }
  .pgrid .bpost h3 { grid-area: h; margin-top: 6px; font-size: 17px; line-height: 1.25; }
  .pgrid .bpost p { display: none; }
  .pgrid .bpost .post__m { grid-area: m; padding-top: 8px; font-size: 13px; }
  .pgrid .bpost .bpost__m img, .pgrid .bpost .bpost__m span:first-of-type { display: none; }
  .pgrid .bpost .bpost__m span + span::before { display: none; }
  .pgrid .bpost:first-child { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "chip" "h" "p" "m"; padding-top: 0; border: 0; }
  .pgrid .bpost:first-child .post__img { aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--pad)) 14px; }
  .pgrid .bpost:first-child h3 { font-size: 22px; }
  .pgrid .bpost:first-child p { display: -webkit-box; grid-area: p; margin-top: 8px; font-size: 15px; }
  .posts__more { flex-direction: column-reverse; align-items: stretch; gap: 12px; margin-top: 8px; }
  .posts__more .btn { width: 100%; }
  .posts__c { text-align: center; }

  /* ---------- подписка ---------- */
  .bsub { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding: 40px var(--pad) 120px; }
  .bsub .h-poster { font-size: clamp(50px, 14vw, 92px); }
  .bsub__p { font-size: 15px; margin-top: 18px; }
  .bsub__cta { flex-direction: column; margin-top: 22px; }
  .bsub__cta .btn { width: 100%; }
  .bsub .vlines { display: none; }
  .soon li { grid-template-columns: 68px minmax(0, 1fr); }
  .soon span { font-size: 15px; }

  /* ---------- спросите инженера: слайдер по одной ---------- */
  .asks__top { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 20px; }
  .asks__top .txt { justify-self: start; }
  .askgrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(88%, 380px); gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .askgrid::-webkit-scrollbar { display: none; }
  .ask { scroll-snap-align: start; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; padding: 14px; }
  .ask h3 { font-size: 26px; }
  .ask__what, .ask__y small { font-size: 12px; }
  .ask .btn { grid-column: 1 / -1; width: 100%; }
  .ask__ph { grid-row: 1 / 5; }

  /* ---------- статья ---------- */
  .pa .article__grid { grid-template-columns: minmax(0, 1fr); }
  .pa .shead > span:first-child { font-size: 13px; }
  .toc__prog { display: none; }
  .expert__f { display: none; }
  .pb { font-size: 16px; }
  .pb h2 { font-size: clamp(26px, 7.4vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
  .pb__s + .pb__s { margin-top: 44px; }
  .pb__lead { font-size: 17px; }
  .tldr { padding: 18px 18px; margin: 0 calc(-1 * var(--pad)) 24px; border-left-width: 0; border-top: 4px solid var(--ico); }
  .ksteps li { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "n t" "p p" "ph ph"; grid-template-rows: auto; column-gap: 12px; padding: 20px 0; }
  .ksteps li::before { font-size: 54px; }
  .ksteps__ph { margin-top: 14px; }
  .ksteps li > p { font-size: 15px; }
  .tip { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
  .tip > img { width: 48px; height: 48px; }
  .tip p { font-size: 15px; }
  .pb__figs { grid-template-columns: minmax(0, 1fr); }
  .pb__q p { font-size: clamp(28px, 8vw, 40px); }
  .pb .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .pb__price .prow__n small { font-size: 14px; }
  #artPriceMore { width: 100%; }
  .pcta { margin: 32px calc(-1 * var(--pad)) 0; padding: 24px var(--pad) 26px; }
  .pcta__h { font-size: clamp(36px, 10vw, 52px); }
  .pcta__b { flex-direction: column; }
  .pcta__b .btn { width: 100%; }
  .useful { padding: 20px 0 0; border: 0; border-top: 2px solid var(--ink); }
  .useful__row { display: grid; grid-template-columns: 1fr 1fr; }
  .useful__b { justify-content: center; padding: 0 10px; font-size: 14px; }
  .useful__b > .i { display: none; }

  /* ---------- связанные услуги: слайдер ---------- */
  .bsvc { padding: 24px var(--pad) 48px; }
  .bsvc__top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bsvc__p { justify-self: start; font-size: 15px; }
  .svcgrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 22px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .svcgrid::-webkit-scrollbar { display: none; }
  .svc { scroll-snap-align: start; grid-row: auto; grid-template-rows: auto auto auto 1fr; }
  .svc:hover { transform: none; }
  .svc__n { font-size: 26px; }
  .bsvc .mdots { color: var(--p-ink); }
}

@media (max-width: 1279px) and (max-height: 720px) {
  .pg-blog .bh__lead { display: none; }
}

/* планшет */
@media (min-width: 700px) and (max-width: 1279px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .pgrid .bpost, .pgrid .bpost:first-child { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "chip" "h" "p" "m"; padding: 0 0 36px; border: 0; }
  .pgrid .bpost .post__img, .pgrid .bpost:first-child .post__img { aspect-ratio: 4 / 3; margin: 0 0 14px; }
  .pgrid .bpost p { display: -webkit-box; grid-area: p; margin-top: 8px; }
  .pgrid .bpost h3 { font-size: 20px; }
  .askgrid, .svcgrid { grid-auto-columns: calc((100% - 12px) / 2.15); }
  .bsub__cta { flex-direction: row; }
  .bsub__cta .btn { width: auto; }
  .ah__img { width: min(56%, 420px); }
  .pop ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
.blog__nav .lnk--ink { min-height: 44px; }
