/* ==========================================================================
   MAQ Enterprise – dodatkowe style (ładowane po styles.css)
   Zawiera: czytelne linki w stopce, ikony społecznościowe, przyciski
   udostępniania, pływający przycisk WhatsApp, kafelki portfolio, listy.
   ========================================================================== */

/* ---------- Stopka: widoczne linki (kontakt, listy, polityki) ---------- */
.footer-section a:not(.btn):not(.social-icon):not(.maq-share-btn) {
  color: rgba(255, 255, 255, .88) !important;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-section a:not(.btn):not(.social-icon):not(.maq-share-btn):hover,
.footer-section a:not(.btn):not(.social-icon):not(.maq-share-btn):focus-visible {
  color: #fff !important;
  text-decoration: underline;
}
.footer-section .footer-text p,
.footer-section .footer-text i {
  color: rgba(255, 255, 255, .88);
}
.footer-section .footer-text p {
  margin-bottom: .6rem;
}
.footer-section .footer-text p i {
  display: inline-block;
  width: 1.5em;
  margin-right: .35em;
}
.footer-section .footer-widget .list {
  list-style: none;
  padding-left: 0;
}
.footer-section .footer-widget .list li {
  margin-bottom: .45rem;
}

/* ---------- Stopka: media społecznościowe i kontakt ---------- */
.maq-social-label {
  display: block;
  margin: 1rem 0 .6rem;
  font-weight: 600;
  color: #fff;
}
.maq-social-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.maq-social-list a.social-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  font-size: 19px;
  line-height: 1;
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease;
}
.maq-social-list a.social-icon:hover,
.maq-social-list a.social-icon:focus-visible {
  transform: translateY(-3px);
  background: #2563eb !important;
}
.maq-social-list a.social-icon.whatsapp:hover { background: #25d366 !important; }
.maq-social-list a.social-icon.facebook:hover { background: #1877f2 !important; }
.maq-social-list a.social-icon.messenger:hover { background: #0084ff !important; }

/* ---------- Stopka: udostępnianie strony ---------- */
.maq-share-row {
  margin-top: 1.5rem;
}
.maq-share {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.maq-share-title {
  font-weight: 600;
  color: #fff;
  margin-right: .5rem;
}
.maq-share-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
a.maq-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff !important;
  font-size: 14px;
  line-height: 1;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease;
}
a.maq-share-btn svg,
a.maq-share-btn i {
  width: 1.05em;
  height: 1.05em;
  font-size: 1.05em;
  flex: none;
}
a.maq-share-btn:hover,
a.maq-share-btn:focus-visible {
  transform: translateY(-2px);
  background: #2563eb;
}
a.maq-share-btn.sh-facebook:hover { background: #1877f2; }
a.maq-share-btn.sh-linkedin:hover { background: #0a66c2; }
a.maq-share-btn.sh-x:hover { background: #000; }
a.maq-share-btn.sh-whatsapp:hover { background: #25d366; }
a.maq-share-btn.sh-telegram:hover { background: #26a5e4; }
a.maq-share-btn.sh-messenger:hover { background: #0084ff; }
a.maq-share-btn.sh-mail:hover { background: #6b7280; }
/* Messenger udostępnia przez link aplikacji: pokazujemy go na urządzeniach dotykowych */
.maq-share-list .sh-messenger-item { display: none; }
@media (hover: none) and (pointer: coarse) {
  .maq-share-list .sh-messenger-item { display: list-item; }
}

/* ---------- Stopka: dolny pasek z politykami ---------- */
.maq-footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  align-items: center;
}
.maq-footer-bottom .copyright-text p { margin: 0; }
.maq-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}
@media (max-width: 991.98px) {
  .maq-legal { justify-content: flex-start; margin-top: .75rem; }
}

/* ---------- Pływający przycisk WhatsApp ---------- */
.wa-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  z-index: 9998;
  transition: transform .2s ease, background .2s ease;
}
.wa-float:hover,
.wa-float:focus-visible {
  background: #1ebe5b;
  transform: scale(1.08);
}
@media print {
  .wa-float, .maq-share-row { display: none !important; }
}

/* ---------- Portfolio ---------- */
.maq-project {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(127, 127, 127, .28);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(127, 127, 127, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.maq-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}
.maq-project-img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.maq-project-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.maq-project:hover .maq-project-img img {
  transform: scale(1.05);
}
.maq-project-body {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
}
.maq-project-cat {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
}
.maq-project-body h3 {
  margin: 0;
  font-size: 1.2rem;
}
.maq-project-body p {
  margin: 0;
}
.maq-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.maq-tags li {
  font-size: .78rem;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(127, 127, 127, .38);
}
.maq-project-link {
  margin-top: auto;
  padding-top: .4rem;
  font-weight: 600;
}

/* ---------- Strony usług: listy i odnośniki ---------- */
.maq-checklist {
  list-style: none;
  padding-left: 0;
}
.maq-checklist li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .55rem;
}
.maq-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #2563eb;
}
.maq-related {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.maq-contact-note {
  font-size: .95rem;
  opacity: .85;
}

/* ---------- Usługi / portfolio: karty proste (bez przechylenia), podświetlenie po najechaniu ---------- */
.service-card,
.service-card.card-rotated,
.service-card.card-rotated-2,
.card-rotated,
.card-rotated-2 {
  transform: none !important;
  rotate: none !important;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(255, 138, 0, .22);
  border-color: rgba(255, 138, 0, .55);
}
.service-item { align-self: stretch; }
.service-card.maq-project { display: flex; flex-direction: column; gap: .6rem; padding: 0 0 1.5rem; overflow: hidden; }
.service-card.maq-project > :not(.maq-project-img) { margin-left: 1.5rem; margin-right: 1.5rem; }
.service-card.maq-project .btn { margin-top: auto; align-self: flex-start; }
.service-card.maq-project .maq-project-img { margin-bottom: .6rem; border-radius: 0; }

/* ---------- Obrazy w artykułach i na stronach usług ---------- */
.maq-figure { margin: 0 0 1.75rem; }
.maq-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(127, 127, 127, .28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}
.maq-figure-section { padding-top: 0; }
.post-thumb { display: block; margin-bottom: .9rem; }
.post-thumb img { display: block; width: 100%; height: auto; border-radius: 12px; transition: transform .3s ease; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-thumb { overflow: hidden; border-radius: 12px; }
.logo, .logo-sticky { height: auto; max-height: 52px; width: auto; }

/* ---------- Logo większe ---------- */
#header img.logo,
#header img.logo-sticky,
header img.logo,
header img.logo-sticky {
  height: 58px !important;
  width: auto !important;
  max-height: none !important;
}
.footer-section .footer-logo img { height: auto; width: 220px; max-width: 100%; }

/* ---------- Stopka: ikony społecznościowe w jednym rzędzie ---------- */
.footer-section .maq-social-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.footer-section .maq-social-list li {
  display: inline-flex !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.footer-section .footer-social-icon .maq-social-label { display: block; width: 100%; }

/* ---------- Karty „Powiązane usługi” / „Powiązane tematy” ---------- */
.maq-related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
  color: inherit;
  text-decoration: none !important;
}
.maq-related-card img { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; }
.maq-related-card h3 { margin: 0; padding: 1rem 1.2rem 0; font-size: 1.05rem; }
.maq-related-card .maq-related-kind { padding: .9rem 1.2rem 0; margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.maq-related-card .maq-related-more { padding: .5rem 1.2rem 1.2rem; margin-top: auto; font-weight: 600; }

/* ---------- Logo na stronie kontakt ---------- */
.maq-contact-logo { display: block; margin: 0 auto 1.5rem; width: 280px; max-width: 80%; height: auto; }

/* ---------- Stopka: wybór języka ---------- */
.maq-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1.1rem; }
.maq-lang-title { font-weight: 600; color: #fff; margin-right: .4rem; }
.maq-lang-list { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.maq-flag {
  display: inline-flex; padding: 3px; border-radius: 6px; cursor: pointer;
  background: rgba(255, 255, 255, .12); border: 2px solid transparent; line-height: 0;
  transition: transform .2s ease, border-color .2s ease;
}
.maq-flag svg { width: 36px; height: 24px; border-radius: 3px; display: block; }
.maq-flag:hover, .maq-flag:focus-visible { transform: translateY(-2px); border-color: #ff9a1f; }
.maq-flag.is-active { border-color: #ff9a1f; background: rgba(255, 154, 31, .25); }
#maq-gt { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
/* ukrycie paska i podświetleń Google Translate */
.goog-te-banner-frame, .skiptranslate iframe, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---------- Stopka: nagłówki kolumn (akapity zamiast h3) ---------- */
.footer-section .maq-fh { font-weight: 700; color: #fff; margin: 0 0 1rem; }

/* ---------- <picture> (WebP) ---------- */
picture { display: block; }
.maq-project-img picture { height: 100%; }

/* ---------- Posty z Facebooka (pasek boczny bloga) ---------- */
.maq-fb-list { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; gap: .9rem; }
.maq-fb-post article {
  padding: .9rem 1rem;
  border: 1px solid rgba(127, 127, 127, .3);
  border-radius: 12px;
  background: rgba(127, 127, 127, .06);
}
.maq-fb-post time { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .65; margin-bottom: .35rem; }
.maq-fb-post p { margin: 0 0 .5rem; font-size: .92rem; }
.maq-fb-post a { font-weight: 600; }

/* zdjęcia w widżecie Facebooka */
.maq-fb-img { display: block; margin: 0 0 .6rem; border-radius: 10px; overflow: hidden; }
.maq-fb-img img { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; }

/* znaczek Google w panelu bocznym bloga */
.maq-google-badge { margin: 0 0 1.4rem; }
.maq-google-badge a {
  display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 12px; text-decoration: none;
  background: #fff; color: #202124; border: 1px solid rgba(60,64,67,.28); box-shadow: 0 1px 3px rgba(60,64,67,.18);
  transition: box-shadow .2s ease, transform .2s ease;
}
.maq-google-badge a:hover { box-shadow: 0 4px 14px rgba(60,64,67,.28); transform: translateY(-1px); }
.maq-google-badge strong { display: block; font-size: 1rem; line-height: 1.2; }
.maq-google-badge small { display: block; font-size: .78rem; color: #5f6368; }
.maq-g { flex: 0 0 auto; }

/* notatki i wyjaśnienia w artykułach */
.maq-tip, .maq-note { border-left: 4px solid #ff8a00; border-radius: 8px; padding: .9rem 1.1rem; margin: 1.2rem 0; background: rgba(255,138,0,.09); }
.maq-note { border-left-color: #4f6bff; background: rgba(79,107,255,.09); }
.maq-tip p, .maq-note p { margin: 0; }
.maq-tip .maq-tip-title { font-weight: 700; margin-bottom: .25rem; }

/* opinie */
.maq-review-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.5rem; padding: 1.4rem 1.6rem; border-radius: 16px;
  border: 1px solid rgba(128,128,128,.3); background: rgba(128,128,128,.07);
}
.maq-review-box > div { flex: 1 1 320px; }
.maq-review-box h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.maq-review-box p { margin: 0; }
.maq-review-box .maq-g { width: 48px; height: 48px; }
.maq-review-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.maq-review article { height: 100%; padding: 1.1rem 1.2rem; border-radius: 14px; border: 1px solid rgba(128,128,128,.3); background: rgba(128,128,128,.06); }
.maq-review blockquote { margin: 0 0 .6rem; }
.maq-review blockquote p { margin: 0; }
.maq-stars { color: #f5a623; letter-spacing: .12em; margin: 0 0 .4rem; font-size: 1.05rem; }
.maq-review-meta { font-size: .82rem; opacity: .75; margin: 0; }
.maq-review-empty, .maq-review-note { text-align: center; }
.maq-review-note { font-size: .82rem; opacity: .7; margin-top: 1rem; }
.maq-review-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.2rem; }
.maq-review-actions .btn { display: inline-flex; align-items: center; gap: .55rem; }
.maq-review-actions .maq-g { width: 20px; height: 20px; background: #fff; border-radius: 50%; padding: 2px; box-sizing: content-box; }
.maq-btn-fb { background: #1877f2 !important; border-color: #1877f2 !important; }

/* spis treści w artykułach */
.maq-toc { margin: 1.2rem 0 1.6rem; padding: 1rem 1.3rem; border-radius: 12px; border: 1px solid rgba(128,128,128,.3); background: rgba(128,128,128,.07); }
.maq-toc-title { margin: 0 0 .4rem; font-weight: 700; }
.maq-toc ol { margin: 0; padding-left: 1.3rem; }
.maq-toc li { margin: .2rem 0; }
h2[id] { scroll-margin-top: 90px; }

/* usługi: czytelne karty */
.maq-feature { height: 100%; padding: 1.5rem 1.4rem; border-radius: 16px; border: 1px solid rgba(128,128,128,.3); background: rgba(128,128,128,.07); transition: transform .2s ease, box-shadow .2s ease; }
.maq-feature:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.maq-feature .bi { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: .9rem; border-radius: 14px; font-size: 1.6rem; color: #fff; background: #ff8a00; }
.maq-feature h3 { margin: 0 0 .5rem; font-weight: 700; }
.maq-feature p { margin: 0; line-height: 1.6; }

/* o firmie: jednakowe ikony */
.list-wrap .icon, .list-wrap .icon.card-rotated { transform: none !important; }

/* kontakt: ikony przy etykietach i lista tematów */
.maq-ci { color: #ff8a00; margin-right: .35rem; }
.contact-form select.form-control { height: auto; }

/* o firmie: różne kolory ikon */
.list-wrap .icon.maq-ic { border-radius: 50%; }
.maq-ic-1 { background: #2563eb !important; }
.maq-ic-2 { background: #7c3aed !important; }
.maq-ic-3 { background: #16a34a !important; }
.maq-ic-4 { background: #dc2626 !important; }
.maq-ic-5 { background: #f59e0b !important; }
.maq-ic-6 { background: #0891b2 !important; }
