/* Лендинг «Аудиобрендинг» (/ru/audiobranding/). Разметку собирает scripts/audiobranding.mjs.
   Шапка, кнопки, призыв и подвал — общие со страницами блога (daruma-blog.css), окно с роликом — как у шоурила и «Работ». */

.ab-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ab-eyebrow { margin: 0 0 20px; font-size: 13px; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--db-faint); }
.ab-h2 { margin: 0; max-width: 18ch; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; font-weight: 400; letter-spacing: -.04em; text-wrap: balance; }
.ab-text { margin: 20px 0 0; max-width: 56ch; font-size: 18px; line-height: 1.5; color: var(--db-muted); text-wrap: pretty; }
.ab-sec { padding: 112px 0 0; scroll-margin-top: 72px; }
.ab-sec[id] { scroll-margin-top: 72px; }

/* ——— первый экран */
.ab-hero { padding: 88px 0 24px; }
.ab-title { margin: 0; font-size: clamp(52px, 10vw, 156px); line-height: .94; font-weight: 400; letter-spacing: -.05em; }
.ab-title span { color: var(--db-red); }
.ab-lead { max-width: 28em; margin: 32px 0 0; font-size: clamp(19px, 2.1vw, 26px); line-height: 1.4; color: var(--db-fg); text-wrap: pretty; }
.ab-sub { max-width: 40em; margin: 16px 0 40px; font-size: 18px; line-height: 1.5; color: var(--db-muted); }

/* ——— первый экран: ссылка на работы и волна */
.ab-hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.ab-hero__more { color: var(--db-fg) !important; font-weight: 500; font-size: 15px; color: var(--db-muted); text-decoration: none; transition: color .2s ease; }
.ab-hero__more:hover { color: var(--db-fg); }
.ab-proof { margin: 40px 0 0; font-size: 14px; letter-spacing: .02em; color: var(--db-faint); }
.ab-wave { display: flex; align-items: center; gap: 5px; height: 120px; margin-top: 48px; overflow: hidden; }
.ab-wave i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: #2e2e2a; }
.ab-wave i.is-hot { background: var(--db-red); }

/* ——— «В этом материале» */
.ab-sec--toc { padding-top: 72px; }
.ab-toc { display: flex; flex-wrap: wrap; gap: 40px 64px; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--db-line); border-radius: 24px; background: #101010; }
.ab-toc__head { flex: 1 1 320px; }
.ab-toc__head .ab-eyebrow { color: var(--db-red); }
.ab-toc__lead { margin: 0; max-width: 34em; font-size: 18px; line-height: 1.5; color: var(--db-fg); text-wrap: pretty; }
.ab-toc__meta { margin: 20px 0 0; font-size: 14px; color: var(--db-faint); }
.ab-toc__list { flex: 1.5 1 480px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.ab-toc__list li { counter-increment: toc; border-top: 1px solid var(--db-line); }
.ab-toc__list li:last-child { border-bottom: 1px solid var(--db-line); }
.ab-toc__list a { position: relative; display: block; padding: 16px 40px 16px 40px; color: var(--db-fg); text-decoration: none; }
.ab-toc__list a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 19px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--db-faint); }
.ab-toc__list a::after { content: '↓'; position: absolute; right: 4px; top: 14px; font-size: 18px; color: var(--db-faint); transition: color .2s ease, transform .2s ease; }
.ab-toc__h { display: block; font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.ab-toc__p { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--db-muted); }
@media (hover: hover) { .ab-toc__list a:hover .ab-toc__h { color: var(--db-red); } .ab-toc__list a:hover::after { color: var(--db-red); transform: translateY(3px); } }

/* ——— состав */
.ab-split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.ab-split__head { flex: 1 1 340px; }
.ab-list { flex: 1.4 1 480px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--db-line); }
.ab-list li { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--db-line); }
.ab-list h3 { flex: 1 1 200px; margin: 0; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.ab-list p { flex: 2 1 260px; margin: 0; font-size: 16px; line-height: 1.55; color: var(--db-muted); }

/* ——— работы */
.ab-works { display: flex; flex-wrap: wrap; gap: 64px 32px; margin-top: 56px; }
.ab-work { flex: 0 1 calc(50% - 16px); min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ab-work--wide { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 32px 40px; }
.ab-work--wide .ab-frame { flex: 2 1 480px; }
.ab-work--wide .ab-work__text { flex: 1 1 300px; }
.ab-frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #161616; color: var(--db-fg); text-decoration: none; }
.ab-frame img:not(.ab-badge) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
a.ab-frame::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .14); transition: background-color .3s ease; }
/* кнопка «Смотреть» — в углу кадра, чтобы не закрывать логотип в кадре */
.ab-play { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px; border-radius: 999px; background: rgba(11, 11, 11, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: -.005em; transition: background-color .25s ease, color .25s ease; }
.ab-play svg { display: block; width: 14px; height: 14px; }
@media (hover: hover) {
  a.ab-frame:hover::after { background: rgba(0, 0, 0, .08); }
  a.ab-frame:hover img:not(.ab-badge) { transform: scale(1.03); }
  a.ab-frame:hover .ab-play { background: var(--db-red); }
}
.db a.ab-frame:focus-visible { outline-offset: 3px; }
.ab-frame--text, .ab-frame--audio, .ab-frame--blank { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; background: linear-gradient(135deg, #0a3a4a, #2a2140 55%, #8a4128); }
.ab-frame--blank::after { display: none; }
.ab-work__text { flex: 1 1 300px; }
.ab-frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #161616; color: var(--db-fg); text-decoration: none; }
.ab-frame img:not(.ab-badge) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
a.ab-frame::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .14); transition: background-color .3s ease; }
@media (hover: hover) {
  a.ab-frame:hover::after { background: rgba(0, 0, 0, .08); }
  a.ab-frame:hover img:not(.ab-badge) { transform: scale(1.03); }
  a.ab-frame:hover .ab-play { background: var(--db-red); }
}
.db a.ab-frame:focus-visible { outline-offset: 3px; }
.ab-frame--text, .ab-frame--audio, .ab-frame--badge { background: linear-gradient(135deg, #1b1b1e, #0f0f10); }
.ab-frame--text, .ab-frame--audio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; }
.ab-frame__name { font-size: clamp(32px, 4vw, 56px); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.ab-frame audio { width: min(420px, 100%); }
.ab-frame--badge { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a3a4a, #2a2140 55%, #8a4128); }
.ab-frame--badge::after { display: none; }
.ab-badge { position: relative; z-index: 1; width: min(46%, 300px); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.ab-work__text { display: flex; flex-direction: column; gap: 10px; }
.ab-work__kind { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--db-red); }
.ab-work__title { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.ab-work__text p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--db-muted); max-width: 52ch; }
.ab-work__text .ab-work__award { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; padding: 6px 18px 6px 8px; border: 1px solid var(--db-red); border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--db-fg); }

.ab-work__link { color: var(--db-fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--db-faint); }
.ab-work__link:hover { text-decoration-color: var(--db-red); }
.ab-work__award img { width: 36px; height: 36px; flex: none; }

/* ——— подход */
.ab-approach { padding: clamp(32px, 6vw, 80px); border-radius: 24px; background: #141414; }
.ab-big { margin: 0; font-size: clamp(40px, 7vw, 104px); line-height: .98; font-weight: 400; letter-spacing: -.05em; }
.ab-big span { color: var(--db-red); }
.ab-approach__cols { display: flex; flex-wrap: wrap; gap: 8px 48px; margin-top: 40px; }
.ab-approach__cols .ab-text { flex: 1 1 300px; margin-top: 12px; font-size: 16px; }
.ab-approach__cols .ab-text--lead { font-size: 19px; color: var(--db-fg); }

/* ——— как характер бренда превращается в звук */
.ab-char { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.ab-char__head { flex: 1 1 340px; }
.ab-char__head .ab-h2 { max-width: 14ch; }
.ab-char__body { flex: 1.4 1 480px; min-width: 0; }
.ab-acc { border-top: 1px solid var(--db-line); }
.ab-acc summary { position: relative; padding: 26px 48px 26px 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.ab-acc summary::-webkit-details-marker { display: none; }
.ab-acc summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--db-fg); border-bottom: 2px solid var(--db-fg); transform: rotate(45deg); transition: transform .25s ease, margin .25s ease; }
.ab-acc[open] summary::after { transform: rotate(-135deg); margin-top: -4px; }
.ab-acc summary:hover { color: var(--db-red); }
.ab-acc__body { padding: 0 0 28px; }
.ab-acc__body p, .ab-char__ctx p { margin: 0 0 16px; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--db-muted); text-wrap: pretty; }
.ab-acc__body strong, .ab-char__ctx strong { font-weight: 500; color: var(--db-fg); }
.ab-acc__body ul { margin: 0 0 16px; padding-left: 20px; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--db-muted); }
.ab-acc__body li { margin-bottom: 8px; }
.ab-char__ctx { padding-top: 32px; border-top: 1px solid var(--db-line); }
.ab-char__ctx h3 { margin: 0 0 16px; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }

/* ——— вопросы и ответы */
.ab-faq { flex: 1.4 1 480px; min-width: 0; }
.ab-faq .ab-acc:last-child { border-bottom: 1px solid var(--db-line); }

/* ——— процесс */
.ab-steps { display: flex; flex-wrap: wrap; gap: 40px 24px; margin: 56px 0 0; padding: 0; list-style: none; }
.ab-steps li { flex: 1 1 200px; padding-top: 20px; border-top: 1px solid var(--db-line); }
.ab-steps li:first-child { border-top-color: var(--db-red); }
.ab-steps__n { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--db-faint); font-variant-numeric: tabular-nums; }
.ab-steps li:first-child .ab-steps__n { color: var(--db-red); }
.ab-steps h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.ab-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--db-muted); }

/* ——— что получает бренд */
.ab-gains { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 56px; }
.ab-gains > div { flex: 1 1 440px; padding: 32px; border-radius: 20px; background: #141414; }
.ab-gains h3 { margin: 0 0 12px; font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: -.03em; }
.ab-gains p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--db-muted); max-width: 44ch; }

@media (max-width: 860px) { .ab-work { flex-basis: 100%; } }
@media (max-width: 640px) {
  .ab-sec { padding-top: 80px; }
  .ab-hero { padding-top: 56px; }
  .ab-works { gap: 48px 24px; margin-top: 40px; }
  .ab-work { flex-basis: 100%; }
  .ab-gains > div { padding: 24px; }
}

/* раздел «Как характер бренда превращается в звук»: один размер текста слева и справа */
.ab-char__head .ab-text, .ab-char .ab-text { font-size: 17px; line-height: 1.6; max-width: 34em; }
.ab-acc__body p, .ab-char__ctx p, .ab-acc__body ul { font-size: 17px; }
