/* ================= Шапка і футер ================= */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(17,18,20,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand:hover { color: #fff; }
.brand__mark { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f3d58f, #c9963f); color: #1d1504; box-shadow: 0 6px 18px rgba(226,180,90,.25); }
.brand__mark .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b { font-size: 21px; font-weight: 900; letter-spacing: .3px; text-transform: uppercase; background: linear-gradient(180deg, #fbe7b5, #e2b45a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__txt small { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.brand--sm .brand__mark { width: 34px; height: 34px; }
.brand--sm .brand__txt b { font-size: 17px; }

.mnav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.mnav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: #d6d8dc; font: inherit; font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.mnav__link:hover, .mnav__dd:hover > .mnav__link, .mnav__dd:focus-within > .mnav__link { color: #fff; }
.mnav__link.is-on, .mnav__dd.is-on > .mnav__link { color: var(--accent2); }
.mnav__link.is-on::after, .mnav__dd.is-on > .mnav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.mnav__chev { width: 11px; height: 8px; transition: transform .15s; }
.mnav__dd { position: relative; }
.mnav__menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; background: #1c1d21; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.mnav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mnav__dd:hover .mnav__menu, .mnav__dd:focus-within .mnav__menu { opacity: 1; visibility: visible; transform: none; }
.mnav__dd:hover .mnav__chev, .mnav__dd:focus-within .mnav__chev { transform: rotate(180deg); }
.mnav__menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #d6d8dc; font-size: 14px; font-weight: 600; }
.mnav__menu a:hover { background: rgba(226,180,90,.1); color: #fff; }

.hdr__right { display: flex; align-items: center; gap: 10px; flex: none; }
.hdr__icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; color: var(--gold); }
.hdr__icon:hover { border-color: rgba(226,180,90,.5); color: #fff; }
.hdr__login { color: #d6d8dc; font-weight: 700; padding: 8px 10px; }
.hdr__login:hover { color: #fff; }
.hdr__cab { text-transform: none; letter-spacing: 0; font-size: 14px; padding: 11px 18px; }
.hdr__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: auto; }
.hdr__burger span { width: 18px; height: 2px; background: #d6d8dc; border-radius: 2px; }

.footer { margin-top: 30px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 34px 20px 20px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer__grid b { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.footer__grid a { color: var(--muted); }
.footer__grid a:hover { color: #fff; }
.footer__grid .brand { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--line); padding: 16px 20px; }

@media (min-width: 1081px) { .mnav[hidden] { display: flex; } }
@media (max-width: 1080px) {
  .hdr__burger { display: inline-flex; }
  .hdr__in { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .mnav { order: 5; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-top: 1px solid var(--line); }
  .mnav[hidden] { display: none; }
  .mnav__link { width: 100%; justify-content: space-between; padding: 12px 6px; }
  .mnav__link.is-on::after, .mnav__dd.is-on > .mnav__link::after { display: none; }
  .mnav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 6px 12px; min-width: 0; }
  .mnav__chev { display: none; }
  .hdr__right { order: 3; }
}
@media (max-width: 560px) {
  .brand__txt small { display: none; }
  .brand__txt b { font-size: 17px; }
  .hdr__login { display: none; }
  .hdr__cab { padding: 9px 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

/* сторінки: завантаження, статистика, інфо */
.steps2 { margin: 0 0 12px; padding-left: 20px; line-height: 1.9; }
.codecopy { position: relative; margin-bottom: 12px; }
.codecopy .pre { padding-right: 130px; }
.codecopy .btn { position: absolute; top: 8px; right: 8px; }
.hbar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 110px; gap: 10px; align-items: center; padding: 7px 0; color: var(--text); }
a.hbar:hover .hbar__lbl { color: #fff; }
.hbar__lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.hbar__bar { height: 8px; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.hbar__bar span { display: block; height: 100%; background: linear-gradient(90deg, #c9963f, #f3d58f); border-radius: 6px; }
.hbar__v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { margin: 0; padding: 0; }
.faq__item summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent2); font-size: 20px; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0; padding: 0 22px 18px; color: #cfd2d8; line-height: 1.7; }
.rules { margin: 0; padding-left: 22px; line-height: 1.9; }
.btn.is-disabled { pointer-events: none; }
@media (max-width: 600px) { .hbar { grid-template-columns: 100px minmax(0, 1fr) 80px; } }

/* банери */
.banners__tabs { margin-bottom: 12px; flex-wrap: wrap; }
.banners__preview { background: repeating-conic-gradient(#1b1c1f 0 25%, #16171a 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 12px; overflow-x: auto; display: flex; justify-content: center; }
.banners__preview img { display: block; max-width: none; image-rendering: auto; }
.banners__pane label { display: block; margin: 8px 0 4px; }
.codeline { display: flex; gap: 6px; }
.codeline .input { font-size: 12px; }
