/* grafikit.pl — okno „Podaj e-mail, aby pobrać plik” (assets/js/download-gate.js) */
.dl-gate {
  width: min(32rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.dl-gate::backdrop { background: rgba(16, 17, 20, .55); backdrop-filter: blur(2px); }
.dl-gate[open] { animation: dl-gate-in .16s ease-out; }
@keyframes dl-gate-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dl-gate[open] { animation: none; } }
html.dl-gate-open { overflow: hidden; }

.dl-gate__form { position: relative; padding: 1.5rem 1.5rem 1.25rem; margin: 0; }
.dl-gate__close { position: absolute; top: .75rem; right: .75rem; width: 38px; height: 38px; border-color: transparent; }
.dl-gate__icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-active); margin-bottom: .75rem;
}
:root[data-theme="dark"] .dl-gate__icon { color: var(--accent); }
.dl-gate h2 { font-family: Ubuntu, Inter, system-ui, sans-serif; font-size: 1.35rem; line-height: 1.25; margin: 0 2.5rem .5rem 0; }
.dl-gate__lead { margin: 0 0 1.1rem; color: var(--ink); }
.dl-gate .field { margin-bottom: .9rem; }
.dl-gate .field--check > label { font-weight: 400; }
.dl-gate .field--check .check span { font-size: .9rem; line-height: 1.45; }
.dl-gate .req { color: var(--err, #B3261E); font-weight: 700; }
.dl-gate input[aria-invalid="true"] { border-color: var(--err, #B3261E); }
.dl-gate__err { color: var(--err, #B3261E); font-size: .88rem; font-weight: 500; margin: 0 0 .8rem; }
.dl-gate__legal { margin: 0 0 1.1rem; line-height: 1.5; }
.dl-gate__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.dl-gate__actions .btn { flex: 1 1 auto; justify-content: center; }
.dl-gate__actions .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 480px) {
  .dl-gate__form { padding: 1.25rem 1rem 1rem; }
  .dl-gate__actions { flex-direction: column; }
}
.dl-gate__actions + p { margin: .9rem 0 0; }
