/*
Theme Name: Porównywarka Leasingu
Theme URI: https://twojadomena.pl
Author: Twoja Firma
Author URI: https://twojadomena.pl
Description: Dedykowany motyw dla porównywarki i kalkulatora leasingowego.
Version: 1.0.0
*/

/* Reset podstawowy */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #0f172a;
  line-height: 1.5;
}

.lm-page-wrapper {
  min-height: 100vh;
  padding: 40px 16px;
}

.lm-container {
  max-width: 1200px;
  margin: 0 auto;
}

.lm-hero {
  margin-bottom: 28px;
}

.lm-main-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.lm-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

.lm-app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 960px) {
  .lm-app-grid {
    grid-template-columns: 1.35fr 1fr;
  }
}

.lm-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.lm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.lm-section-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.lm-badge-pill {
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}

.lm-field {
  margin-bottom: 22px;
}

.lm-field-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.lm-value-display {
  color: #2563eb;
  font-size: 16px;
  font-weight: 800;
}

.lm-range-slider {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  accent-color: #2563eb;
  cursor: pointer;
  margin: 4px 0;
  display: block;
}

.lm-range-extremes {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}

.lm-period-selector {
  display: flex;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.lm-period-btn {
  flex: 1;
  background: #f8fafc;
  border: none;
  border-right: 1px solid #cbd5e1;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lm-period-btn:last-child {
  border-right: none;
}

.lm-period-btn.lm-active {
  background: #2563eb;
  color: #ffffff;
}

.lm-tax-toggle-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
}

.lm-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  margin-top: 2px;
  cursor: pointer;
}

.lm-checkbox-label {
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.lm-checkbox-label strong {
  display: block;
  color: #0f172a;
}

.lm-checkbox-label span {
  color: #64748b;
  font-size: 12px;
}

.lm-summary-darkcard {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: #ffffff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}

.lm-summary-eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  font-weight: 700;
}

.lm-price-headline {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 6px 0;
  line-height: 1.1;
  letter-spacing: -1px;
}

.lm-price-headline small {
  font-size: 17px;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: 0;
}

.lm-tax-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: #93c5fd;
  margin: 8px 0 16px 0;
}

.lm-tax-badge strong {
  color: #ffffff;
}

.lm-dark-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 16px 0;
}

.lm-data-rows {
  margin-bottom: 20px;
}

.lm-data-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 9px;
  color: #cbd5e1;
}

.lm-text-cyan {
  color: #38bdf8;
}

.lm-text-green {
  color: #4ade80;
}

.lm-btn-cta {
  display: block;
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: background 0.2s ease;
}

.lm-btn-cta:hover {
  background: #1d4ed8;
}

.lm-trust-caption {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
}

.lm-offers-heading {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 22px 0 10px 0;
}

.lm-offer-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lm-offer-bank {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.lm-pill-green {
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
}

.lm-pill-blue {
  font-size: 11px;
  color: #2563eb;
  font-weight: 600;
}

.lm-offer-info {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.lm-offer-pricing {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.lm-offer-pricing small {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
}

/* Sekcja Porównania Ofert */
.lm-comparison-wrap {
  margin-top: 50px;
  padding-top: 35px;
  border-top: 2px dashed #cbd5e1;
}

.lm-comparison-header {
  margin-bottom: 24px;
}

.lm-comparison-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #0f172a;
}

.lm-comparison-header p {
  color: #64748b;
  margin: 0;
  font-size: 14px;
}

.lm-comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lm-comp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

@media (min-width: 900px) {
  .lm-comp-card {
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
    align-items: center;
  }
}

.lm-comp-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.lm-comp-bank-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lm-tag-orange {
  background: #ffedd5;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.lm-comp-desc {
  font-size: 13px;
  color: #64748b;
}

.lm-comp-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #334155;
}

.lm-comp-perks li {
  margin-bottom: 4px;
  position: relative;
  padding-left: 18px;
}

.lm-comp-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: bold;
}

.lm-comp-metric-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}

.lm-comp-metric-val {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.lm-comp-action {
  text-align: right;
}

.lm-comp-price {
  font-size: 28px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}

.lm-comp-price small {
  font-size: 13px;
  color: #64748b;
  font-weight: normal;
}

.lm-comp-tax-info {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.lm-comp-tax-info strong {
  color: #0f172a;
}

.lm-comp-btn {
  display: inline-block;
  margin-top: 10px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.lm-comp-btn:hover {
  background: #1d4ed8;
}

/* Stan, gdy wpłata klienta jest za niska dla danego banku */
.lm-comp-card.lm-disabled {
  opacity: 0.6;
  background: #f8fafc;
}
.lm-warn-tag {
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
}

/* Style logotypu w karcie banku */
.lm-comp-logo-wrap {
  height: 40px;
  max-width: 150px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.lm-comp-logo-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   W pełni elastyczny pasek nawigacyjny (Header & Menu)
   ========================================================================== */
.lm-navbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  width: 100%;
}

.lm-nav-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 16px !important;
  max-width: 1240px; /* lekko poszerzamy max-width, by dać oddech elementom */
  margin: 0 auto;
  box-sizing: border-box;
}

.lm-logo {
  flex-shrink: 0;
  margin-right: 12px;
}

.lm-logo a {
  font-size: 17px !important;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.4px;
  display: inline-block;
  white-space: nowrap;
}

.lm-logo span {
  color: #2563eb;
}

/* Usuwamy overflow: hidden i pozwalamy na elastyczne dopasowanie */
.lm-nav-menu {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 1;
}

.lm-nav-links,
.lm-nav-menu ul {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2px !important; /* minimalna przerwa między elementami */
  flex-wrap: nowrap !important;
}

.lm-nav-links li,
.lm-nav-menu ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  flex-shrink: 0;
}

/* Zbalansowane wymiary linków */
.lm-nav-links li a,
.lm-nav-menu ul li a {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
  padding: 5px 7px !important;
  border-radius: 6px;
  white-space: nowrap;
}

.lm-nav-links li a:hover,
.lm-nav-menu ul li a:hover {
  color: #2563eb;
  background: #f1f5f9;
}

.lm-nav-links li.current-menu-item a,
.lm-nav-links li a.active {
  color: #2563eb !important;
  font-weight: 600 !important;
}

/* Ostatni element (Kontakt) */
.lm-nav-links li:last-child a,
.lm-nav-menu ul li:last-child a {
  background: #eff6ff !important;
  color: #2563eb !important;
  font-weight: 600 !important;
  padding: 5px 10px !important;
  margin-left: 4px;
}

.lm-nav-links li:last-child a:hover,
.lm-nav-menu ul li:last-child a:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Obsługa ekranów o szerokości poniżej 1180px */
@media (max-width: 1180px) {
  .lm-nav-links li a,
  .lm-nav-menu ul li a {
    font-size: 11.5px !important;
    padding: 4px 5px !important;
  }
  .lm-logo a {
    font-size: 15px !important;
  }
}



/* ==========================================================================
   Sekcja Treści SEO i FAQ
   ========================================================================== */
.lm-seo-section {
  margin-top: 50px;
  padding-bottom: 40px;
}

.lm-seo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  line-height: 1.7;
  color: #334155;
}

.lm-seo-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 14px;
}

.lm-seo-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 20px;
  margin-bottom: 8px;
}

.lm-seo-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .lm-seo-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.lm-seo-col {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.lm-faq-box {
  margin-top: 30px;
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

.lm-faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  cursor: pointer;
}

.lm-faq-item summary {
  color: #0f172a;
  font-size: 15px;
}

.lm-faq-item p {
  margin: 10px 0 0 0;
  font-size: 14px;
  color: #475569;
}

/* ==========================================================================
   Specjalne poprawki dla Safari / WebKit na macOS i iOS
   ========================================================================== */
header.lm-navbar {
  display: block !important;
  width: 100% !important;
  position: -webkit-sticky !important;
  position: sticky !important;
}

.lm-nav-container {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-box-pack: justify !important;
  -webkit-justify-content: space-between !important;
  justify-content: space-between !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
}

.lm-nav-menu {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
}

/* Wymuszenie usunięcia kropek i poziomego układu w Safari */
.lm-nav-menu ul,
.lm-nav-menu ul.lm-nav-links,
ul.lm-nav-links {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -webkit-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  list-style: none !important;
  list-style-type: none !important;
  -webkit-padding-start: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.lm-nav-menu ul li,
ul.lm-nav-links li {
  display: inline-block !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 12px !important;
}

.lm-nav-menu ul li a,
ul.lm-nav-links li a {
  display: inline-block !important;
  white-space: nowrap !important;
}

.lm-comp-btn.lm-btn-link {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

/* ==========================================================================
   Style podstron informacyjnych (page.php)
   ========================================================================== */
.lm-subpage-wrapper {
  background-color: #f1f5f9;
  min-height: 85vh;
  padding: 30px 16px 60px 16px;
}

/* Górny pasek z przyciskiem powrotu */
.lm-subpage-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.lm-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.lm-back-btn:hover {
  background: #1d4ed8;
  transform: translateX(-2px);
}

.lm-back-arrow {
  font-size: 16px;
  line-height: 1;
}

.lm-subpage-hint {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 600px) {
  .lm-subpage-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Karta z treścią wpisu / podstrony */
.lm-subpage-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.lm-subpage-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.lm-subpage-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
}

/* Formatowanie treści z edytora Gutenberga */
.lm-subpage-entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.lm-subpage-entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 32px;
  margin-bottom: 12px;
}

.lm-subpage-entry-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 24px;
  margin-bottom: 10px;
}

.lm-subpage-entry-content p {
  margin-bottom: 16px;
}

.lm-subpage-entry-content ul,
.lm-subpage-entry-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.lm-subpage-entry-content li {
  margin-bottom: 8px;
}

.lm-subpage-entry-content a {
  color: #2563eb;
  text-decoration: underline;
}

/* Layout główny */
.blog-archive-main {
    padding: 40px 20px;
    background-color: #f8fafc;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Blog & Artykuły (home.php & single.php)
   ========================================================================== */
.lm-blog-wrapper {
  background-color: #f1f5f9;
  min-height: 85vh;
  padding: 30px 16px 60px 16px;
}

.lm-blog-hero {
  margin-bottom: 32px;
}

.lm-blog-main-title {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.lm-blog-subtitle {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}

/* Siatka wpisów */
.lm-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .lm-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lm-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lm-blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.lm-blog-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08);
}

.lm-blog-thumb-link {
  display: block;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
}

.lm-blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lm-blog-card:hover .lm-blog-card-img {
  transform: scale(1.04);
}

.lm-blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lm-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 10px;
}

.lm-blog-date {
  color: #94a3b8;
}

.lm-blog-cat {
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
}

.lm-blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.lm-blog-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.lm-blog-card-title a:hover {
  color: #2563eb;
}

.lm-blog-card-excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.lm-blog-readmore {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.lm-blog-readmore:hover {
  text-decoration: underline;
}

/* Paginacja */
.lm-pagination {
  margin-top: 40px;
  text-align: center;
}

.lm-pagination .nav-links {
  display: inline-flex;
  gap: 8px;
}

.lm-pagination .page-numbers {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.lm-pagination .page-numbers.current {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Pojedynczy artykuł */
.lm-secondary-back-link {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
}

.lm-secondary-back-link:hover {
  color: #2563eb;
}

.lm-single-header {
  margin-bottom: 20px;
}

.lm-single-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.lm-single-title {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0;
}

.lm-single-thumbnail {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
}

.lm-single-featured-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Baner CTA pod wpisem */
.lm-article-cta-box {
  margin-top: 45px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: #ffffff;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .lm-article-cta-box {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.lm-article-cta-text h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #ffffff;
}

.lm-article-cta-text p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.lm-article-cta-btn {
  width: auto !important;
  white-space: nowrap;
  padding: 12px 24px !important;
  text-decoration: none;
}

/* Stopka */
.lm-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding-top: 45px;
  color: #475569;
}

.lm-footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .lm-footer-container {
    grid-template-columns: 2fr 1fr 1.5fr;
  }
}

.lm-footer-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a;
  margin: 0 0 14px 0;
}

.lm-footer-text {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}

.lm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lm-footer-links li {
  margin-bottom: 8px;
}

.lm-footer-links a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
}

.lm-footer-links a:hover {
  color: #2563eb;
}

.lm-footer-disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}

.lm-footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* ==========================================================================
   Podstrona Kontakt (page-kontakt.php)
   ========================================================================== */
.lm-contact-page-wrapper {
  background-color: #f1f5f9;
  min-height: 85vh;
  padding: 30px 16px 60px 16px;
}

.lm-contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 960px) {
  .lm-contact-layout {
    grid-template-columns: 1fr 1.25fr;
  }
}

.lm-contact-info-card,
.lm-contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.lm-contact-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.lm-contact-lead {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 28px 0;
}

.lm-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.lm-channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 18px;
  border-radius: 12px;
}

.lm-channel-icon {
  font-size: 22px;
  color: #2563eb;
  line-height: 1;
}

.lm-channel-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lm-channel-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.lm-channel-value:hover {
  color: #2563eb;
}

.lm-contact-trust-box {
  border-top: 1px solid #e2e8f0;
  padding-top: 22px;
}

.lm-contact-trust-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
}

.lm-contact-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.lm-contact-trust-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.lm-contact-trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: bold;
}

/* Formularz */
.lm-form-heading {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.lm-form-subheading {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 22px 0;
}

.lm-form-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lm-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .lm-form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.lm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lm-form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.lm-req {
  color: #dc2626;
}

.lm-optional {
  font-weight: 400;
  color: #94a3b8;
  font-size: 12px;
}

.lm-form-group input,
.lm-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lm-form-group input:focus,
.lm-form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lm-input-readonly {
  background: #f1f5f9 !important;
  font-weight: 700;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed;
}

.lm-form-help {
  font-size: 11px;
  color: #64748b;
}

.lm-submit-btn {
  margin-top: 8px;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
}

.lm-privacy-notice {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  text-align: center;
  margin: 4px 0 0 0;
}

/* Komunikaty sukcesu / błędu */
.lm-alert {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.lm-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.lm-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
