/* Duck-Proxy FAQ (help.duck-proxy.com) — поверх общих токенов /duck/duck.css */
.dk { max-width: 760px; }

.hf-hero { position: relative; margin-top: 4px; }
.hf-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--red); }
.hf-lead { margin: 18px 2px 0; font-size: 17px; color: var(--ink); }
.hf-lead b { font-family: var(--head); letter-spacing: .02em; }

/* поиск */
.hf-search { position: relative; margin-top: 18px; }
.hf-search input {
  width: 100%; min-height: 52px; padding: 12px 14px 12px 46px;
  font: 500 16px/1.2 var(--body); color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); outline: none;
  -webkit-appearance: none; appearance: none;
}
.hf-search input:focus { border-color: var(--red); }
.hf-search svg { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.hf-empty { display: none; margin: 16px 2px 0; color: var(--ink-soft); }

/* навигация по разделам */
.hf-nav { position: sticky; top: 0; z-index: 5; margin: 18px -16px 0; padding: 10px 16px; background: rgba(243, 231, 205, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 3px solid var(--ink); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hf-nav::-webkit-scrollbar { display: none; }
.hf-nav a { flex: none; padding: 8px 12px; font: 600 14px/1 var(--body); text-decoration: none; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 99px; background: var(--paper); white-space: nowrap; }
.hf-nav a.is-on { background: var(--red); color: #fff; }

/* разделы */
.hf-sec { scroll-margin-top: 70px; padding-top: 8px; }
.hf-sec .dk-h { margin-top: 34px; }
.hf-sec > .hf-media { margin-bottom: 16px; }

/* вопросы-аккордеон */
.hf-q { margin-top: 12px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.hf-q summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px; cursor: pointer; font: 600 17px/1.3 var(--head); letter-spacing: .01em; }
.hf-q summary::-webkit-details-marker { display: none; }
.hf-q summary::after { content: '+'; margin-left: auto; flex: none; width: 30px; height: 30px; display: grid; place-items: center; font: 700 22px/1 var(--head); color: #fff; background: var(--red); border: 2.5px solid var(--ink); border-radius: 50%; transition: transform .2s; }
.hf-q[open] summary::after { transform: rotate(45deg); }
.hf-q[open] summary { border-bottom: 2px dashed rgba(22, 20, 19, .25); }
.hf-a { padding: 12px 14px 16px; color: var(--ink); }
.hf-a p { margin: 0 0 10px; }
.hf-a p:last-child { margin-bottom: 0; }
.hf-a ul, .hf-a ol { margin: 0 0 10px; padding-left: 22px; }
.hf-a li { margin: 4px 0; }
.hf-a a { color: var(--red-dark); font-weight: 600; }
.hf-note { padding: 10px 12px; background: var(--paper-2); border-left: 5px solid var(--red); border-radius: 6px; font-size: 15px; }

/* анимированный путь по кнопкам бота */
.hf-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; }
.hf-path .b { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; font: 600 14px/1.1 var(--body); color: var(--ink); background: #e6efd9; border: 2px solid var(--ink); border-radius: 10px; }
.hf-path .b.red { background: #f4c7c1; }
.hf-path .b.blue { background: #cfe0f5; }
.hf-path .arr { font: 700 18px/1 var(--head); color: var(--red); }
.hf-path .b.is-tap { animation: hf-tap 1s ease-out; }
.hf-path .b.is-tap::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(212, 42, 31, .45); animation: hf-ripple .9s ease-out forwards; pointer-events: none; }
@keyframes hf-tap { 0% { transform: scale(1); } 25% { transform: scale(.92); background: var(--yellow); } 100% { transform: scale(1); } }
@keyframes hf-ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* платформы/приложения */
.hf-apps .dk-tabs { margin-top: 4px; }
.hf-apps .dk-steps { margin-top: 14px; }
.hf-app-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }

.hf-cta { margin-top: 30px; display: grid; gap: 10px; }
.hf-up { position: fixed; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 6; width: 42px; height: 42px; opacity: .9; border-radius: 50%; display: none; place-items: center; background: var(--ink); color: var(--yellow); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--red); font: 700 22px/1 var(--head); cursor: pointer; }
.hf-up.is-on { display: grid; }

@media (max-width: 520px) {
  .hf-path { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hf-path .arr { transform: rotate(90deg); margin-left: 16px; line-height: 1.1; }
}
.dk-top .dk-btn { white-space: nowrap; }
@media (max-width: 420px) {
  .dk-top .dk-btn .long { display: none; }
}
@media (min-width: 421px) {
  .dk-top .dk-btn .short { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-path .b.is-tap, .hf-path .b.is-tap::after { animation: none; }
}
