/*
 * Shared visual foundation for theme blocks.
 * The same declarations power the public site and server-rendered editor previews.
 */
:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) {
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-sans: "IBM Plex Sans", Arial, sans-serif;
  --brand: #96211f;
  --brand-dark: #591614;
  --brand-deep: #451110;
  --brand-tint: #f6edeb;
  --success: #1f6f43;
  --graphite: #24262b;
  --graphite-soft: #33363c;
  --steel: #565b63;
  --ink: #26272b;
  --muted: #74787f;
  --paper: #f5f5f4;
  --line: #e5e4e1;
  --white: #ffffff;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 20px;
  --product-image-ratio: 4 / 3;
  --shadow-s: 0 6px 18px -8px rgba(36, 38, 43, 0.22);
  --shadow-m: 0 18px 40px -18px rgba(36, 38, 43, 0.32);
  --shadow-l: 0 40px 80px -32px rgba(36, 38, 43, 0.42);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) img {
  display: block;
  max-width: 100%;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) a {
  color: inherit;
  text-decoration: none;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) ul {
  list-style: none;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .section {
  padding: 88px 0;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .section--compact-top {
  padding-top: 36px;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .section-head p {
  max-width: 52ch;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) h2.section-title {
  position: relative;
  margin: 0;
  padding-left: 1.05em;
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-transform: uppercase;
}

/* Hinomaru: czerwony punkt sygnaturowy przy tytułach sekcji. */
:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) h2.section-title::before {
  position: absolute;
  top: 0.32em;
  left: 0;
  width: 0.52em;
  height: 0.52em;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-s);
  font-size: 0.98rem;
  font-weight: 700;
  transition:
    background 0.25s var(--ease),
    transform 0.15s var(--ease);
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .btn:active {
  transform: scale(0.98);
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .btn-primary {
  background: var(--brand);
  box-shadow: 0 12px 26px -10px rgba(150, 33, 31, 0.7);
  color: #fff;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .btn-primary:hover {
  background: var(--brand-dark);
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .btn-dark {
  background: var(--graphite);
  color: #fff;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .btn-dark:hover {
  background: var(--graphite-soft);
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    gap 0.25s var(--ease),
    color 0.25s var(--ease);
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .link-more:hover {
  gap: 0.8rem;
  color: var(--brand-dark);
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .link-more svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) :where(a, button, input, summary):focus-visible {
  outline: 3px solid rgba(150, 33, 31, 0.36);
  outline-offset: 3px;
}

:where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) :is(#categories, #products, #porady, #faq) {
  scroll-margin-top: 120px;
}

@media (max-width: 720px) {
  :where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .section {
    padding: 60px 0;
  }

  :where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .section--compact-top {
    padding-top: 36px;
  }
}

@media (max-width: 640px) {
  :where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) :is(#categories, #products, #porady, #faq) {
    scroll-margin-top: 90px;
  }
}

@media (max-width: 480px) {
  :where(body.zampol-site, .editor-styles-wrapper .zampol-native-preview-shell) .wrap {
    padding-right: 18px;
    padding-left: 18px;
  }
}
