/* ==========================================================================
   ADSCode – uzupełnienia dla WordPressa:
   pasek admina, treści z edytora (prose), paginacja, komentarze,
   NOWA sekcja „Rekomendacje PDF” i okno podglądu PDF.
   Style bazowe (1:1 z oryginałem) są w style.css.
   ========================================================================== */

/* ------------------------------------------------------------ Pasek admina */
.admin-bar .header { top: 32px; }
.admin-bar .scroll-progress { top: 32px; }
.admin-bar .mobile-menu { padding-top: calc(var(--header-h) + 56px); }
.admin-bar .hero__stage, .admin-bar .hscroll__sticky { top: 32px; height: calc(var(--vh) * 100 - 32px); }
.admin-bar .pdf-modal { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .header, .admin-bar .scroll-progress { top: 46px; }
  .admin-bar .hero__stage, .admin-bar .hscroll__sticky { top: 46px; height: calc(var(--vh) * 100 - 46px); }
  .admin-bar .pdf-modal { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .header.is-scrolled, .admin-bar .header.is-hidden { top: 0; }
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Proste rozwijane menu (pozycja z podmenu w Wygląd → Menu) */
.mega--simple { width: auto; min-width: 260px; grid-template-columns: 1fr; padding: 14px 18px; }
.mega--simple a { white-space: nowrap; }

/* ------------------------------------------------------------ Treść z edytora */
.prose blockquote, .prose figure, .prose table, .prose pre { margin: 1em 0 1.3em; }
.prose h3 { font-family: var(--display); font-size: clamp(20px, 1.7vw, 25px); letter-spacing: -.02em; margin: 1.8em 0 .5em; color: #fff; line-height: 1.25; }
.prose h4 { font-family: var(--display); font-size: 19px; margin: 1.6em 0 .4em; color: #fff; }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose ul li::marker { color: var(--violet); }
.prose ol li::marker { color: var(--cyan); font-family: var(--mono); font-size: .9em; }
.prose blockquote, .prose .wp-block-quote { border-left: 2px solid var(--violet); padding: 6px 0 6px 22px; color: var(--text); font-family: var(--display); font-size: 1.15em; }
.prose blockquote cite { display: block; margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); font-style: normal; }
.prose img { border-radius: 14px; height: auto; }
.prose figure img { border: 1px solid var(--line); }
.prose figcaption, .prose .wp-caption-text { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin-top: 10px; text-align: center; }
.prose code { font-family: var(--mono); font-size: .88em; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #C084FC; }
.prose pre { font-family: var(--mono); font-size: 14px; line-height: 1.7; padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); overflow-x: auto; }
.prose pre code { padding: 0; border: 0; background: none; color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface); }
.prose .wp-block-button__link, .prose .wp-element-button { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; color: #fff; background: var(--grad); text-decoration: none; box-shadow: 0 10px 30px -10px rgba(79, 124, 255, .7); }
.prose .is-style-outline .wp-block-button__link { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide { margin-inline: calc(-1 * min(120px, 8vw)); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.prose .alignfull img, .prose .alignwide img { border-radius: 0; }
.prose iframe, .prose video { max-width: 100%; border-radius: 14px; }
.prose .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.prose a.btn { text-decoration: none; color: #fff; }
.ads-content::after { content: ""; display: table; clear: both; }
.post-cover { margin: 0 0 clamp(36px, 5vw, 64px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); }
.post-cover img { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------ Paginacja */
.pager { margin-top: 48px; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 14px; color: var(--muted); transition: all .25s; }
.pager .page-numbers:hover { color: #fff; border-color: rgba(139, 92, 246, .55); }
.pager .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }

/* ------------------------------------------------------------ Szukaj / komentarze */
.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-form .field { flex: 1; }
.comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments__list { list-style: none; padding: 0; margin: 20px 0 40px; display: grid; gap: 16px; }
.comments__list .comment-body { padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.comments__list .children { list-style: none; padding-left: 24px; margin-top: 16px; }
.comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; font: inherit; color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; }
.comment-reply-title { font-family: var(--display); font-size: 24px; }

/* ==========================================================================
   NOWA SEKCJA: REKOMENDACJE PDF
   Karta = „biurko” z dokumentem: kartka z podglądem PDF (lub elegancki
   zastępczy list z podpisem), za nią dwie kartki, które rozchylają się
   przy wejściu w widok i przy najechaniu.
   ========================================================================== */
.recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rec { display: flex; flex-direction: column; padding: 12px 12px 0; }
.rec__doc { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3.15; border-radius: 12px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 120% at 0% 0%, rgba(79, 124, 255, .24), transparent 55%), radial-gradient(120% 120% at 100% 100%, rgba(139, 92, 246, .24), transparent 55%), var(--surface);
  border: 1px solid var(--line); cursor: zoom-in; }
.rec__doc::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%); opacity: .7; }
.rec__paper, .rec__sheet { grid-area: 1 / 1; width: 54%; aspect-ratio: 1 / 1.414; border-radius: 5px; will-change: transform; }
.rec__paper { position: relative; z-index: 3; overflow: hidden; background: #F5F7FC; color: #1B2030;
  box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translateY(42%) rotate(-1deg); opacity: 0;
  transition: transform 1.2s var(--ease) calc(var(--d, 0s) + .15s), opacity .8s var(--ease) calc(var(--d, 0s) + .15s), box-shadow .5s; }
.rec__paper img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rec__sheet { position: relative; background: linear-gradient(180deg, #E3E7F2, #C6CDDF); opacity: 0; transform: translateY(40%);
  transition: transform 1.3s var(--ease) calc(var(--d, 0s) + .35s), opacity .8s var(--ease) calc(var(--d, 0s) + .35s); }
.rec__sheet--2 { z-index: 2; }
.rec__sheet--3 { z-index: 1; background: linear-gradient(180deg, #C9D0E2, #A9B3CC); }
.rec.is-in .rec__paper { opacity: 1; transform: translateY(13%) rotate(-2.5deg); }
.rec.is-in .rec__sheet--2 { opacity: .5; transform: translate(9%, 15%) rotate(5deg); }
.rec.is-in .rec__sheet--3 { opacity: .28; transform: translate(-10%, 17%) rotate(-9deg); }
.rec:hover .rec__paper, .rec__doc:focus-visible .rec__paper { transform: translateY(6%) rotate(0deg) scale(1.04); box-shadow: 0 44px 70px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(139, 92, 246, .45), 0 20px 60px -20px rgba(79, 124, 255, .55); transition-delay: 0s; }
.rec:hover .rec__sheet--2 { transform: translate(17%, 14%) rotate(10deg); opacity: .62; transition-delay: 0s; }
.rec:hover .rec__sheet--3 { transform: translate(-18%, 16%) rotate(-14deg); opacity: .36; transition-delay: 0s; }

/* Zastępczy „list” – gdy serwer nie wygenerował podglądu PDF */
.rec__fake { position: absolute; inset: 0; padding: 11% 10%; display: flex; flex-direction: column; gap: 7%; }
.rec__fake-head { display: flex; align-items: center; gap: 8%; }
.rec__fake-logo { width: 24%; aspect-ratio: 1; border-radius: 22%; background: var(--grad); display: grid; place-items: center; overflow: hidden; flex: none; }
.rec__fake-logo b { font-family: var(--display); color: #fff; font-size: clamp(9px, 1vw, 14px); letter-spacing: -.02em; }
.rec__fake-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rec__fake-lines { flex: 1; display: grid; gap: 5px; }
.rec__fake-lines i, .rec__fake-body i { display: block; height: 4px; border-radius: 2px; background: #D7DCE8; }
.rec__fake-lines i:last-child { width: 60%; }
.rec__fake-title { font-family: var(--display); font-weight: 700; font-size: clamp(10px, 1.05vw, 15px); letter-spacing: .14em; text-transform: uppercase; color: #2A3150; border-bottom: 1px solid #D7DCE8; padding-bottom: 6%; }
.rec__fake-body { display: grid; gap: 7px; }
.rec__fake-body i:nth-child(3n) { width: 86%; }
.rec__fake-body i:last-child { width: 48%; }
.rec__sign { width: 56%; margin-top: auto; margin-left: auto; overflow: visible; }
.rec__sign path { fill: none; stroke: #4F7CFF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-io) calc(var(--d, 0s) + 1.1s); }
.rec.is-in .rec__sign path { stroke-dashoffset: 0; }

.rec__badge { position: absolute; z-index: 4; right: 7%; top: 5%; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 5px; border-radius: 999px; background: #E5484D; color: #fff; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .04em; box-shadow: 0 6px 16px -6px rgba(229, 72, 77, .8); }
.rec__badge svg { width: 12px; height: 12px; }
.rec__hover { position: absolute; z-index: 5; left: 50%; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(15, 18, 27, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: #fff; transform: translate(-50%, 14px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; pointer-events: none; }
.rec__hover svg { width: 16px; height: 16px; color: var(--cyan); }
.rec:hover .rec__hover, .rec__doc:focus-visible .rec__hover { transform: translate(-50%, 0); opacity: 1; }

.rec__body { padding: 22px 10px 0; display: flex; flex-direction: column; flex: 1; }
.rec__quote { position: relative; margin: 0 0 20px; padding-left: 30px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.rec__q { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; color: var(--violet); }
.rec__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rec__logo { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, .25); }
.rec__logo b { font-family: var(--display); font-size: 14px; color: var(--cyan); }
.rec__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rec__who strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.rec__who small { display: block; font-family: var(--mono); font-size: 12px; color: var(--cyan); margin-top: 2px; }
.rec__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.rec__meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.rec__dl { font-size: 14px; }
.rec__dl svg { transition: transform .4s var(--ease); }
.rec__dl:hover svg { transform: translateY(3px); }
.reduced-motion .rec__paper, .no-js .rec__paper { opacity: 1; transform: translateY(13%) rotate(-2.5deg); }
.reduced-motion .rec__sheet--2, .no-js .rec__sheet--2 { opacity: .5; transform: translate(9%, 15%) rotate(5deg); }
.reduced-motion .rec__sheet--3, .no-js .rec__sheet--3 { opacity: .28; transform: translate(-10%, 17%) rotate(-9deg); }
.reduced-motion .rec__sign path { stroke-dashoffset: 0; }

/* Okno podglądu PDF */
.pdf-modal { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: clamp(10px, 3vw, 40px); }
.pdf-modal__backdrop { position: absolute; inset: 0; background: rgba(6, 7, 11, .74); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .5s var(--ease); }
.pdf-modal__panel { position: relative; width: min(1060px, 100%); height: min(calc(var(--vh) * 92), 1400px); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(139, 92, 246, .22), 0 40px 140px -50px rgba(79, 124, 255, .6);
  transform: translateY(40px) scale(.94); transform-origin: var(--ox, 50%) var(--oy, 50%); opacity: 0; transition: transform .8s var(--ease), opacity .5s var(--ease); }
.pdf-modal.is-open .pdf-modal__backdrop { opacity: 1; }
.pdf-modal.is-open .pdf-modal__panel { transform: none; opacity: 1; }
.pdf-modal__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.pdf-modal__dots { display: flex; gap: 6px; }
.pdf-modal__dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.pdf-modal__dots i:nth-child(2) { background: #FEBC2E; } .pdf-modal__dots i:nth-child(3) { background: #28C840; }
.pdf-modal__name { flex: 1; min-width: 0; margin-left: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-modal__close { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, transform .4s var(--ease); }
.pdf-modal__close:hover { background: rgba(255, 255, 255, .08); transform: rotate(90deg); }
.pdf-modal__close svg { width: 18px; height: 18px; }
.pdf-modal__view { position: relative; flex: 1; background: #1D2029; }
.pdf-modal__view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s var(--ease); }
.pdf-modal.is-loaded .pdf-modal__view iframe { opacity: 1; }
.pdf-modal__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pdf-modal__loading span { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--violet); border-right-color: var(--blue); animation: spin .9s linear infinite; }
.pdf-modal.is-loaded .pdf-modal__loading { opacity: 0; }
body.modal-open { overflow: hidden; }
@media (max-width: 560px) { .pdf-modal__bar .btn span { display: none; } .pdf-modal__bar .btn { padding: 11px 13px; } }

/* Pojedyncza rekomendacja – osadzony PDF */
.pdf-embed object { display: block; width: 100%; height: min(calc(var(--vh) * 88), 1300px); background: #1D2029; }
.pdf-embed__fallback { display: grid; place-items: center; gap: 16px; padding: 60px 20px; text-align: center; color: var(--muted); }

@media (max-width: 1180px) { .recs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .recs { grid-template-columns: 1fr; } }
#rekomendacje .section-head .lead { margin-top: 18px; }
.mega__all--solo { justify-content: flex-end; }

/* ==========================================================================
   Landing page usług – sekcje rozszerzone (te same komponenty co oryginał)
   ========================================================================== */
.lp-aud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-aud__item { min-height: 0; grid-column: auto; }
.lp-aud__item h3 { margin-top: 28px; font-size: clamp(20px, 1.6vw, 24px); }
.lp-aud__item p { margin-bottom: 0; }
.lp-prose { font-size: 17px; }
.lp-prose h3 { margin-top: 1.6em; }
.lp-price__grid { grid-template-columns: repeat(4, 1fr); }
.lp-price__note { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; color: var(--muted); max-width: 760px; }
.lp-price__note svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.lp-tech .partner::before { border-radius: 3px; }
@media (max-width: 1180px) { .lp-aud, .lp-price__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lp-aud, .lp-price__grid { grid-template-columns: 1fr; } }
