/*
Theme Name: Supremum Sentiment
Theme URI: https://supremumseo.pl/
Author: Midero / Supremum SEO
Author URI: https://midero.io
Description: Custom WordPress theme odtwarzający wygląd oryginalnej strony Supremum SEO (theme Sentiment by Arena of Themes), zoptymalizowany pod kątem SEO, wydajności i bezpieczeństwa. Wspiera WordPress 6.x i PHP 8.x.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: supremum-sentiment
*/

/* ==========================================================================
   Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Lato', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #47ade8; text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: #0288de; }
h1, h2, h3, h4, h5, h6 { font-family: 'Lato', sans-serif; font-weight: 700; color: #444; margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 20px; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; width: 100%; }
.clear { clear: both; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Skip link (accessibility / SEO)
   ========================================================================== */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 10px; top: 10px; width: auto; height: auto;
  background: #47ade8; color: #fff; padding: 10px 16px; z-index: 99999;
  font-weight: 700; border-radius: 4px;
}

/* ==========================================================================
   Header + nav
   ========================================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 24px; max-width: 1170px; margin: 0 auto;
}
.site-logo img { max-height: 56px; width: auto; }

.primary-menu {
  display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.primary-menu li { position: relative; }
.primary-menu > li > a {
  display: block; padding: 12px 14px; color: #444; font-weight: 700;
  text-transform: uppercase; font-size: 12px; letter-spacing: .5px;
}
.primary-menu > li > a:hover, .primary-menu > li.current-menu-item > a { color: #47ade8; }
.primary-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  list-style: none; margin: 0; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-menu .sub-menu a {
  display: block; padding: 10px 16px; color: #555; font-size: 13px;
}
.primary-menu .sub-menu a:hover { background: #f7f7f7; color: #47ade8; }

/* Wyróżnienie pozycji „AI Midero" w menu (jedyny link do artykułu) */
.primary-menu .menu-item-ai > a {
  color: #fff !important; background: linear-gradient(135deg, #e0245e 0%, #c91d4f 100%);
  border-radius: 4px; padding-left: 16px; padding-right: 16px;
  margin-left: 6px;
}
.primary-menu .menu-item-ai > a::before { content: '✦  '; opacity: .9; }
.primary-menu .menu-item-ai > a:hover { background: linear-gradient(135deg, #c91d4f 0%, #a01640 100%); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 22px; color: #444; padding: 8px;
}

/* ==========================================================================
   Floating side button – partnerstwo Midero × Supremum
   ========================================================================== */

/* Desktop: kwadracik prawej krawędzi, pionowo */
.midero-side-fab {
  position: fixed;
  right: 0; top: 50%; transform: translateY(-50%);
  z-index: 150;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  width: 88px; padding: 18px 10px;
  background: linear-gradient(160deg, #e0245e 0%, #c91d4f 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 4px 18px rgba(224,36,94,.28);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, padding-right .25s ease;
}
.midero-side-fab:hover {
  transform: translateY(-50%) translateX(-4px);
  box-shadow: -8px 4px 24px rgba(224,36,94,.38);
  color: #fff !important;
}
.midero-side-fab:focus-visible {
  outline: 3px solid #fff; outline-offset: -6px;
}
.midero-side-fab__logo {
  width: 32px; height: 32px; display: block;
  background: #fff; padding: 4px; border-radius: 50%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.1));
}
.midero-side-fab__label {
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; line-height: 1.2;
}
.midero-side-fab__sub {
  font-size: 9px; line-height: 1.3; opacity: .9;
  font-weight: 600; letter-spacing: .2px;
}

/* Tablet: zachowuje desktop layout ale mniejszy */
@media (max-width: 1100px) {
  .midero-side-fab { width: 72px; padding: 14px 8px; }
  .midero-side-fab__sub { display: none; }
}

/* Mobile: kompaktowa pigułka na dole-prawym, sticky FAB */
@media (max-width: 700px) {
  .midero-side-fab {
    top: auto; bottom: 16px; right: 16px;
    transform: none;
    width: auto; padding: 12px 16px 12px 14px;
    flex-direction: row; gap: 10px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(224,36,94,.4);
    font-size: 13px;
  }
  .midero-side-fab:hover { transform: translateY(-3px); }
  .midero-side-fab__logo { width: 28px; height: 28px; padding: 3px; }
  .midero-side-fab__label { font-size: 12px; }
  .midero-side-fab__sub { display: none; }
}

/* Bardzo mała szerokość: wyłącznie ikona */
@media (max-width: 380px) {
  .midero-side-fab__label { display: none; }
  .midero-side-fab { padding: 12px; }
}

/* Print – ukryj */
@media print {
  .midero-side-fab { display: none !important; }
}

/* ==========================================================================
   Hero / slider (HTML, fully responsive)
   ========================================================================== */
.hero-slider {
  position: relative; overflow: hidden; width: 100%;
  background: #1a2a35;
}
.hero-slider__track {
  display: flex; transition: transform .6s ease; will-change: transform;
}
.hero-slider__slide {
  min-width: 100%; flex: 0 0 100%;
  position: relative;
  min-height: 380px;
  display: flex; align-items: center;
}
.hero-slider__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.04) 0%, transparent 40%),
    linear-gradient(135deg, var(--slide-color, #47ade8) 0%, #1a2a35 100%);
}
.hero-slider__inner {
  position: relative; z-index: 2;
  max-width: 1170px; margin: 0 auto; padding: 60px 24px;
  width: 100%;
}
.hero-slider__title {
  color: #fff; font-size: 46px; font-weight: 800; line-height: 1.15;
  margin: 0 0 14px; max-width: 760px; letter-spacing: -.5px;
  overflow-wrap: break-word; word-wrap: break-word; hyphens: auto;
}
.hero-slider__subtitle {
  color: rgba(255,255,255,.92); font-size: 18px; line-height: 1.5;
  margin: 0 0 26px; max-width: 600px;
  overflow-wrap: break-word;
}
.hero-slider__btn {
  display: inline-block; padding: 14px 26px; border-radius: 4px;
  background: #fff; color: var(--slide-color, #47ade8) !important;
  font-weight: 800; font-size: 13px; text-transform: uppercase;
  letter-spacing: .8px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.hero-slider__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.hero-slider__nav {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hero-slider__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: 0; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.hero-slider__dot:hover { background: rgba(255,255,255,.7); }
.hero-slider__dot[aria-selected="true"],
.hero-slider__dot[aria-current="true"] { background: #fff; transform: scale(1.3); }
@media (max-width: 700px) {
  .hero-slider__slide { min-height: 280px; }
  .hero-slider__inner { padding: 32px 16px 56px; }
  .hero-slider__title { font-size: 22px; }
  .hero-slider__subtitle { font-size: 14px; margin-bottom: 18px; }
  .hero-slider__btn { padding: 11px 18px; font-size: 11px; }
}
@media (max-width: 420px) {
  .hero-slider__title { font-size: 19px; line-height: 1.2; }
  .hero-slider__subtitle { font-size: 13px; }
}

/* ==========================================================================
   Service boxes
   ========================================================================== */
.section { padding: 60px 0; }
.section--alt { background: #fafafa; }
.section__title { text-align: center; margin-bottom: 40px; font-size: 28px; }

.services-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  width: 100%;
}
.services-grid > * { min-width: 0; }
.service-card {
  text-align: center; padding: 24px 16px; background: #fff;
  border-radius: 6px; transition: box-shadow .2s ease, transform .2s ease;
  min-width: 0; word-wrap: break-word; overflow-wrap: break-word;
}
.service-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.service-card__icon img { margin: 0 auto 16px; max-width: 80px; }
.service-card h2, .service-card h3 { font-size: 18px; margin-bottom: 10px; color: #1565a3; word-wrap: break-word; font-weight: 700; }
.service-card h2 a, .service-card h3 a { color: inherit; }
.service-card p {
  font-size: 13px; color: #666; line-height: 1.55;
  word-wrap: break-word; overflow-wrap: break-word; hyphens: auto;
  margin: 0;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Process steps (6-step)
   ========================================================================== */
.process-bar {
  background: #47ade8; color: #fff; padding: 18px 24px; border-radius: 4px;
  margin-bottom: 32px; text-align: center;
}
.process-bar h2 { color: #fff; margin: 0; font-size: 20px; }

.process-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  width: 100%;
}
.process-step { min-width: 0; }
.process-step h3 { word-wrap: break-word; }
.process-step p { word-wrap: break-word; overflow-wrap: break-word; min-width: 0; }
.process-step {
  display: flex; gap: 16px; padding: 16px;
}
.process-step__num {
  flex: 0 0 50px; height: 50px; border-radius: 50%;
  background: #47ade8; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.process-step h3 { margin: 0 0 6px; font-size: 16px; color: #1f2a35; }
.process-step p { margin: 0; font-size: 13px; color: #555; }

@media (max-width: 800px) {
  .process-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Highlight / video bg
   ========================================================================== */
.highlight-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(71,173,232,.85), rgba(71,173,232,.85)),
              url('assets/img/highlight-bg.svg') center/cover no-repeat;
  color: #fff; text-align: center; padding: 60px 20px;
  margin: 50px 0;
}
.highlight-banner h2 { color: #fff; font-size: 40px; font-weight: 700; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: #fff; padding: 28px 24px; border-radius: 10px;
  border: 1px solid #e6eaed; box-shadow: 0 1px 3px rgba(0,0,0,.03);
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.testimonial::before {
  content: '"'; position: absolute; top: 8px; right: 18px;
  font-size: 60px; line-height: 1; color: #47ade8; opacity: .15;
  font-family: Georgia, serif;
}
.testimonial:hover { box-shadow: 0 8px 22px rgba(71,173,232,.10); transform: translateY(-3px); }
.testimonial img {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover;
}
.testimonial figcaption { display: contents; }
.testimonial p {
  font-size: 14px; color: #555; margin: 0; line-height: 1.7;
  font-style: italic;
}
.testimonial cite {
  font-size: 12px; color: #1f2a35; font-style: normal; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  display: flex; align-items: center; gap: 12px;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-block {
  background: #47ade8; color: #fff; padding: 36px 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 40px 0;
}
.cta-block h2 { color: #fff; margin: 0; font-size: 22px; flex: 1; }
.btn {
  display: inline-block; padding: 14px 28px; background: #fff; color: #47ade8;
  font-weight: 700; border-radius: 4px; text-transform: uppercase; font-size: 13px;
  border: 0; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: #444; color: #fff; }
.btn--primary { background: #47ade8; color: #fff; }
.btn--primary:hover { background: #444; color: #fff; }

@media (max-width: 700px) {
  .cta-block { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Page / post content
   ========================================================================== */
.page-header {
  background: #f4f4f4; padding: 50px 0; text-align: center;
  border-bottom: 1px solid #eee;
}
.page-header h1 { font-size: 32px; margin: 0; }
.breadcrumbs {
  font-size: 12px; color: #888; margin-bottom: 14px;
  letter-spacing: .3px;
}
.breadcrumbs a { color: #47ade8; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: #555; }

/* Entry hero (single posts + pages) */
.entry-hero {
  padding: 56px 0 40px; text-align: center;
  background: linear-gradient(180deg, #f7fbfe 0%, #fff 100%);
  border-bottom: 1px solid #eef3f6;
}
.entry-hero__title {
  font-size: 38px; line-height: 1.2; max-width: 800px; margin: 0 auto 16px;
  color: #1f2a35; font-weight: 800; letter-spacing: -.5px;
}
.entry-hero--page .entry-hero__title { font-size: 32px; }
.entry-hero__meta {
  display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13px; color: #888;
}
.entry-hero__meta time, .entry-hero__author {
  display: inline-flex; align-items: center; gap: 6px;
}
.entry-hero__meta svg { color: #47ade8; }
.meta-sep { opacity: .5; }
@media (max-width: 700px) {
  .entry-hero { padding: 36px 16px 28px; }
  .entry-hero__title { font-size: 26px; }
  .entry-hero--page .entry-hero__title { font-size: 22px; }
}

/* Featured image on single posts */
.entry-thumb {
  width: 100%; height: auto; border-radius: 10px; margin-bottom: 24px;
}

/* Post navigation refined */
.post-navigation {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin: 60px 0 0; padding: 24px 0; border-top: 1px solid #eef3f6;
  font-size: 14px;
}
.post-navigation a {
  display: block; padding: 16px 18px; background: #fafbfc;
  border-radius: 8px; color: #555; text-decoration: none;
  transition: background .2s, transform .2s;
}
.post-navigation a:hover { background: #eaf6fd; transform: translateY(-2px); }
.post-navigation .nav-label { color: #47ade8; font-size: 12px; font-weight: 700; }
.post-navigation .nav-title { color: #333; font-weight: 700; }
@media (max-width: 600px) {
  .post-navigation { grid-template-columns: 1fr; gap: 12px; }
}

.entry-content { max-width: 820px; margin: 0 auto; padding: 40px 20px; font-size: 15px; }
.entry-content h2 { margin-top: 1.6em; font-size: 24px; color: #444; }
.entry-content h3 { margin-top: 1.4em; font-size: 19px; color: #444; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content a { font-weight: 600; border-bottom: 1px dotted #47ade8; }
.entry-content blockquote {
  border-left: 4px solid #47ade8; margin: 1.6em 0; padding: 8px 20px;
  background: #fafafa; color: #555; font-style: italic;
}
.entry-content ul, .entry-content ol { margin: 1em 0 1.2em 1.4em; }
.entry-content li { margin-bottom: .5em; }

.post-meta { color: #999; font-size: 12px; margin-bottom: 1em; }

/* ==========================================================================
   AI partnership article (/wspolpraca-seo-ai-midero/)
   ========================================================================== */
.ai-article {
  max-width: 880px; margin: 0 auto; padding: 30px 20px 60px;
}

.ai-article__hero {
  text-align: center; padding: 30px 0 40px;
  border-bottom: 1px solid #eef3f6; margin-bottom: 50px;
}
.ai-article__logos {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap; margin-bottom: 30px;
}
.ai-article__logos img { max-height: 40px; width: auto; }
.ai-article__sep { color: #c5d0da; font-size: 28px; font-weight: 300; }
.ai-article__lead {
  font-size: 19px; line-height: 1.6; color: #1f2a35;
  max-width: 700px; margin: 0 auto;
}

.ai-article__pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; margin-bottom: 60px;
}
.ai-pillar {
  padding: 30px 24px; background: #fff;
  border: 1px solid #e6eaed; border-radius: 12px;
  text-align: center;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ai-pillar:hover {
  border-color: #47ade8; box-shadow: 0 8px 22px rgba(71,173,232,.10);
  transform: translateY(-3px);
}
.ai-pillar__icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eaf6fd, #dceffa);
  color: #0288de; font-size: 26px; border-radius: 50%;
}
.ai-pillar h2 {
  font-size: 18px; margin: 0 0 12px; color: #1f2a35;
  font-weight: 700;
}
.ai-pillar p { font-size: 14px; color: #555; margin: 0; line-height: 1.6; }
.ai-pillar a { font-weight: 700; color: #0288de; }

.ai-article__section {
  margin-bottom: 50px; padding: 32px;
  background: linear-gradient(135deg, #f7fbfe 0%, #fff 100%);
  border-left: 4px solid #47ade8; border-radius: 8px;
}
.ai-article__section h2 {
  margin: 0 0 14px; font-size: 22px; color: #1f2a35;
}
.ai-article__section p { font-size: 15px; line-height: 1.7; color: #444; }

.ai-article__faq { margin-bottom: 50px; }
.ai-article__faq h2 {
  font-size: 22px; margin: 0 0 18px; text-align: center; color: #1f2a35;
}

.ai-article__cta {
  text-align: center; padding: 40px 28px;
  background: linear-gradient(135deg, #47ade8 0%, #0288de 100%);
  color: #fff; border-radius: 12px; margin-top: 30px;
}
.ai-article__cta h2 {
  color: #fff; font-size: 24px; margin: 0 0 10px;
}
.ai-article__cta p {
  color: rgba(255,255,255,.92); font-size: 15px; margin: 0 0 24px;
}
.ai-article__cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.ai-article__cta .btn {
  background: #fff; color: #0288de;
}
.ai-article__cta .btn:hover { background: #1f2a35; color: #fff; }
.ai-article__cta .btn--primary { background: #e0245e; color: #fff; }
.ai-article__cta .btn--primary:hover { background: #fff; color: #e0245e; }

@media (max-width: 800px) {
  .ai-article__pillars { grid-template-columns: minmax(0, 1fr); }
  .ai-article__hero { padding: 20px 0 30px; margin-bottom: 30px; }
  .ai-article__lead { font-size: 16px; }
  .ai-article__logos { gap: 16px; }
  .ai-article__logos img { max-height: 30px; }
  .ai-article__sep { font-size: 22px; }
  .ai-article__section { padding: 22px; }
  .ai-article__cta { padding: 30px 20px; }
  .ai-article__cta h2 { font-size: 20px; }
}

/* Single article: ukryj domyślny page-header (mamy własny hero) */
.page-id-68 .entry-hero { display: none; }
.page-id-68 .entry-content { padding: 0; max-width: none; }

/* Hub page children grid (e.g. "O firmie") */
.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.children-grid__card {
  display: block; padding: 22px 22px 26px;
  background: #fff; border: 1px solid #e6eaed; border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.children-grid__card:hover {
  border-color: #47ade8; transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(71,173,232,.12);
}
.children-grid__card h2 {
  font-size: 17px; margin: 0 0 8px; color: #333;
}
.children-grid__card p {
  font-size: 13px; color: #747474; margin: 0;
}
.children-grid__card .arrow {
  position: absolute; right: 18px; bottom: 14px;
  color: #47ade8; font-weight: 700; font-size: 18px;
  transition: transform .2s;
}
.children-grid__card:hover .arrow { transform: translateX(4px); }

/* Author / partnership box */
.partner-box {
  margin: 40px 0; padding: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #eaf6fd, #f7fbfe);
  border: 1px solid #b8dff5;
  display: flex; gap: 24px; align-items: center;
}
.partner-box__logo { flex: 0 0 120px; }
.partner-box__logo img { max-width: 100%; }
.partner-box h3 { margin: 0 0 6px; color: #444; }
.partner-box p { margin: 0 0 8px; font-size: 14px; color: #555; }
.partner-box a.btn { margin-top: 6px; }

/* FAQ (schema-friendly) */
.faq-section { margin: 40px 0; }
.faq-item {
  background: #fafafa; border: 1px solid #eee; border-radius: 6px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; color: #444; font-size: 16px;
  list-style: none; outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: #47ade8; }
.faq-item p { margin: 12px 0 0; color: #555; font-size: 14px; }

/* Blog list */
.blog-list { display: grid; gap: 30px; max-width: 820px; margin: 0 auto; padding: 40px 20px; }
.blog-card {
  border-bottom: 1px solid #eee; padding-bottom: 24px;
}
.blog-card h2 { font-size: 22px; margin-bottom: 8px; }
.blog-card h2 a { color: #444; }
.blog-card h2 a:hover { color: #47ade8; }
.blog-card .post-meta { margin-bottom: 8px; }
.blog-card .read-more {
  display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700;
}
.pagination {
  display: flex; gap: 8px; justify-content: center; margin: 30px 0;
}
.pagination a, .pagination span {
  padding: 8px 14px; background: #f4f4f4; color: #444; border-radius: 4px;
}
.pagination .current { background: #47ade8; color: #fff; }

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 4px;
  font-size: 14px; font-family: inherit;
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: #47ade8;
}
.wpcf7 p { margin-bottom: 14px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #2c2c2c; color: #ccc; padding: 50px 0 0;
  font-size: 13px;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  max-width: 1170px; margin: 0 auto; padding: 0 20px;
}
.footer-cols h5 {
  color: #fff; font-size: 14px; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid #47ade8; display: inline-block;
}
.footer-cols a { color: #ccc; }
.footer-cols a:hover { color: #47ade8; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { padding: 4px 0; }

.footer-bottom {
  margin-top: 40px; padding: 18px 20px; background: #1f1f1f; color: #888;
  text-align: center;
}
.footer-menu {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; font-size: 12px;
}
.footer-menu a { color: #888; }
.footer-menu a:hover { color: #47ade8; }

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-menu {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-top: 1px solid #eee;
  }
  .primary-menu.is-open { display: flex; }
  .primary-menu > li > a { padding: 14px 20px; border-bottom: 1px solid #f4f4f4; }
  .primary-menu .sub-menu {
    position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    background: #fafafa; padding: 0;
  }
  .primary-menu .sub-menu a { padding-left: 36px; }
}

/* ==========================================================================
   Imported (Wayback) content – sanitize legacy WP styles
   ========================================================================== */
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.entry-content table th, .entry-content table td {
  border: 1px solid #e6eaed; padding: 8px 12px; text-align: left;
}
.entry-content table th { background: #f7fbfe; font-weight: 700; }
.entry-content img {
  max-width: 100%; height: auto; border-radius: 6px;
  margin: 1em 0;
}
/* Ukryj uszkodzone obrazki (legacy supremumseo.pl/wp-content/...) */
.entry-content img[src*="supremumseo.pl"]:not([src^="http://localhost"]):not([src^="https://localhost"]) {
  display: none;
}

/* ==========================================================================
   Container width on small screens
   ========================================================================== */
@media (max-width: 700px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .section { padding: 36px 0; }
  .page-header { padding: 32px 0; }
  .page-header h1 { font-size: 24px; }
  .entry-content { padding: 28px 16px; }
  .highlight-banner { padding: 36px 16px; }
  .highlight-banner h2 { font-size: 26px; }
  .cta-block { padding: 24px 16px; }
  .cta-block h2 { font-size: 17px; }
}

/* Touch targets WCAG */
a, button, .btn, .menu-toggle { min-height: 44px; }
.primary-menu > li > a { padding-top: 14px; padding-bottom: 14px; }

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .midero-top-link, .site-footer, .cta-block, .menu-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
