/* =========================================================
   SOUND LIGHT 92 — страницы блога (дополняет style.css)
   ========================================================= */

/* ---------- обложка статьи ---------- */
.a-hero {
  position: relative; min-height: 82vh; min-height: 82svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--charcoal);
}
.a-hero--blog { min-height: 64vh; min-height: 64svh; }
.a-hero__img { position: absolute; inset: 0; z-index: -2; margin: 0; }
.a-hero__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.15) brightness(.42) contrast(1.05);
  transform: scale(1.1); animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.a-hero::after { /* красная полоса-«луч» по низу обложки */
  content: ''; position: absolute; left: 0; bottom: -1px; height: 4px; width: 100%; background: var(--accent);
  transform-origin: 0 50%; animation: barIn 1.4s var(--ease) .3s both;
}
@keyframes barIn { from { transform: scaleX(0); } }
.a-hero__inner > * { animation: riseIn 1s var(--ease) both; }
.a-hero__inner > *:nth-child(2) { animation-delay: .1s; }
.a-hero__inner > *:nth-child(3) { animation-delay: .2s; }
.a-hero__inner > *:nth-child(4) { animation-delay: .32s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } }

.crumbs { font: 400 12px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--sand); margin-bottom: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: var(--accent); }
.crumbs__here { color: var(--muted); }
.a-title { font: 400 clamp(32px, 5.6vw, 84px)/1.02 var(--f-display); letter-spacing: -.02em; max-width: 1150px; text-wrap: balance; }
.a-title em { font-style: normal; color: var(--accent); }
.a-lead { margin-top: 24px; max-width: 720px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--sand); }

/* ---------- раскладка: оглавление + текст ---------- */
.a-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); padding-top: clamp(48px, 7vw, 96px); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 18px; }
.toc__label { font: 400 12px var(--f-mono); color: var(--accent); letter-spacing: .08em; }
.toc ol { border-left: 1px solid var(--charcoal); }
.toc li a {
  display: flex; gap: 10px; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 1px solid transparent;
  font: 400 13px/1.35 var(--f-sans); color: var(--muted); transition: color .25s, border-color .25s;
}
.toc li a span { font: 400 11px/1.6 var(--f-mono); color: var(--accent); flex: none; }
.toc li a:hover { color: var(--bone); }
.toc li a.is-active { color: var(--bone); border-left-color: var(--accent); }
.toc__btn { padding: 14px 16px; font-size: 12px; text-align: center; }

/* ---------- текст статьи ---------- */
.prose { max-width: 780px; font-size: 18px; line-height: 1.68; color: var(--sand); min-width: 0; }
.prose > p, .prose section > p { margin: 0 0 20px; }
.prose h2 {
  font: 400 clamp(26px, 3vw, 40px)/1.1 var(--f-display); color: var(--bone); letter-spacing: -.01em;
  margin: clamp(56px, 7vw, 88px) 0 24px; scroll-margin-top: calc(var(--header-h) + 20px); text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 .n { display: block; font: 400 12px var(--f-mono); color: var(--accent); letter-spacing: .08em; margin-bottom: 14px; }
.prose h3 { font: 400 21px/1.2 var(--f-display); color: var(--bone); margin: 36px 0 12px; }
.prose strong, .prose b { font-weight: inherit; color: var(--bone); }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.prose a:not(.btn):hover { color: var(--bone); }
.prose ul, .prose ol:not(.steps-list) { margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.prose ol:not(.steps-list) { counter-reset: li; }
.prose ol:not(.steps-list) > li { position: relative; padding-left: 40px; counter-increment: li; }
.prose ol:not(.steps-list) > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .3em; font: 400 12px var(--f-mono); color: var(--accent); }

/* «Коротко» и «Совет инженера» */
.tldr, .tip { position: relative; border: 1px solid var(--accent); padding: 30px 28px 24px; margin: 36px 0; background: var(--ink-2); }
.tldr::before, .tip::before {
  content: attr(data-label); position: absolute; top: -12px; left: 20px; padding: 5px 12px; border-radius: var(--pill);
  font: 400 11px/1 var(--f-mono); letter-spacing: .06em; background: var(--accent); color: var(--accent-ink);
}
.tip { border-color: var(--charcoal); }
.tip::before { background: var(--bone); color: var(--black); }
.tldr p:last-child, .tip p:last-child, .tldr ul:last-child { margin-bottom: 0; }
.tldr ul { margin-bottom: 0; }

/* фото в тексте */
.a-fig { margin: 40px 0; }
.a-fig .ph { aspect-ratio: 16 / 10; border: 1px solid var(--black); }
.a-fig--tall .ph { aspect-ratio: 4 / 5; }
.a-fig figcaption { margin-top: 10px; font: 400 12px/1.4 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.a-fig figcaption::before { content: '✺ '; color: var(--accent); }
.a-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 40px 0; }
.a-duo .a-fig { margin: 0; }
.a-duo .ph { aspect-ratio: 4 / 5; }

/* таблицы */
.table-wrap { overflow-x: auto; margin: 32px 0; border: 1px solid var(--charcoal); -webkit-overflow-scrolling: touch; }
.a-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; min-width: 560px; }
.a-table th, .a-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--charcoal); }
.a-table th + th, .a-table td + td { border-left: 1px solid var(--charcoal); }
.a-table th { font: 400 11px var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .05em; background: var(--ink-2); }
.a-table td:first-child { color: var(--bone); font-family: var(--f-display); font-size: 15px; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table tbody tr { transition: background .25s; }
.a-table tbody tr:hover { background: rgba(255, 42, 42, .06); }

/* шаги */
.steps-list { counter-reset: st; margin: 28px 0; display: grid; gap: 0; border-top: 1px solid var(--charcoal); }
.steps-list > li { counter-increment: st; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--charcoal); }
.steps-list > li::before {
  content: counter(st, decimal-leading-zero); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--accent);
  display: grid; place-items: center; font: 400 12px var(--f-mono); color: var(--accent);
}
.steps-list h3 { margin: 4px 0 6px; font-size: 19px; }
.steps-list p { margin: 0; }

/* ---------- виджеты ---------- */
.widget { border: 1px solid var(--accent); background: var(--ink-2); margin: 40px 0; }
.widget__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--charcoal); }
.widget__head span { font: 400 11px var(--f-mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.widget__head span + span { color: var(--muted); }
.widget__body { padding: 24px; }
.widget .fgrid { gap: 20px; }
.widget .field > span b { font-weight: inherit; color: var(--accent); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 4px 0 0; }
.range::-webkit-slider-runnable-track { height: 2px; background: var(--charcoal); }
.range::-moz-range-track { height: 2px; background: var(--charcoal); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); margin-top: -10px; cursor: pointer; }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--bone); outline-offset: 3px; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 400 12px/1 var(--f-mono); text-transform: uppercase; padding: 10px 14px; border-radius: var(--pill); border: 1px solid var(--accent); color: var(--accent); transition: background .25s, color .25s; }
.seg button.is-active, .seg button:hover { background: var(--accent); color: var(--accent-ink); }

.result { margin-top: 24px; border-top: 1px solid var(--charcoal); padding-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.result__big { font: 300 clamp(40px, 6vw, 68px)/1 var(--f-display); color: var(--accent); white-space: nowrap; }
.result__big small { font-size: .35em; color: var(--sand); margin-left: 6px; }
.result__text { font-size: 15px; line-height: 1.5; color: var(--sand); }
.result__text b { font-weight: inherit; color: var(--bone); }
.result__bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 3px; height: 42px; }
.result__bars i { flex: 1; background: var(--charcoal); height: 20%; transition: height .5s var(--ease), background .3s; }
.result__bars i.on { background: var(--accent); }
.widget__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.widget__note { font: 400 11px/1.4 var(--f-mono); color: var(--muted); text-transform: uppercase; }

/* демо света */
.ldemo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; isolation: isolate; }
.ldemo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1.2s var(--ease); }
.ldemo__wash { position: absolute; inset: 0; mix-blend-mode: color; opacity: 0; transition: opacity 1.2s, background 1.2s; }
.ldemo__glow { position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: 0; transition: opacity 1.2s, background 1.2s; }
.ldemo__up { position: absolute; bottom: 0; width: 11%; height: 62%; opacity: 0; mix-blend-mode: screen; clip-path: polygon(40% 100%, 60% 100%, 100% 0, 0 0); transition: opacity 1s, background 1s; }
.ldemo__beam { position: absolute; top: -10%; width: 22%; height: 130%; opacity: 0; mix-blend-mode: screen; clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); transform-origin: 50% 0; transition: opacity .8s; }
.ldemo__spot { position: absolute; left: 50%; top: -10%; width: 34%; height: 125%; transform: translateX(-50%); opacity: 0; mix-blend-mode: screen; background: rgba(255, 250, 235, .32); clip-path: polygon(46% 0, 54% 0, 80% 100%, 20% 100%); transition: opacity 1s; }
.ldemo__fog { position: absolute; left: -5%; right: -5%; bottom: -4%; height: 26%; opacity: 0; background: rgba(240, 240, 245, .55); clip-path: polygon(0 40%, 8% 25%, 18% 38%, 30% 18%, 42% 34%, 55% 15%, 68% 32%, 80% 20%, 92% 36%, 100% 26%, 100% 100%, 0 100%); transition: opacity 1.4s; animation: fog 7s ease-in-out infinite alternate; }
@keyframes fog { to { transform: translateX(3%); } }
.ldemo__label { position: absolute; left: 14px; bottom: 14px; z-index: 3; font: 400 11px var(--f-mono); text-transform: uppercase; background: var(--black); color: var(--bone); padding: 6px 10px; border-radius: var(--pill); }
.ldemo[data-scene="day"] img { filter: brightness(.95) saturate(.6); }
.ldemo[data-scene="banquet"] img { filter: brightness(.5) saturate(1.1); }
.ldemo[data-scene="banquet"] .ldemo__glow { opacity: .75; background: #ff9b3d; }
.ldemo[data-scene="banquet"] .ldemo__up { opacity: .28; background: #ffb060; }
.ldemo[data-scene="dance1"] img { filter: brightness(.22) saturate(.8); }
.ldemo[data-scene="dance1"] .ldemo__spot, .ldemo[data-scene="dance1"] .ldemo__fog { opacity: 1; }
.ldemo[data-scene="party"] img { filter: brightness(.3) saturate(1.2); }
.ldemo[data-scene="party"] .ldemo__wash { opacity: .55; background: #8a2be2; }
.ldemo[data-scene="party"] .ldemo__up { opacity: .22; background: #ff2a8a; }
.ldemo[data-scene="party"] .ldemo__beam { opacity: .38; animation: ldsweep 3.2s ease-in-out infinite alternate; }
.ldemo[data-scene="party"] .ldemo__fog { opacity: .35; }
@keyframes ldsweep { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
.ldemo__caption { padding: 16px 24px 0; font-size: 15px; color: var(--sand); min-height: 3.2em; }

/* чек-лист */
.checklist__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.checklist__bar { flex: 1; height: 6px; background: var(--charcoal); }
.checklist__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.checklist__pct { font: 400 13px var(--f-mono); color: var(--accent); min-width: 4ch; text-align: right; }
.checklist__group { margin-top: 22px; }
.checklist__group h3 { margin: 0 0 8px; font-size: 17px; display: flex; justify-content: space-between; gap: 8px; }
.checklist__group h3 span { font: 400 11px var(--f-mono); color: var(--muted); }
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--charcoal); cursor: pointer; font-size: 15px; line-height: 1.45; transition: color .25s; }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk i { flex: 0 0 20px; height: 20px; margin-top: 1px; border: 1px solid var(--accent); border-radius: 50%; position: relative; transition: background .25s; }
.chk i::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.chk input:checked + i { background: var(--accent); }
.chk input:checked + i::after { transform: rotate(45deg) scale(1); }
.chk input:checked ~ span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); }
.chk input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }

/* шаблон ТЗ */
.tpl { margin: 0; padding: 24px; max-height: 460px; overflow: auto; background: var(--black); border-top: 1px solid var(--charcoal); font: 400 13px/1.6 var(--f-mono); color: var(--sand); white-space: pre-wrap; }

/* CTA */
.cta-box { position: relative; margin: clamp(56px, 7vw, 88px) 0 0; padding: clamp(28px, 4vw, 48px); background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.cta-box::after { content: '✺'; position: absolute; right: -20px; top: -40px; font-size: 220px; line-height: 1; opacity: .12; animation: spin 30s linear infinite; }
.cta-box .mono { font-size: 11px; }
.cta-box h3 { font: 400 clamp(26px, 3vw, 40px)/1.08 var(--f-display); margin: 14px 0 12px; max-width: 620px; color: var(--accent-ink); }
.cta-box p { max-width: 560px; font-size: 16px; line-height: 1.5; }
.cta-box__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.btn--dark { background: var(--accent-ink); color: var(--bone); border-color: var(--accent-ink); }
.btn--dark::before { background: var(--bone); }
.btn--dark:hover { color: var(--black); }
.btn--dark-o { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn--dark-o::before { background: var(--accent-ink); }
.btn--dark-o:hover { color: var(--bone); }
.blog-list + .wrap .cta-box { margin-top: 64px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--charcoal); }
.faq details:first-of-type { border-top: 1px solid var(--charcoal); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative;
  font: 400 18px/1.3 var(--f-display); color: var(--bone); transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 300 20px/1 var(--f-display);
  transition: transform .4s var(--ease), background .25s, color .25s;
}
.faq summary:hover { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.faq__a { padding: 0 0 22px; font-size: 16px; }
.faq__a p { margin: 0 0 10px; }

/* похожие статьи / карточки блога */
.related .badge { margin-bottom: 36px; }
.lattice--4 { grid-template-columns: repeat(4, 1fr); }
.cell--link.cell--img .cell__tag { left: auto; right: 14px; }
.cell--img h3 { font-size: clamp(17px, 1.4vw, 21px); }
.footer--simple { padding-top: 40px; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .lattice--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .a-layout { grid-template-columns: 1fr; }
  .toc { position: static; border: 1px solid var(--charcoal); padding: 20px; }
  .toc__btn { display: none; }
}
@media (max-width: 640px) {
  .prose { font-size: 16.5px; }
  .a-duo { grid-template-columns: 1fr; }
  .lattice--4 { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
  .widget__body, .widget__head { padding-left: 16px; padding-right: 16px; }
  .tldr, .tip { padding: 28px 18px 20px; }
  .steps-list > li { grid-template-columns: 52px 1fr; }
  .faq summary { font-size: 16px; }
  .cta-box::after { font-size: 150px; }
}
@media print {
  .header, .menu, .mbar, .toc, .related, .footer, .cta-box, .progress, .widget { display: none !important; }
  body { background: #fff; color: #000; }
  body::after { display: none; }
  .prose, .prose h2, .prose h3, .a-title { color: #000; }
  .a-hero { min-height: 0; padding: 0; }
  .a-hero__img { display: none; }
}
