/* ========= RESET ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f2f4f9;
  color: #0f172a;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========= LAYOUT ========= */

.page {
  min-height: 100vh;
  display: flex;
}

/* SIDEBAR */

.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar__top {
  padding: 18px 18px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: conic-gradient(
    from 210deg,
    #a855f7,
    #6366f1,
    #22c55e,
    #f97316,
    #a855f7
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 800;
  font-size: 20px;
}

.brand__text-main {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.brand__text-sub {
  font-size: 12px;
  color: #6b7280;
}

.sidebar__contact {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

.sidebar__contact strong {
  display: block;
  color: #111827;
}

/* NAV */

.sidebar__nav {
  padding: 12px 14px 18px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  margin: 6px 0 6px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.nav-list li {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 999px;
  font-size: 13px;
  color: #111827;
  border: 1px solid transparent;
}

.nav-link span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
}

.nav-link--primary {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.nav-link:hover {
  background: #f3f4f6;
}

/* FOOTER SIDEBAR */

.sidebar__footer {
  padding: 10px 18px 14px;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #9ca3af;
}

/* ========= MAIN CONTENT AREA ========= */

.main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */

.topbar {
  padding: 12px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.topbar__breadcrumbs {
  font-size: 12px;
  color: #6b7280;
}

.topbar__breadcrumbs a {
  color: #4b5563;
}

/* CONTENT WRAPPER */

.content {
  padding: 20px 24px 32px;
}

/* HERO (HOME) */

.hero {
  background: radial-gradient(circle at top left, #e5e7ff, #f9fafb 45%, #f9fafb);
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  padding: 22px 22px 20px;
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.4fr);
  gap: 22px;
  margin-bottom: 22px;
}

.hero-left {
  max-width: 520px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b21a8;
  margin-bottom: 6px;
}

.hero-title {
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 8px;
  color: #111827;
}

.hero-title span {
  color: #4f46e5;
}

.hero-text {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 10px;
}

.hero-meta {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 12px;
}

.hero-meta strong {
  color: #111827;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}

.hero-tag {
  border-radius: 999px;
  padding: 4px 9px;
  background: #f3f4ff;
  border: 1px solid #e5e7ff;
  color: #4338ca;
}

/* HERO ILLUSTRATION PANEL */

.hero-right {
  border-radius: 16px;
  padding: 16px 16px 12px;
  background: #0f172a;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-right__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
}

.hero-right__title {
  font-size: 14px;
  font-weight: 600;
}

.hero-right__image {
  flex: 1 1 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  margin-bottom: 6px;
}

/* imitacja półkowych kartonów / sprzętu */
.hero-right__image::before,
.hero-right__image::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 16px;
  border: 1px solid rgba(248, 250, 252, 0.8);
  transform: skewX(-10deg);
}

.hero-right__image::after {
  inset: 24%;
  border-color: rgba(248, 250, 252, 0.4);
}

.hero-right__note {
  font-size: 11px;
  color: #9ca3af;
}

/* BUTTONS */

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: #ffffff;
  color: #111827;
  border-color: #e5e7eb;
}

.btn-secondary:hover {
  background: #f3f4f6;
}

/* SECTION GENERIC */

.section {
  margin-bottom: 24px;
}

.section-header {
  margin-bottom: 14px;
}

.section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.section-title {
  font-size: 20px;
  margin: 3px 0;
  color: #111827;
}

.section-lead {
  font-size: 14px;
  color: #4b5563;
  max-width: 640px;
}

/* GRID + CARDS */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 12px 12px 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.card--accent {
  border-top: 3px solid #6366f1;
}

.card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.card-title {
  font-size: 15px;
  margin: 0 0 4px;
  color: #111827;
}

.card-text {
  font-size: 14px;
  color: #4b5563;
}

/* LISTS */

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
  font-size: 14px;
  color: #4b5563;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #6366f1;
}

/* CONTENT IMAGE */

.content-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

/* TABLE */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
}

.table th {
  background: #f3f4f6;
  text-align: left;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 22px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #111827;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 8px 9px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.3);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.map-box {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.map-box iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

/* FOOTER */

.footer {
  padding: 10px 24px 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #6b7280;
  background: #f9fafb;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__links a {
  color: #4b5563;
}

/* COOKIE BANNER – KARTKA W PRAWYM DOLNYM ROGU */

.cookie-box {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 340px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 16px;
  border: 1px solid #4f46e5;
  padding: 10px 12px 10px;
  font-size: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.cookie-box__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-box__text a {
  color: #a5b4fc;
  text-decoration: underline;
}

.cookie-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cookie-btn {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.cookie-btn--accept {
  background: #4f46e5;
  color: #f9fafb;
}

.cookie-btn--accept:hover {
  filter: brightness(1.06);
}

.cookie-btn--later {
  background: transparent;
  border-color: #6b7280;
  color: #e5e7eb;
}

.cookie-btn--later:hover {
  background: rgba(15, 23, 42, 0.8);
}

/* UTILS */

.text-muted {
  color: #4b5563;
}

.mt-xs {
  margin-top: 6px;
}

.mt-sm {
  margin-top: 10px;
}

.mt-md {
  margin-top: 16px;
}

.mt-lg {
  margin-top: 24px;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 960px) {
  .page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }

  .sidebar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-link {
    border-radius: 999px;
  }

  .topbar {
    display: none;
  }
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .content {
    padding: 16px 16px 24px;
  }

  .topbar {
    padding: 8px 16px;
  }

  .footer {
    padding: 8px 16px 14px;
  }

  .cookie-box {
    right: 12px;
    left: 12px;
  }
}
