/* pervaya-pomoshch.ru — стиль «Пульс»: шапка статьи, #feedback, #byline, подвал.
   Источник: /workspace/pp-stage1-src/pulse-blocks-redesign.html (+ режим для слабовидящих из footer-redesign.html). */
/* ==========================================================================
   1. КОМПАКТНАЯ ШАПКА СТАТЬИ (.phead + .pmeta + .pm-by) И YMYL-ПЛАШКА (.ymyl-bar)
   ========================================================================== */
h1,h2{letter-spacing:0}
.top.in{
  border-radius:0 0 32px 32px;
}
.top.in .hdr{
  padding-bottom:10px;
}
.top.in .nav{
  margin-top:10px;
}
.phead{
  grid-template-columns:minmax(0,1fr) 260px;
  gap:20px 36px;
  align-items:center;
  padding:10px 0 52px;
}
.phead h1{
  margin-top:6px;
  font-size:3.25rem;
  line-height:1.02;
  letter-spacing:0;
  max-width:16em;
}
.phead .lead{
  margin-top:10px;
  font-size:1.0625rem;
  line-height:1.45;
  color:var(--on-dark-2);
  max-width:42em;
}
.pmeta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:16px;
  margin-top:14px;
  color:var(--on-dark-2);
  font-size:.9375rem;
}
.pmeta-authors{
  margin-top:8px;
}
@media (max-width:767px){
  .pmeta-authors{margin-top:6px}
}
.pmeta li{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.pmeta-tip{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:default;
}
.pmeta-tip:focus-visible{
  outline:2px solid var(--sky);
  outline-offset:3px;
  border-radius:6px;
}
.pmeta-tip::after{
  content:attr(data-tip);
  position:absolute;
  left:0;
  top:calc(100% + 6px);
  z-index:20;
  padding:6px 10px;
  border-radius:8px;
  background:#fff;
  color:var(--navy);
  font-size:.8125rem;
  font-weight:400;
  line-height:1.3;
  white-space:nowrap;
  box-shadow:0 8px 24px rgba(7,27,61,.35);
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity .15s ease,transform .15s ease,visibility .15s ease;
}
.pmeta-tip:hover::after,
.pmeta-tip:focus-visible::after,
.pmeta-tip.is-tip-open::after{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.pmeta .i{
  width:16px;
  height:16px;
  color:var(--sky);
  flex:none;
}
.pmeta-share{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  height:auto;
  margin:0;
  padding:0;
  border:1px solid rgba(169,196,245,.22);
  border-radius:8px;
  background:rgba(169,196,245,.08);
  color:var(--sky);
  cursor:pointer;
  transition:background .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease);
}
.pmeta-share:hover,
.pmeta-share:focus-visible{
  background:rgba(169,196,245,.18);
  border-color:rgba(169,196,245,.5);
  color:#fff;
}
.pmeta-share .i{
  color:currentColor;
}
.pmeta a{
  color:var(--on-dark-2);
  font-weight:400;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1.5px;
  text-decoration-color:rgba(169,196,245,.55);
  transition:text-decoration-color .2s var(--ease);
}
.pmeta a:hover,
.pmeta a:focus-visible{
  color:#fff;
  text-decoration-color:#fff;
}

.ph-vis{align-self:center;max-width:260px;justify-self:end}
@media (max-width:767px){.ph-vis{display:none}}

/* Компактный YMYL-дисклеймер на темном фоне шапки */
.ymyl-bar{
  margin-top:12px;
  padding:8px 14px;
  border-radius:4px 12px 12px 4px;
  background:rgba(169,196,245,.08);
  border:1px solid rgba(169,196,245,.18);
  border-left:3px solid var(--sky);
  color:var(--on-dark-2);
  font-size:.8125rem;
  line-height:1.42;
  max-width:44rem;
}
.ymyl-bar b{
  color:#fff;
}
.ymyl-bar a{
  color:#fff;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Первые блоки статьи подтянуты ближе к шапке, чтобы контент начинался на первом экране */
.facts{
  margin-top:20px;
}
.doc{
  margin-top:24px;
}
.answer{
  margin:0;
  padding:20px 22px;
  border-radius:20px;
  background:var(--mist);
  color:var(--ink);
  font-size:1rem;
  line-height:1.55;
}
.answer b{
  color:var(--navy);
}

@media (max-width:767px){
  .top.in{
    border-radius:0 0 24px 24px;
  }
  .phead{
    grid-template-columns:minmax(0,1fr);
    gap:12px;
    padding:4px 0 44px;
  }
  .phead h1{
    margin-top:8px;
    font-size:1.875rem;
    line-height:1.08;
  }
  .phead .lead{
    margin-top:10px;
    font-size:.9375rem;
    line-height:1.42;
  }
  .pmeta{
    margin-top:12px;
    gap:16px;
    font-size:.8125rem;
  }
  .pmeta .i{
    width:16px;
    height:16px;
  }
  .ymyl-bar{margin-top:10px;padding:7px 12px;font-size:.75rem;line-height:1.36}
  .facts{
    margin-top:14px;
    gap:8px;
  }
  .facts li{
    padding:14px 16px;
    border-radius:16px;
    gap:4px;
  }
  .facts .fv{
    font-size:1.125rem;
  }
  .facts span{
    font-size:.875rem;
    line-height:1.4;
  }
  .doc{
    margin-top:20px;
  }
}

html[data-scheme] .ymyl-bar{background:var(--bg);border:2px solid var(--ink);color:var(--ink)}

/* ==========================================================================
   2. БЛОК «НАД МАТЕРИАЛОМ РАБОТАЛИ» (.byline)
   ========================================================================== */
.byline{
  margin-top:40px;
  padding:26px 28px;
  border-radius:24px;
  background:var(--mist);
  border:1px solid var(--line);
  max-width:48rem;
}
.byline-top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 20px;
}
.byline-foot{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
}
@media (max-width:767px){
  .byline-foot{margin-top:16px;padding-top:14px}
  .byline-foot .bd-policy{width:100%;justify-content:center;min-height:44px}
}
.byline-h{
  font-weight:700;
  color:var(--navy);
  font-size:1.125rem;
  line-height:1.25;
  margin:0;
}
.byline .bd-policy{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:36px;
  padding:6px 14px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--navy);
  font-size:.875rem;
  font-weight:700;
  text-decoration:none;
  transition:background .2s var(--ease),border-color .2s var(--ease);
}
.byline .bd-policy:hover,
.byline .bd-policy:focus-visible{
  background:var(--tint);
  border-color:var(--navy-2);
  color:var(--navy);
  text-decoration:none;
}
.byline .bd-policy .i{
  width:1rem;
  height:1rem;
  color:var(--navy-2);
}
.byline ul{
  list-style:none;
  margin:18px 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 28px;
}
.byline li{
  display:flex;
  gap:14px;
  align-items:center;
  min-width:0;
}
.byline img{
  width:56px;
  height:56px;
  border-radius:50%;
  object-fit:cover;
  flex:none;
  border:2px solid #fff;
  box-shadow:0 2px 10px rgba(11,42,91,.08);
  background:var(--tint);
}
.byline li span{
  display:grid;
  gap:2px;
  line-height:1.3;
  min-width:0;
}
.byline small{
  color:var(--navy-2);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.byline li a{
  justify-self:start;
  color:var(--navy);
  font-size:1.0625rem;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:1.5px;
  text-decoration-color:rgba(11,42,91,.28);
  transition:text-decoration-color .2s var(--ease);
}
.byline li a:hover,
.byline li a:focus-visible{
  text-decoration-color:var(--navy);
}
.byline em{
  font-style:normal;
  color:var(--muted);
  font-size:.875rem;
  line-height:1.35;
}

/* Нижняя полоса с разведенными датами и ссылкой на редакционную политику */
.byline .byline-d{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px 24px;
  font-size:.9375rem;
  color:var(--muted);
}
.byline .bd-dates{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 0;
  margin:0;
}
.byline .bd-date{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
}
.byline .bd-date + .bd-date{
  margin-left:20px;
  padding-left:20px;
  border-left:1px solid var(--line);
}
.byline .bd-date time{
  font-weight:700;
  color:var(--navy);
  font-variant-numeric:tabular-nums;
  margin-left:0;
}
.byline .byline-d .bd-policy{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:38px;
  padding:6px 14px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--navy);
  font-size:.9375rem;
  font-weight:700;
  text-decoration:none;
  transition:background .2s var(--ease),border-color .2s var(--ease);
}
.byline .byline-d .bd-policy:hover,
.byline .byline-d .bd-policy:focus-visible{
  background:var(--tint);
  border-color:var(--navy-2);
  color:var(--navy);
  text-decoration:none;
}
.byline .byline-d .bd-policy .i{
  width:1rem;
  height:1rem;
  color:var(--navy-2);
}

@media (max-width:767px){
  .byline{
    padding:20px 18px;
    border-radius:20px;
  }
  .byline ul{
    grid-template-columns:minmax(0,1fr);
    gap:16px;
  }
  .byline img{
    width:48px;
    height:48px;
  }
  .byline-top{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .byline .bd-policy{
    justify-content:center;
    min-height:44px;
    width:100%;
  }
}

html[data-scheme] .byline,
html[data-scheme] .byline .byline-d,
html[data-scheme] .byline .bd-date + .bd-date,
html[data-scheme] .byline .bd-policy{
  border-color:var(--ink);
}
html[data-scheme] .byline .bd-policy{
  background:var(--bg);
  color:var(--ink);
}
html[data-fs] .byline ul{
  grid-template-columns:minmax(0,1fr);
}

/* ==========================================================================
   3. ПОДВАЛ САЙТА (.ftr + .band)
   ========================================================================== */
.ftr{
  margin-top:96px;
  background:var(--deep);
  color:#fff;
  border-radius:48px 48px 0 0;
  overflow:hidden;
}
.ftr .wrap{
  display:block;
  padding:56px 0 40px;
}
.ftr-top{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr);
  gap:32px 48px;
  align-items:start;
}
.ftr-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:16px;
}
.ftr-brand .logo{min-height:0}
.ftr-brand .lgs .lg-m{width:52px;height:52px}
.ftr-brand .logo b{font-size:1.625rem;letter-spacing:-.01em}
.ftr-copy{
  color:var(--foot-muted);
  font-size:.9375rem;
  font-weight:400;
  line-height:1.5;
  max-width:22rem;
}
.ftr-copy strong{
  display:block;
  color:#fff;
  font-weight:700;
  font-size:1rem;
  margin-bottom:4px;
}
.ftr-nav{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-column:span 2;
  gap:28px 40px;
}
.ftr-col{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ftr-nav-h{
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--sky);
  margin:0;
}
.ftr-nav ul{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.ftr-nav a{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  color:var(--foot-muted);
  font-size:.9375rem;
  font-weight:400;
  line-height:1.35;
  text-decoration:none;
  transition:color .2s var(--ease);
}
.ftr-nav a:hover,
.ftr-nav a:focus-visible{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:1.5px;
  text-decoration-color:var(--sky);
}
.ftr-legal{
  margin-top:40px;
  padding-top:32px;
  border-top:1px solid rgba(169,196,245,.16);
  display:grid;
  gap:16px;
  color:var(--foot-muted);
  font-size:.9375rem;
  line-height:1.6;
}
.ftr-legal p{
  margin:0;
  max-width:none;
}
.ftr-legal a{
  color:#fff;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:1.5px;
  text-decoration-color:rgba(169,196,245,.55);
  transition:text-decoration-color .2s var(--ease);
}
.ftr-legal a:hover,
.ftr-legal a:focus-visible{
  text-decoration-color:#fff;
}
.ftr-disc strong{
  color:#fff;
  font-weight:700;
  white-space:nowrap;
}
@font-face{
  font-family:'Open Sans Cond';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('/assets/fonts/OpenSans-Cond75-Regular-cyr.woff2?v=388f92b734') format('woff2');
}
/* Плашка противопоказаний v2.1 (Веб-дизайнер 04.12.2026 20:39, «да» Сергея): две строки одной ширины, Oswald Light+Regular, плавный кегль 18-30px */
@font-face{
  font-family:'Oswald Band';
  font-style:normal;
  font-weight:300;
  font-display:swap;
  src:url('/assets/fonts/Oswald-Light-cyr.woff2?v=e0d6364f0b') format('woff2');
}
@font-face{
  font-family:'Oswald Band';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('/assets/fonts/Oswald-Regular-cyr.woff2?v=3f1090650e') format('woff2');
}
.band{
  display:flex;
  justify-content:center;
  align-items:center;
  background:var(--band);
  color:#6e6e6e;
  font-size:16px; /* сбросить растягивающий calc из pulse.css */
  font-weight:400;
  letter-spacing:0;
  line-height:normal;
  text-transform:none;
  padding:16px var(--pad) 24px; /* снизу на 8px больше: у Oswald чернила чуть ниже в em, визуально поля равные */
  width:100%;
  margin:0;
  text-align:center;
}
.band-box{
  /* 30px на ПК (≥1024). Ниже 1024 — масштаб 100vw/1024, не меньше 18px. */
  font-size:clamp(1.125rem, calc(100vw * 30 / 1024), 1.875rem);
  /* уже 358px (320-357): 18px не помещается в поля, кегль по ширине - та же формула, что у html[data-fs] .band-box в пакете дизайнера; от 358px без изменений */
  font-size:min(clamp(1.125rem, calc(100vw * 30 / 1024), 1.875rem), calc((100vw - 2 * var(--pad)) / 18.12));
  width:max-content;
  max-width:100%;
  display:flex;
  flex-direction:column;
  gap:0.07em;
  margin:0;
}
.band-l1,
.band-l2{
  display:block;
  width:auto;
  margin:0;
  padding:0;
  border:0;
  line-height:1;
  height:1em;
  overflow:visible;
  white-space:nowrap;
  font-family:'Oswald Band','Arial Narrow',Arial,sans-serif;
  font-style:normal;
  text-transform:uppercase;
  text-align:left;
  letter-spacing:0;
  text-rendering:geometricPrecision;
  font-kerning:none;
}
.band-l1{
  font-weight:300;
  color:#6e6e6e; /* 4.54:1 к #eef2f7 */
  letter-spacing:0.019em; /* подгонка ширины к строке 2; обычные пробелы, без justify */
  margin-right:-0.019em; /* убрать хвостовой letter-spacing после последней буквы, иначе блок съезжает влево */
}
.band-l2{
  font-weight:400;
  color:#4a4a4a; /* 7.88:1 */
}
@media (max-width:1023px){
  .ftr{margin-top:80px;border-radius:40px 40px 0 0}
  .ftr .wrap{padding:48px 0 36px}
  .ftr-top{grid-template-columns:minmax(0,1fr);gap:32px}
  .ftr-brand{gap:12px}
  .ftr-copy{max-width:34rem}
  .ftr-nav{grid-column:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px}
  .ftr-legal{margin-top:32px;padding-top:28px}
}
@media (max-width:767px){
  .ftr{margin-top:64px;border-radius:32px 32px 0 0}
  .ftr .wrap{padding:40px 0 28px}
  .ftr-brand{flex-direction:column;align-items:flex-start;gap:12px}
  .ftr-brand .lgs .lg-m{width:44px;height:44px}
  .ftr-brand .logo b{font-size:1.375rem}
  .ftr-nav{grid-template-columns:minmax(0,1fr);gap:24px}
  .ftr-nav a{min-height:44px;font-size:1rem}
  .ftr-legal{margin-top:28px;padding-top:24px;gap:14px;font-size:.9375rem}
  
  .band{padding:16px 16px 24px}
}



  .pmeta-authors{align-items:center}
  .pmeta-authors .pmeta-share-li{margin-left:4px}
  @media(max-width:767px){
    .pmeta:not(.pmeta-authors){flex-wrap:nowrap;gap:16px;font-size:12px}
    .pmeta:not(.pmeta-authors) li{gap:8px;white-space:nowrap}
    .pmeta:not(.pmeta-authors) .i{width:16px;height:16px}
    .pmeta-authors{flex-wrap:wrap;gap:16px;font-size:12.5px}
    .pmeta-authors li{white-space:nowrap}
    .pmeta-authors .pmeta-share-li{margin-left:auto}
    .pmeta-authors .pmeta-share{width:auto;height:auto;margin:0}
  }

  /* Senior designer composition polish: Lead -> YMYL -> Meta/Authors -> Red 112 */
  .phead .w{align-items:center}
  .phead .ymyl-bar{
    margin-top:14px;
    margin-bottom:0;
    max-width:640px;
    padding:9px 14px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.11);
    border-left:3px solid #93c5fd;
    border-radius:8px;
    font-size:12.5px;
    line-height:1.45;
    color:#cbd5e1;
  }
  .phead .ymyl-bar strong{color:#f1f5f9;font-weight:700}
  .phead .ymyl-bar a{color:#ffffff;font-weight:700;text-decoration:underline;text-underline-offset:2px}
  .pmeta:not(.pmeta-authors){margin-top:16px}
  .pmeta-authors{margin-top:8px}
  .pmeta-share{
    width:auto;height:auto;margin:0;
    border-radius:0;
    background:transparent;
    border:0;
    color:#cbd5e1;
  }
  .pmeta-share:hover{background:rgba(255,255,255,.15);color:#fff;border-color:rgba(255,255,255,.28)}
  .pmeta-authors .pmeta-share-li{margin-left:0}
  .phead{padding-bottom:48px}
  @media(max-width:767px){
    .phead{padding-bottom:42px}
    .phead .ymyl-bar{margin-top:12px;padding:8px 12px;font-size:12px;line-height:1.42}
    .pmeta:not(.pmeta-authors){margin-top:14px}
    .pmeta-authors{margin-top:8px}
    .pmeta-authors .pmeta-share-li{margin-left:auto}
  }

  /* Final optical rhythm tune: desktop / tablet / mobile */
  .phead{padding-bottom:56px}
  @media(min-width:768px) and (max-width:980px){
    .phead .w{grid-template-columns:minmax(0,1fr) 200px;gap:16px 24px}
    .ph-vis{width:200px;height:200px}
    .phead h1{font-size:clamp(1.75rem,3.6vw,2.25rem)}
  }
  @media(max-width:767px){
    .phead{padding-bottom:52px}
  }

  /* Inline borderless Share matching .pmeta-authors height & icon size exactly */
  .pmeta-authors .pmeta-share-li{margin-left:0}
  .pmeta-authors .pmeta-share{
    width:auto;height:auto;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    display:inline-flex;
    align-items:center;
    gap:8px;
    font:inherit;
    line-height:inherit;
    color:inherit;
    cursor:pointer;
    position:relative;
  }
  .pmeta-authors .pmeta-share .pmeta-share-lbl{
    border-bottom:1px solid rgba(147,197,253,.45);
    padding-bottom:1px;
    transition:color .15s ease,border-color .15s ease;
  }
  .pmeta-authors .pmeta-share:hover,
  .pmeta-authors .pmeta-share:focus-visible{
    background:transparent;
    border-color:transparent;
    color:#fff;
  }
  .pmeta-authors .pmeta-share:hover .pmeta-share-lbl{
    border-bottom-color:#fff;
  }
  @media(max-width:767px){
    .pmeta-authors .pmeta-share-li{margin-left:auto}
    .pmeta-authors .pmeta-share{width:auto;height:auto;gap:8px;margin:0}
    .pmeta-authors .pmeta-share .pmeta-share-lbl{display:none}
    .pmeta-authors .pmeta-share::before{
      content:"";
      position:absolute;
      inset:-10px;
    }
    .pmeta-authors .pmeta-share .i{width:16px;height:16px}
  }

  /* Header rating stars + views */
  .pmeta-engage-m{display:none}
  .pmeta-rate-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#f1f5f9;
    text-decoration:none;
    border-bottom:none!important;
    transition:opacity .15s ease;
  }
  .pmeta-rate-link:hover{opacity:.88;color:#fff}
  .pmeta-stars{
    display:inline-flex;
    align-items:center;
    gap:0;
    color:#fbbf24;
  }
  .pmeta-stars .star-i{width:16px;height:16px;display:block}
  .pmeta-rate-val{font-weight:700;color:#fff;font-variant-numeric:tabular-nums}
  .pmeta-rate-cnt{color:#94a3b8;font-variant-numeric:tabular-nums}

  @media(min-width:768px) and (max-width:980px){
    .pmeta-authors{gap:16px;font-size:.8125rem}
    .pmeta-authors .pmeta-share .pmeta-share-lbl{display:none}
    .pmeta-stars .star-i{width:16px;height:16px}
  }
  @media(max-width:767px){
    .pmeta-views-dt,.pmeta-rate-dt,.pmeta-share-dt{display:none!important}
    .pmeta-engage-m{
      display:flex;
      flex-wrap:nowrap;
      align-items:center;
      gap:16px;
      margin-top:8px;
      font-size:12.5px;
    }
    .pmeta-engage-m .pmeta-share-li{margin-left:auto}
    .pmeta-engage-m .pmeta-share{
      width:auto;height:auto;padding:0;border:0;background:transparent;
      display:inline-flex;align-items:center;color:inherit;position:relative;cursor:pointer;
    }
    .pmeta-engage-m .pmeta-share::before{content:"";position:absolute;inset:-10px}
    .pmeta-engage-m .pmeta-share .i{width:16px;height:16px}
    .pmeta-engage-m .i{width:16px;height:16px}
    .pmeta-stars .star-i{width:16px;height:16px}
    .pmeta-authors{margin-top:8px}
  }

  /* Bottom #feedback card (Pulse style, WCAG >= 4.5:1) */
  .fb-card{
    max-width:1120px;
    margin:32px auto 24px;
    padding:24px 28px;
    background:#ffffff;
    border:1px solid #dbe3ef;
    border-radius:16px;
    box-shadow:0 4px 18px rgba(11,34,71,.05);
    color:#0b2247;
  }
  .fb-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px 36px;
    flex-wrap:wrap;
  }
  .fb-head{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
  }
  .fb-card h2{
    margin:0;
    font-size:1.25rem;
    line-height:1.25;
    font-weight:700;
    color:#0b2247;
    letter-spacing:0;
  }
  .fb-score-pill{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:4px 10px;
    border-radius:999px;
    background:#fef3c7;
    color:#78350f;
    font-size:.8125rem;
    line-height:1.2;
  }
  .fb-score-pill .star-i{width:14px;height:14px;color:#d97706}
  .fb-score-pill strong{font-weight:700;color:#451a03}
  .fb-sub{
    margin:6px 0 0;
    font-size:.875rem;
    color:#475569;
  }
  .fb-stars{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-top:12px;
  }
  .fb-star{
    width:38px;
    height:38px;
    padding:0;
    border:0;
    border-radius:9px;
    background:#f8fafc;
    color:#cbd5e1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:transform .12s ease,background .12s ease,color .12s ease;
  }
  .fb-star svg{width:22px;height:22px}
  .fb-star.is-on{color:#f59e0b;background:#fffbeb}
  .fb-star:hover{transform:translateY(-1px);background:#fef3c7;color:#d97706}

  .fb-useful-col{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .fb-label{
    font-size:.8125rem;
    font-weight:700;
    color:#334155;
    letter-spacing:.01em;
  }
  .fb-votes{display:flex;gap:10px;flex-wrap:wrap}
  .fb-vote{
    display:inline-flex;
    align-items:center;
    gap:7px;
    height:38px;
    padding:0 14px;
    border-radius:10px;
    border:1px solid #cbd5e1;
    background:#ffffff;
    color:#0b2247;
    font:inherit;
    font-size:.875rem;
    font-weight:700;
    cursor:pointer;
    transition:background .15s ease,border-color .15s ease,color .15s ease;
  }
  .fb-vote svg{width:16px;height:16px;color:#475569}
  .fb-vote .fb-cnt{font-weight:400;color:#475569;font-variant-numeric:tabular-nums}
  .fb-vote:hover{background:#f1f5f9;border-color:#94a3b8}
  .fb-vote.is-active{background:#0b2247;border-color:#0b2247;color:#ffffff}
  .fb-vote.is-active svg,.fb-vote.is-active .fb-cnt{color:#cbd5e1}

  .fb-divider{
    height:1px;
    background:#e2e8f0;
    margin:20px 0 18px;
  }
  .fb-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px 24px;
    flex-wrap:wrap;
  }
  .fb-share-group{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
  }
  .fb-share-btns{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
  }
  .fb-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    height:36px;
    padding:0 12px;
    border-radius:9px;
    border:1px solid #dbe3ef;
    background:#f8fafc;
    color:#0b2247;
    font:inherit;
    font-size:.84375rem;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    transition:background .15s ease,border-color .15s ease;
  }
  .fb-btn svg{width:15px;height:15px;color:#1d4ed8;flex:none}
  .fb-btn:hover{background:#eff6ff;border-color:#93c5fd}
  .fb-btn-ghost{background:#ffffff;border-color:#cbd5e1}
  .fb-btn-ghost svg{color:#334155}
  .fb-util-group{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
  }
  .fb-report{
    font-size:.84375rem;
    color:#475569;
    text-decoration:underline;
    text-underline-offset:3px;
  }
  .fb-report:hover{color:#0b2247}

  @media(max-width:767px){
    .fb-card{margin:24px 16px 20px;padding:18px 16px;border-radius:14px}
    .fb-top{gap:18px}
    .fb-share-group{flex-direction:column;align-items:flex-start;gap:10px;width:100%}
    .fb-share-btns{width:100%}
    .fb-btn{height:36px;padding:0 11px;font-size:.8125rem}
    .fb-util-group{width:100%;justify-content:space-between}
  }

  @media(min-width:768px) and (max-width:980px){
    .pmeta-views-dt,.pmeta-rate-dt,.pmeta-share-dt{display:none!important}
    .pmeta-engage-m{
      display:flex;
      flex-wrap:nowrap;
      align-items:center;
      gap:16px;
      margin-top:8px;
      font-size:.875rem;
    }
    .pmeta-engage-m .pmeta-share-li{margin-left:0}
    .pmeta-engage-m .pmeta-share{
      width:auto;height:auto;padding:0;border:0;background:transparent;
      display:inline-flex;align-items:center;color:inherit;cursor:pointer;
    }
    .pmeta-engage-m .pmeta-share .i{width:16px;height:16px}
    .pmeta-authors{margin-top:8px;font-size:.875rem}
  }

  .fb-card{
    max-width:48rem;
    margin:32px 0 0;
    border-radius:24px;
    padding:24px 28px;
  }
  .byline{margin-top:20px}
  @media(max-width:767px){
    .fb-card{margin:20px 0 0;padding:18px 16px;border-radius:20px}
    .byline{margin-top:16px}
  }

  /* =========================================================
     STRICT 8px GRID FOR .phead (desktop / tablet / mobile)
     Scale: 8px / 12px / 16px / 24px
     ========================================================= */
  .phead{
    padding-top:16px!important;
    padding-bottom:64px!important; /* 24px visible gap above -40px alert overlap */
  }
  .phead .crumbs{margin:0 0 12px!important}
  .phead h1{margin:0!important;letter-spacing:0!important}
  .phead .lead{margin:12px 0 0!important}
  .phead .ymyl-bar{margin:16px 0 0!important}

  /* Reset ALL .pmeta rows to uniform 20px line height & strict 8px rhythm */
  .phead ul.pmeta{
    margin:0!important;
    padding:0!important;
    line-height:20px!important;
    min-height:20px;
    align-items:center!important;
  }
  .phead ul.pmeta li{
    line-height:20px!important;
    min-height:20px;
    height:auto;
  }
  .phead ul.pmeta.pmeta-facts{
    margin-top:16px!important;
    gap:16px!important;
  }
  .phead ul.pmeta.pmeta-engage-m{
    margin-top:8px!important;
    gap:16px!important;
  }
  .phead ul.pmeta.pmeta-authors{
    margin-top:8px!important;
    gap:16px!important;
  }

  /* Tablet 768..980: 3 crisp rows, exact 8px rhythm, show Share label */
  @media(min-width:768px) and (max-width:980px){
    .phead{padding-bottom:64px!important}
    .phead ul.pmeta.pmeta-facts{gap:16px!important}
    .phead ul.pmeta.pmeta-engage-m{
      display:flex!important;
      margin-top:8px!important;
      gap:16px!important;
    }
    .phead ul.pmeta.pmeta-authors{
      margin-top:8px!important;
      gap:16px!important;
    }
    .phead ul.pmeta.pmeta-engage-m .pmeta-share{gap:8px;margin:0}
    .phead ul.pmeta.pmeta-engage-m .pmeta-share-lbl{
      display:inline!important;
      border-bottom:1px solid rgba(147,197,253,.45);
      padding-bottom:1px;
    }
  }

  /* Mobile <= 767: 3 crisp rows, exact 8px rhythm, 24px gap above 112 bar */
  @media(max-width:767px){
    .phead{
      padding-top:12px!important;
      padding-bottom:56px!important;
    }
    .phead .ymyl-bar{margin-top:16px!important}
    .phead ul.pmeta.pmeta-facts{
      margin-top:16px!important;
      gap:16px!important;
      font-size:12px!important;
    }
    .phead ul.pmeta.pmeta-engage-m{
      display:flex!important;
      margin-top:8px!important;
      gap:16px!important;
      font-size:12.5px!important;
    }
    .phead ul.pmeta.pmeta-authors{
      margin-top:8px!important;
      gap:16px!important;
      font-size:12.5px!important;
    }
    .phead ul.pmeta.pmeta-engage-m .pmeta-share-lbl{display:none!important}
  }

  /* EXACT EQUAL 16px GAPS: YMYL -> Row1 -> Row2 (-> Row3) -> Red 112 */
  /* .alert margin-top is -34px on desktop/tablet, -28px on <=767px */
  .phead{padding-bottom:50px!important} /* 50 - 34 = 16px exact */
  .phead ul.pmeta.pmeta-facts{margin-top:16px!important}
  .phead ul.pmeta.pmeta-engage-m{margin-top:16px!important}
  .phead ul.pmeta.pmeta-authors{margin-top:16px!important}

  @media(min-width:768px) and (max-width:980px){
    .phead{padding-bottom:50px!important} /* 50 - 34 = 16px exact */
    .phead ul.pmeta.pmeta-facts{margin-top:16px!important}
    .phead ul.pmeta.pmeta-engage-m{margin-top:16px!important}
    .phead ul.pmeta.pmeta-authors{margin-top:16px!important}
  }
  @media(max-width:767px){
    .phead{padding-bottom:44px!important} /* 44 - 28 = 16px exact */
    .phead ul.pmeta.pmeta-facts{margin-top:16px!important}
    .phead ul.pmeta.pmeta-engage-m{margin-top:16px!important}
    .phead ul.pmeta.pmeta-authors{margin-top:16px!important}
  }

  /* Tighten menu -> breadcrumbs gap to match 16px grid */
  .top.in .hdr{padding-bottom:6px!important}
  .top.in .hdr .nav{padding-bottom:4px!important;margin-bottom:0!important}
  .phead{padding-top:12px!important}

@media(min-width:768px){.top.in .nav a{min-height:36px!important}.top.in .hdr{padding-bottom:0!important}.phead{padding-top:12px!important}}

/* ===== Подвал: режим для слабовидящих (footer-redesign.html) ===== */
/* Режим для слабовидящих */
html[data-scheme] .ftr{
  border-top:3px solid var(--ink);
  border-radius:0;
}
html[data-scheme] .ftr-legal{
  border-top:2px solid var(--ink);
}
html[data-scheme] .ftr-nav-h,
html[data-scheme] .ftr-nav a,
html[data-scheme] .ftr-copy,
html[data-scheme] .ftr-copy strong,
html[data-scheme] .ftr-legal,
html[data-scheme] .ftr-legal a{
  color:var(--ink);
}
html[data-scheme] .band{
  border-top:2px solid var(--ink);
  color:var(--ink);
  background:var(--band);
}
html[data-scheme] .band-l1,
html[data-scheme] .band-l2{
  color:var(--ink);
}
html[data-fs] .band-box{
  font-size:min(1.875rem, calc((100vw - 2 * var(--pad)) / 18.12));
}
html[data-fs] .ftr-top,
html[data-fs] .ftr-nav{
  grid-template-columns:minmax(0,1fr);
}
html[data-fs] .ftr-nav{
  grid-column:auto;
}

/* ===== Внедрение на сайт (build.py): дополнения к прототипу ===== */
/* приглашение оценить в шапке, пока нет серверных данных рейтинга */
.pmeta-rate-cta{color:var(--on-dark-2);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px;text-decoration-color:rgba(169,196,245,.55)}
.pmeta-rate-link:hover .pmeta-rate-cta{color:#fff;text-decoration-color:#fff}
/* у страниц без строки авторов (заглушки, служебные) метаданные идут сразу после лида/«Важно» */
.phead .ph-txt>ul.pmeta.pmeta-facts:first-of-type{margin-top:16px!important}
/* «Коротко» -> «Главное за 30 секунд»: 24px, как в макете */
.art>.answer+.quick{margin-top:24px}
/* #feedback и #byline в колонке статьи */
.art .fb-card{margin:40px 0 0}
.art .fb-card+.byline{margin-top:20px}
.fb-card .fb-label{margin:0}
.fb-vote-status{margin:0;font-size:.8125rem;color:#475569;max-width:16rem}
.fb-vote-status:empty{display:none}
.fb-star:focus-visible,.fb-vote:focus-visible,.fb-btn:focus-visible,.fb-report:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}
.fb-star.is-hover{color:#d97706;background:#fef3c7}
.fb-vote.is-active svg{color:#cbd5e1}
@media (max-width:767px){.art .fb-card{margin:28px 0 0;border-radius:20px}}
/* подвал: абзац про ИИ — без рамки, фона и левой полосы */
.ftr-legal .ftr-ai{padding:0;border:0;background:none;border-radius:0}
/* режим для слабовидящих */
html[data-scheme] .fb-card,html[data-scheme] .fb-btn,html[data-scheme] .fb-vote,html[data-scheme] .fb-star{background:var(--bg);color:var(--ink);border:2px solid var(--ink)}
html[data-scheme] .fb-card *{color:var(--ink)}
html[data-scheme] .fb-star.is-on,html[data-scheme] .fb-vote.is-active{background:var(--ink);color:var(--bg)}
html[data-scheme] .fb-star.is-on svg,html[data-scheme] .fb-vote.is-active *{color:var(--bg)}
html[data-scheme] .pmeta-stars{color:var(--ink)}

/* ===== Волна 1: статьи из Markdown (общие блоки) ===== */
.art .art-intro{margin-top:20px}
.quick .quick-in{color:var(--on-dark-2,rgba(255,255,255,.82));margin:-12px 0 24px;line-height:1.55;max-width:46rem}
.art .prose>:first-child{margin-top:0}
.art section>.prose+.prose,.art .dont+.prose,.art .prose+.dont{margin-top:18px}
.art .prose .tbl+p,.art .prose .tbl+ul,.art .prose .tbl+ol{margin-top:18px}
.howto .prose>h3:first-child{margin-top:0}
.howto .prose p{margin-top:8px}
.howto .prose ul,.howto .prose ol{margin-top:12px}
.howto .prose ul>li,.howto .prose ol>li{color:var(--muted)}
.when .prose p{max-width:46rem}
.when .prose ul{margin-top:16px}
.when .btn-red{margin-top:24px}
.tbl caption.tbl-cap{caption-side:top;text-align:left;padding:14px 18px;font-weight:700;color:var(--navy);background:var(--mist);border-bottom:1px solid var(--line);line-height:1.4}
.acc .ans>p+p,.acc .ans>p+ul,.acc .ans>ul+p{margin-top:10px}
.rel .rel-rows{margin-top:12px}

/* ===== Мини-тест «Проверьте себя» ===== */
.quiz{background:var(--mist);border-radius:32px;padding:36px 36px 38px}
.quiz .quiz-sub{color:var(--muted);line-height:1.55;margin:-8px 0 24px;max-width:46rem}
.quiz-list{display:grid;gap:16px;counter-reset:none}
.quiz-q{background:#fff;border-radius:22px;padding:22px 24px 24px;border:1px solid var(--line)}
.quiz-qt{font-weight:700;font-size:1.1875rem;line-height:1.4;color:var(--ink)}
.quiz-n{display:block;font-size:.8125rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--navy-2);margin-bottom:6px}
.quiz-opts{display:grid;gap:8px;margin-top:14px}
.quiz-opt{display:flex;align-items:flex-start;gap:12px;width:100%;min-height:48px;padding:12px 16px;border:2px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);font:inherit;font-size:1.0625rem;line-height:1.45;text-align:left;cursor:pointer;transition:border-color .2s,background-color .2s}
.quiz-opt:hover{border-color:var(--navy-2);background:var(--tint)}
.quiz-opt:focus-visible{outline:3px solid var(--navy-2);outline-offset:2px}
.quiz-l{flex:0 0 auto;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--mist);color:var(--navy);font-size:.9375rem}
.quiz-q.is-done .quiz-opt{cursor:default}
.quiz-q.is-done .quiz-opt:hover{border-color:var(--line);background:#fff}
.quiz-opt.is-right,.quiz-q.is-done .quiz-opt.is-right:hover{border-color:#1f7a4d;background:#e7f5ed}
.quiz-opt.is-right .quiz-l{background:#1f7a4d;color:#fff}
.quiz-opt.is-wrong,.quiz-q.is-done .quiz-opt.is-wrong:hover{border-color:var(--red);background:var(--red-tint)}
.quiz-opt.is-wrong .quiz-l{background:var(--red);color:#fff}
.quiz-fb{margin-top:14px;padding:14px 18px;border-radius:16px;background:var(--mist);line-height:1.55}
.quiz-q.is-ok .quiz-fb{background:#e7f5ed}
.quiz-q.is-bad .quiz-fb{background:var(--red-tint)}
.quiz-verdict{font-weight:700}
.quiz-q.is-ok .quiz-verdict{color:#1f7a4d}
.quiz-q.is-bad .quiz-verdict{color:var(--red-2)}
.quiz-exp{margin-top:4px}
.quiz-res{margin-top:20px;padding:22px 24px;border-radius:22px;background:var(--navy);color:#fff;display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.quiz-score{font-size:1.25rem;font-weight:700}
.quiz-score b{font-size:1.5rem}
.quiz-note{flex:1 1 18rem;color:var(--on-dark-2,rgba(255,255,255,.82));line-height:1.5}
.quiz-res .btn{background:#fff;color:var(--navy);border-color:#fff}
html[data-scheme] .quiz,html[data-scheme] .quiz-q,html[data-scheme] .quiz-opt,html[data-scheme] .quiz-fb{background:var(--bg);color:var(--ink);border-color:var(--ink)}
html[data-scheme] .quiz-res{background:var(--bg);color:var(--ink);border:2px solid var(--ink)}
@media (max-width:767px){
  .quiz{border-radius:24px;padding:24px 16px 26px}
  .quiz-q{padding:18px 16px 18px;border-radius:18px}
  .quiz-qt{font-size:1.0625rem}
  .quiz-opt{font-size:1rem;padding:10px 12px}
  .quiz-res{padding:18px 16px}
}
@media print{.quiz,.js-quiz{display:none!important}}
.quiz-res[hidden],.quiz-fb[hidden]{display:none}
.when .prose ul>li{display:block}
@media (max-width:767px){.c-steps{gap:4px;flex-wrap:wrap}.c-steps i{font-size:1.125rem}.c-steps i+i::before{margin-right:4px}}

@media screen and (min-width:768px) and (max-width:980px){
  .phead ul.pmeta.pmeta-engage-m{flex-wrap:wrap!important}
  .phead ul.pmeta.pmeta-engage-m .pmeta-share-li{flex:1 0 100%;margin-left:0;max-width:100%}
  .phead ul.pmeta.pmeta-engage-m .pm-acts{flex-wrap:nowrap;gap:16px}
}
