/* Strona główna agnostic — layout z szablonu home.php */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #14202b;
  --muted: #5f6b76;
  --line: #dbe3ea;
  --primary: #0f4c81;
  --primary-strong: #0b3b64;
  --accent: #f0b429;
  --success: #1f7a5c;
  --shadow: 0 18px 50px rgba(15, 38, 59, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 76, 129, 0.06), transparent 28%),
    linear-gradient(180deg, #fbfcfe 0%, #f5f7fa 100%);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: #fff;
  border-bottom: 1px solid rgba(219, 227, 234, 0.75);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: auto;
  height: auto;
  max-width: 320px;
  max-height: 72px;
  object-fit: contain;
  /* border-radius: 18px; */
  /* border: 1px solid rgba(15, 76, 129, 0.1); */
  /* box-shadow: 0 8px 20px rgba(15, 76, 129, 0.08); */
  /* background: #fff; */
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.main-nav__link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: 0.2s ease;
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
  color: var(--primary);
  background: rgba(15, 76, 129, 0.08);
  outline: none;
}

.main-nav__link--cta {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.2);
}

.main-nav__link--cta:hover,
.main-nav__link--cta:focus-visible {
  background: var(--primary-strong);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  background: #fff;
  color: var(--text);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span[aria-hidden="true"] {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  padding: 52px 0 34px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero__content,
.hero__sidebar {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(219, 227, 234, 0.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero__content {
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.hero__content::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.2), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero__lead {
  margin: 0;
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.panel__button:hover {
  transform: translateY(-1px);
}

.button--primary,
.panel__button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 76, 129, 0.22);
}

.button--primary:hover,
.panel__button:hover {
  background: var(--primary-strong);
}

.button--ghost {
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
}

.hero__search-hint {
  margin-top: 28px;
  max-width: 62ch;
  line-height: 1.55;
  color: var(--muted);
  font-size: 1rem;
}

.hero__search-hint a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__search-hint a:hover {
  color: var(--primary-strong);
}

.hero__stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  background: rgba(238, 242, 246, 0.8);
  border: 1px solid rgba(219, 227, 234, 0.9);
  border-radius: 20px;
  padding: 18px;
}

.stat__value {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
}

.stat__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  white-space: pre-line;
}

.hero__sidebar {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.98), rgba(11, 59, 100, 0.98));
  color: #fff;
}

.card-title {
  margin: 8px 0 0;
  font-size: 1.6rem;
  line-height: 1.15;
}

.card-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.section {
  padding: 26px 0;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.section__title {
  margin: 0;
  font-size: clamp(1.7rem, 2.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section__lead {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(219, 227, 234, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.catalog-sidebar,
.catalog-main,
.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 227, 234, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.catalog-sidebar {
  padding: 22px;
  position: sticky;
  top: 100px;
}

.catalog-sidebar h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.category-list,
.footer__nav,
.panel__list {
  display: grid;
  gap: 10px;
}

.category-list a,
.footer__nav a,
.panel__list a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-2);
  font-weight: 700;
  transition: 0.2s ease;
}

.category-list a:hover,
.footer__nav a:hover,
.panel__list a:hover {
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
}

.catalog-main {
  padding: 22px;
}

.product-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 38, 59, 0.12);
  border-color: rgba(15, 76, 129, 0.22);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f9fbfd, #eef3f8);
  padding: 20px;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.product-card__price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.product-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.product-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  padding: 24px;
}

.panel--dark {
  background: linear-gradient(180deg, #172737, #102030);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.06);
}

.panel--dark .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.panel--dark p,
.panel--dark li {
  color: rgba(255, 255, 255, 0.82);
}

.panel h3 {
  margin: 14px 0 10px;
  font-size: 1.4rem;
}

.panel p,
.panel li {
  color: var(--muted);
}

.panel__contact {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}

.site-footer {
  padding: 26px 0 42px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 227, 234, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.site-footer__brand {
  display: grid;
  gap: 10px;
}

.site-footer__brand strong {
  font-size: 1.2rem;
}

.site-footer__brand p {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.site-footer__contact-line {
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .site-header {
    /* iOS safe area — zapobiega „ucięciu” logo pod notchem / górną krawędzią */
    padding-top: env(safe-area-inset-top, 0);
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    margin-left: 0;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(219, 227, 234, 0.9);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav__link {
    width: 100%;
    border-radius: 12px;
  }

  .main-nav__link--cta {
    text-align: center;
  }

  .brand__logo {
    max-width: min(230px, 100%);
    max-height: 56px;
  }

  .hero__grid,
  .catalog-layout,
  .panels,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 28px;
  }

  .hero__content,
  .hero__sidebar,
  .catalog-main,
  .catalog-sidebar,
  .panel,
  .site-footer__inner {
    padding: 20px;
  }

  .hero__stats,
  .features,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section__header {
    align-items: start;
    flex-direction: column;
  }
}

/* Podstrony (inner) — ta sama typografia co strona główna */
.inner-page-body .inner-page-hero {
  padding: 48px 0 24px;
  background: linear-gradient(165deg, var(--color-surface-elevated) 0%, var(--color-bg) 55%);
  border-bottom: 1px solid var(--color-border-subtle);
}

.inner-page-hero .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.inner-page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.inner-page-hero__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.inner-page-content {
  padding-top: 32px;
  padding-bottom: 64px;
}

.inner-page-content__inner {
  max-width: 720px;
}

.inner-page-prose {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-text);
}

.inner-page-prose p {
  margin: 0 0 1rem;
}

.inner-page-prose ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}

.inner-page-prose li {
  margin-bottom: 0.35rem;
}

.inner-page-prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inner-page-products {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(219, 227, 234, 0.95);
}

.inner-page-products__title {
  margin: 0 0 22px;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.inner-page-body .inner-page-products .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
