/* Content pages — Kontakt + FM Simple (FAQ / Dostawa / Zwroty / O nas) */

.fm-page {
  padding-block: 8px 64px;
}

.fm-page__crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--fm-gray-600, #6b7280);
  margin-bottom: 18px;
}

.fm-page__crumb a {
  color: var(--fm-gray-600, #6b7280);
  text-decoration: none;
}

.fm-page__crumb a:hover {
  color: var(--fm-red, #d62828);
}

.fm-page__crumb-sep {
  color: #bbb;
}

.fm-page__title {
  margin: 0 0 28px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fm-page-card {
  background: #fff;
  border: 1px solid var(--fm-gray-200, #e5e5e5);
  border-radius: 12px;
  padding: 28px 32px;
}

.fm-page-card + .fm-page-card,
.fm-page-card + .fm-kontakt-layout {
  margin-top: 24px;
}

.fm-page-card h2,
.fm-page-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.fm-page-card p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--fm-gray-600, #6b7280);
  line-height: 1.55;
  max-width: 62ch;
}

.fm-page-card .fm-btn {
  margin-top: 4px;
}

.fm-kontakt-aside__art {
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
  aspect-ratio: 1 / 1;
  flex: 1 1 auto;
  min-height: 240px;
  margin-top: auto;
}

.fm-kontakt-aside__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fm-kontakt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 24px;
}

.fm-kontakt-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 100%;
}

.fm-kontakt-form h2 {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
}

.fm-field {
  margin-bottom: 18px;
}

.fm-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fm-gray-900, #111);
}

.fm-field label .req {
  color: var(--fm-red, #d62828);
}

.fm-field input,
.fm-field select,
.fm-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--fm-gray-200, #e5e5e5);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--fm-gray-900, #111);
  box-sizing: border-box;
}

.fm-field textarea {
  min-height: 140px;
  resize: vertical;
}

.fm-field input:focus,
.fm-field select:focus,
.fm-field textarea:focus {
  outline: none;
  border-color: var(--fm-red, #d62828);
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.08);
}

.fm-field__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--fm-gray-600, #6b7280);
}

.fm-field-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.fm-field-radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}

.fm-field-radios input {
  accent-color: var(--fm-red, #d62828);
  width: auto;
}

.fm-kontakt-legal {
  margin: 16px 0 20px;
  font-size: 12px;
  color: var(--fm-gray-600, #6b7280);
  line-height: 1.55;
  max-width: none !important;
}

.fm-kontakt-legal a {
  text-decoration: underline;
  color: inherit;
}

.fm-kontakt-bok,
.fm-kontakt-dane {
  border: 1px solid var(--fm-gray-200, #e5e5e5);
  border-radius: 12px;
  padding: 22px 24px;
  background: #fff;
}

.fm-kontakt-bok h3,
.fm-kontakt-dane h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.fm-kontakt-bok__phone {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--fm-gray-900, #111);
  text-decoration: none;
  margin-bottom: 6px;
}

.fm-kontakt-bok__phone:hover {
  color: var(--fm-red, #d62828);
}

.fm-kontakt-bok__mail {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--fm-red, #d62828);
  margin-bottom: 12px;
  text-decoration: none;
}

.fm-kontakt-bok p,
.fm-kontakt-dane p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--fm-gray-600, #6b7280);
  line-height: 1.5;
}

/* FM Simple — FAQ / Dostawa / Zwroty / O nas */
body.fm-simple-content .wd-sidebar,
body.fm-simple-content .sidebar-container,
body.fm-simple-content .wd-page-title,
body.fm-simple-content .page-title,
body.fm-simple-content .wd-breadcrumbs,
body.fm-simple-content .widget_recent_entries,
body.fm-simple-content .widget_recent_comments,
body.fm-simple-content .widget_search,
body.fm-simple-content .comments-area,
body.fm-simple-content #comments {
  display: none !important;
}

.fm-simple {
  padding-block: 8px 72px;
}
.fm-simple .fm-page__title {
  margin-bottom: 22px;
}
.fm-simple-body.fm-page-card {
  max-width: 820px;
}
.fm-simple-body > *:last-child {
  margin-bottom: 0;
}
.fm-simple-body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.fm-simple-body h2 {
  margin: 18px 0 0;
  padding: 20px 0 10px;
  border-top: 1px solid var(--fm-gray-200, #e8e8e8);
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.fm-simple-body p {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fm-gray-600, #4b5563);
  max-width: 62ch;
}
.fm-simple-body ul,
.fm-simple-body ol {
  margin: 0 0 6px;
  padding-left: 1.25em;
  max-width: 62ch;
}
.fm-simple-body li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fm-gray-600, #4b5563);
  margin-bottom: 6px;
}
.fm-simple-body a {
  color: var(--fm-red, #d62828);
  font-weight: 600;
  text-decoration: none;
}
.fm-simple-body a:hover {
  text-decoration: underline;
}

body.fm-kontakt-page .wd-page-title,
body.fm-kontakt-page .page-title,
body.fm-kontakt-page .wd-sidebar,
body.fm-kontakt-page .sidebar-container,
body.fm-kontakt-page .wd-breadcrumbs {
  display: none !important;
}

body.fm-kontakt-page .wd-content-area,
body.fm-kontakt-page .site-content {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  flex: 1 1 100% !important;
}

body.fm-kontakt-page .main-page-wrapper > .container,
body.fm-kontakt-page .wd-page-content > .container {
  max-width: none;
  padding-inline: 0;
}

@media (max-width: 900px) {
  .fm-kontakt-layout {
    grid-template-columns: 1fr;
  }

  .fm-kontakt-aside__art {
    min-height: 280px;
    aspect-ratio: 1 / 1;
    flex: none;
  }

  .fm-page-card {
    padding: 20px 18px;
  }
}

/* —— 404 —— */
.fm-404 {
  padding-block: 48px 72px;
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-404__panel {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  padding: 32px 24px;
}
.fm-404__code {
  margin: 0;
  font-size: clamp(72px, 14vw, 120px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #e8e8e8;
  user-select: none;
}
.fm-404__title {
  margin: -12px 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}
.fm-404__lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
  color: #555;
}
.fm-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 0 16px;
}
.fm-404__hint {
  margin: 0;
  font-size: 14px;
  color: #888;
}

body.error404 .wd-page-title,
body.error404 .page-title,
body.error404 .wd-sidebar,
body.error404 .sidebar-container,
body.error404 .wd-breadcrumbs,
body.error404 .wd-content-area > .page-header {
  display: none !important;
}
