/* Полезно: article pages (first one 2026-11-04, мукава).
   Loaded after styles.css, into the same @layer order, so nothing here can
   outrank a shared rule by accident. Only polezno/*.html link this file. */
@layer components {

  /* hero: the media hero from hartiq-i-karton / poruchka, with a still */
  .art-hero .hero-bg img { object-position:50% 62%; }
  .art-hero .hero-bg::after {
    background:
      repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px),
      radial-gradient(120% 110% at 12% 88%, rgba(6,20,21,.72) 0%, rgba(6,20,21,.38) 42%, rgba(6,20,21,0) 74%),
      linear-gradient(180deg, rgba(6,20,21,.30) 0%, rgba(6,20,21,.10) 40%, rgba(6,20,21,.40) 100%); }
  .art-hero .breadcrumb, .art-hero .breadcrumb a, .page-hero.art-hero .eyebrow { color:#fff; }
  .art-facts { display:flex; flex-wrap:wrap; gap:.5rem 1.4rem; margin-top:var(--sp-3);
    font-size:.86rem; color:var(--paper-200); font-variant-numeric:tabular-nums; }
  .art-facts span { display:inline-flex; align-items:center; gap:.5em; }
  .art-facts span::before { content:""; width:6px; height:6px; background:var(--brand-600); }

  /* layout: text column plus a sticky spec sheet on wide screens */
  .art { padding-block:var(--sp-6) var(--sp-7); }
  /* minmax(0,1fr), not the implicit auto column: auto grows to the widest
     child's min-content and pushed the phone layout to 564px */
  .art-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--sp-5); }
  @media (min-width:1000px) {
    .art-grid { grid-template-columns:minmax(0,1fr) 340px; column-gap:clamp(3rem,6vw,6rem); }
    .art-intro, .art-main { grid-column:1; }
    .art-aside { grid-column:2; grid-row:1 / span 2; align-self:start; position:sticky; top:104px; }
  }

  /* prose. :where() keeps these at one class of specificity, so every
     component below (captions, FAQ, cards) wins on source order. */
  .prose { max-width:42rem; }
  .prose :where(p, li) { color:var(--text-2); line-height:1.78; font-size:1.06rem; }
  .prose :where(p) { margin-bottom:1.1em; }
  .prose :where(p) strong { color:var(--text); font-weight:600; }
  .prose :where(p) a { color:var(--accent-ink); text-decoration:underline; text-decoration-thickness:1px;
    text-underline-offset:.2em; text-decoration-color:color-mix(in srgb,var(--brand-600) 55%,transparent); }
  .prose :where(p) a:hover { text-decoration-color:currentColor; }
  .art-lede { color:var(--text); font-size:clamp(1.18rem,1.05rem + .5vw,1.4rem); line-height:1.55; }
  .art-main h2 { font-size:clamp(1.8rem,1.3rem + 1.6vw,2.6rem); margin:var(--sp-7) 0 var(--sp-3); max-width:20ch; }
  .art-main h2 .h-idx { display:block; font-size:.78rem; font-weight:600; letter-spacing:.14em; color:var(--brand-600);
    margin-bottom:.9rem; font-variant-numeric:tabular-nums; }
  .art-main > section:first-child h2 { margin-top:var(--sp-5); }
  .art-main section { padding:0; }

  /* where it is used */
  .uses { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:1px; margin:var(--sp-4) 0;
    background:var(--line); border:1px solid var(--line); max-width:42rem; }
  .uses li { background:var(--surface); padding:1.1rem 1.2rem; display:flex; flex-direction:column; gap:.35rem; }
  .uses li b { font-weight:600; color:var(--text); font-size:1.02rem; }
  .uses li span { font-size:.84rem; color:var(--text-2); line-height:1.45; }

  /* thickness ranges from the catalogue */
  .thick { margin:var(--sp-4) 0; padding:var(--sp-4); background:var(--surface); border:1px solid var(--line); max-width:42rem; }
  .thick-title { font-size:.78rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--text-2); margin-bottom:var(--sp-3); }
  .thick-row { display:grid; grid-template-columns:9.5rem 1fr; align-items:center; gap:1rem; padding:.55rem 0; }
  .thick-row b { font-weight:600; font-size:.95rem; }
  .thick-row small { display:block; color:var(--text-2); font-size:.8rem; font-variant-numeric:tabular-nums; }
  .thick-track { position:relative; height:14px; background:var(--paper-100); }
  .thick-bar { position:absolute; top:0; bottom:0; left:calc(var(--a) / 4 * 100%); width:calc((var(--b) - var(--a)) / 4 * 100%);
    background:var(--brand-600); }
  .thick-bar.is-kraft { background:var(--kraft-500); }
  .thick-bar.is-ink { background:var(--brand-800); }
  .thick-axis { display:grid; grid-template-columns:9.5rem 1fr; gap:1rem; margin-top:.4rem; }
  .thick-scale { position:relative; height:1.4rem; font-size:.74rem; color:var(--text-2); font-variant-numeric:tabular-nums; }
  .thick-scale span { position:absolute; transform:translateX(-50%); }
  .thick-scale span:first-child { transform:none; }
  .thick-scale span:last-child { transform:translateX(-100%); }
  .thick-marker { position:absolute; top:-.4rem; bottom:-.4rem; left:50%; width:0; border-left:1.5px dashed var(--ink-700); }
  .thick-note { margin-top:var(--sp-2); font-size:.84rem; color:var(--text-2); }
  @media (max-width:560px) {
    .thick { padding:var(--sp-3); }
    .thick-row, .thick-axis { grid-template-columns:1fr; gap:.4rem; }
    .thick-axis > span:first-child { display:none; }
  }

  /* figures */
  .art-figure { margin:var(--sp-5) 0; max-width:52rem; }
  .art-figure img { display:block; width:100%; height:auto; border-radius:var(--r-media); }
  .art-figure figcaption { margin-top:.8rem; font-size:.86rem; color:var(--text-2); max-width:42rem;
    padding-left:1rem; border-left:2px solid var(--brand-600); }

  /* inline call to action */
  .cta-inline { margin:var(--sp-5) 0; max-width:52rem; padding:var(--sp-4); display:grid; grid-template-columns:1fr auto;
    gap:var(--sp-3); align-items:center; background:color-mix(in srgb,var(--brand-600) 11%,var(--paper-050));
    border:1px solid color-mix(in srgb,var(--brand-600) 30%,transparent); }
  .cta-inline h3 { font-size:clamp(1.25rem,1.05rem + .7vw,1.6rem); }
  .cta-inline p { color:var(--text-2); margin-top:.4rem; font-size:.96rem; max-width:48ch; }
  .cta-inline .btn { white-space:nowrap; }
  @media (max-width:720px) { .cta-inline { grid-template-columns:1fr; padding:var(--sp-3); } .cta-inline .btn { justify-self:start; } }

  /* sample checks */
  .checks { counter-reset:chk; margin:var(--sp-4) 0; max-width:42rem; border-top:1px solid var(--line); }
  .checks li { counter-increment:chk; display:grid; grid-template-columns:3.2rem 1fr; gap:var(--sp-2);
    padding:var(--sp-3) 0; border-bottom:1px solid var(--line); }
  .checks li::before { content:counter(chk, decimal-leading-zero); font-size:1.6rem; font-weight:300; color:var(--brand-600);
    line-height:1.1; font-variant-numeric:tabular-nums; }
  .checks b { display:block; color:var(--text); font-weight:600; margin-bottom:.2rem; }
  .checks span { color:var(--text-2); line-height:1.65; }

  /* what to send with the enquiry */
  .need { display:grid; grid-template-columns:1fr 1fr; gap:.7rem 2rem; margin:var(--sp-3) 0 var(--sp-4); max-width:42rem; }
  .need li { position:relative; padding-left:1.9rem; color:var(--text); line-height:1.45; }
  .need li::before { content:""; position:absolute; left:0; top:.15em; width:1.15rem; height:1.15rem; border:1.5px solid var(--brand-600); }
  .need li::after { content:""; position:absolute; left:.38rem; top:.32em; width:.38rem; height:.62rem;
    border:solid var(--brand-700); border-width:0 2px 2px 0; transform:rotate(45deg); }
  .need small { display:block; color:var(--text-2); font-size:.84rem; }
  @media (max-width:560px) { .need { grid-template-columns:1fr; } }

  /* FAQ */
  .faq { margin-top:var(--sp-3); max-width:42rem; border-top:1px solid var(--line); }
  .faq details { border-bottom:1px solid var(--line); }
  .faq summary { list-style:none; cursor:pointer; padding:1.15rem 2.5rem 1.15rem 0; position:relative;
    font-size:1.1rem; font-weight:500; color:var(--text); }
  .faq summary::-webkit-details-marker { display:none; }
  .faq summary::after { content:"+"; position:absolute; right:.2rem; top:50%; transform:translateY(-50%);
    font-size:1.5rem; font-weight:300; color:var(--brand-600); transition:transform var(--dur) var(--ease); }
  .faq details[open] summary::after { transform:translateY(-50%) rotate(45deg); }
  .faq details p { color:var(--text-2); line-height:1.7; padding:0 0 1.2rem; }

  /* the spec sheet beside the article */
  .spec-card { background:var(--surface); border:1px solid var(--line); }
  .spec-card-head { padding:var(--sp-3) var(--sp-3) var(--sp-2); border-bottom:1px solid var(--line); }
  .spec-card-head .eyebrow { color:var(--accent-ink); }
  .spec-card-head h2 { font-size:1.9rem; margin-top:.4rem; }
  .spec-card dl { padding:.4rem var(--sp-3); }
  .spec-card dl div { display:grid; grid-template-columns:7.4rem 1fr; gap:.8rem; padding:.7rem 0; border-bottom:1px dashed var(--line); }
  .spec-card dl div:last-child { border-bottom:0; }
  .spec-card dt { font-size:.74rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--text-2); padding-top:.15rem; }
  .spec-card dd { font-size:.95rem; color:var(--text); font-variant-numeric:tabular-nums; line-height:1.45; }
  .spec-card-cta { padding:var(--sp-3); border-top:1px solid var(--line); display:grid; gap:.8rem; background:var(--paper-050); }
  .spec-card-cta .btn { width:100%; }
  .spec-card-cta .link-arrow { justify-self:center; font-size:.92rem; }
  .spec-card-cta p { font-size:.82rem; color:var(--text-2); text-align:center; }
  .spec-card-cta p a { color:var(--text); font-weight:600; }

  /* related */
  .related { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:var(--sp-3); }
  .related a { background:var(--surface); padding:var(--sp-3); display:flex; flex-direction:column; gap:.4rem; min-height:9rem;
    transition:background var(--dur) var(--ease); }
  .related a:hover { background:var(--paper-050); }
  .related b { font-weight:600; font-size:1.05rem; color:var(--text); }
  .related span { font-size:.86rem; color:var(--text-2); line-height:1.5; }
  .related em { margin-top:auto; font-style:normal; font-weight:700; color:var(--accent-ink); font-size:.9rem; }
  @media (max-width:760px) { .related { grid-template-columns:1fr; } .related a { min-height:0; } }

  /* closing band */
  .art-cta .hero-cta { margin-top:var(--sp-4); }
  .art-cta .art-cta-mail { margin-top:var(--sp-3); font-size:.92rem; color:var(--paper-200); text-align:center; margin-inline:auto; }
  .art-cta .art-cta-mail a { color:#fff; font-weight:600; }

  /* phones: a quote bar once the hero has gone, gone again at the closing band */
  .mbar { display:none; }
  @media (max-width:999px) {
    .mbar { display:flex; position:fixed; left:12px; right:12px; bottom:12px; z-index:90; gap:.6rem; align-items:center;
      padding:.6rem .6rem .6rem 1rem; background:var(--brand-800); color:#fff; border-radius:var(--r-card);
      box-shadow:0 18px 40px -18px rgba(0,0,0,.6); transform:translateY(140%); transition:transform .35s var(--ease); }
    .mbar.is-on { transform:none; }
    .mbar span { flex:1; font-size:.9rem; line-height:1.25; }
    .mbar .btn { background:#fff; color:var(--brand-800); padding:.7rem 1rem; font-size:.92rem; }
  }
  @media (prefers-reduced-motion: reduce) { .mbar { transition:none; } }

  /* the section index, polezno/index.html (2026-11-09). One published guide as
     the feature card, the next ones as plain cards that link to the catalogue
     until their page exists. Whole-card link: same ::after overlay as .news-link. */
  .pz-topics { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:var(--sp-3); }
  .pz-topics li { font-family:var(--font-mono); font-size:.7rem; letter-spacing:.1em; text-transform:uppercase;
    padding:.4rem .8rem; border:1px solid var(--line); border-radius:100px; color:var(--text-2); background:var(--surface); }
  .pz-list { padding-block:var(--sp-6) var(--sp-7); }

  .pz-feature { position:relative; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden;
    transition:border-color var(--dur) var(--ease); }
  .pz-feature::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; z-index:2; background:var(--brand-600);
    transform:scaleX(0); transform-origin:left; transition:transform var(--dur) var(--ease); }
  .pz-feature:hover, .pz-feature:focus-within { border-color:var(--paper-300); }
  .pz-feature:hover::before, .pz-feature:focus-within::before { transform:scaleX(1); }
  .pz-feature-media { overflow:hidden; min-height:100%; }
  .pz-feature-media img { display:block; width:100%; height:100%; object-fit:cover; aspect-ratio:3 / 2;
    transition:transform .6s var(--ease); }
  .pz-feature:hover .pz-feature-media img { transform:scale(1.03); }
  .pz-feature-body { padding:clamp(1.5rem,1rem + 2.4vw,3rem); display:flex; flex-direction:column; gap:var(--sp-2); }
  .pz-feature-body h2 { font-size:clamp(1.6rem,1.2rem + 1.4vw,2.3rem); line-height:1.08; }
  .pz-feature-body > p { color:var(--text-2); line-height:1.65; }
  .pz-read { font-size:.84rem; color:var(--text-2); }
  .pz-inside { display:grid; gap:.45rem; margin:var(--sp-1) 0 var(--sp-2); }
  .pz-inside li { position:relative; padding-left:1.3rem; font-size:.94rem; color:var(--text); font-variant-numeric:tabular-nums; }
  .pz-inside li::before { content:""; position:absolute; left:0; top:.5em; width:6px; height:6px; background:var(--brand-600); }
  .pz-link { color:inherit; text-decoration:none; }
  .pz-link::after { content:""; position:absolute; inset:0; z-index:1; }
  .pz-link:focus-visible { outline:none; }
  .pz-link:focus-visible::after { outline:3px solid var(--brand-600); outline-offset:-3px; border-radius:var(--radius-lg); }
  .pz-feature:hover .pz-link { color:var(--brand-700); }
  .pz-feature:hover .news-more { color:var(--brand-800); }
  .pz-feature:hover .news-more svg { transform:translateX(4px); }

  .pz-next-head { margin:var(--sp-7) 0 var(--sp-4); display:flex; flex-wrap:wrap; align-items:baseline; gap:.4rem 1.4rem; }
  .pz-next-head h2 { font-size:clamp(1.6rem,1.3rem + 1vw,2.1rem); }
  .pz-next-head p { color:var(--text-2); }
  .pz-next { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--sp-3); }
  .pz-card { display:grid; grid-template-columns:9.5rem minmax(0,1fr); background:var(--surface); border:1px solid var(--line);
    border-radius:var(--radius-lg); overflow:hidden; }
  .pz-card img { display:block; width:100%; height:100%; object-fit:cover; }
  .pz-card { position:relative; }
  .pz-card:hover .pz-link { color:var(--brand-700); }
  .pz-card:hover .link-arrow { color:var(--brand-800); }
  .pz-card-body { padding:var(--sp-3); display:flex; flex-direction:column; gap:.6rem; }
  .pz-card h3 { font-size:1.2rem; line-height:1.15; }
  .pz-card p { color:var(--text-2); font-size:.92rem; line-height:1.55; }
  .pz-card .link-arrow { margin-top:auto; font-size:.9rem; }
  .pz-soon { font-family:var(--font-mono); font-size:.62rem; letter-spacing:.1em; text-transform:uppercase;
    color:var(--kraft-700); }

  @media (max-width:1100px) { .pz-next { grid-template-columns:1fr; } }
  @media (max-width:899px) {
    .pz-feature { grid-template-columns:1fr; }
    .pz-feature-media { min-height:0; }
  }
  @media (max-width:560px) {
    .pz-card { grid-template-columns:1fr; }
    .pz-card img { aspect-ratio:16 / 9; height:auto; }
  }
  @media (prefers-reduced-motion: reduce) { .pz-feature-media img { transition:none; } }
}
