:root {
  --bg: #0b0c10;
  --bg-soft: #11131a;
  --panel: #171a23;
  --panel-light: #202432;
  --text: #f2f2f2;
  --muted: #a8adba;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #d8d8d8;
  --accent-dark: #101010;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #0b0c10 0%, #10121a 45%, #0b0c10 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px max(22px, calc((100vw - var(--max-width)) / 2));
  background: rgba(11, 12, 16, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: rotate(45deg);
  color: #fff;
  font-size: 13px;
}

.brand-mark span {
  transform: rotate(-45deg);
}

.brand-name {
  font-size: 18px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* GLOBAL LAYOUT */

.section,
.section-wide {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-heading p,
.text-block p,
.shop-notice p {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

/* BUTTONS */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button,
.small-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button {
  min-height: 48px;
  padding: 0 22px;
}

.small-button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.button:hover,
.small-button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.primary,
.small-button {
  background: var(--text);
  color: var(--accent-dark);
}

.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.large {
  min-width: 210px;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
  min-height: 680px;
  padding: 70px 0;
}

.hero-card {
  min-height: 500px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 24px 80px rgba(0,0,0,0.26);
}

.hero-samples {
  display: grid;
  gap: 18px;
}

.hero-card-text {
  display: grid;
  gap: 8px;
  padding: 18px 4px 0;
}

.hero-card-text-top {
  padding: 0 4px;
}

.hero-card-text span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.hero-card-text strong {
  font-size: 22px;
}

/* IMAGE BOXES - NAJWAŻNIEJSZA CZĘŚĆ */

.mock-product,
.tile-art,
.product-image {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), transparent 13%),
    radial-gradient(circle at 72% 55%, rgba(255,255,255,0.10), transparent 18%),
    linear-gradient(135deg, #202432, #0f1118 58%, #323744 150%);
}

.mock-product-main,
.sample-card,
.tile-art,
.tile-image-link,
.product-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background-color: #11131a;
}

.mock-product-main {
  height: 380px;
  border-radius: 26px;
}

.sample-card {
  height: 178px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.tile-art,
.tile-image-link {
  height: 230px;
  flex: 0 0 230px;
}

.product-image {
  height: 250px;
  flex: 0 0 250px;
}

/* Obraz ma dopasować się do kafelka, a nie rozpychać kafelek */
.mock-product-main img,
.sample-card img,
.tile-art img,
.tile-image-link img,
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  transition: filter 0.22s ease;
}

/* Jeżeli masz okładkę kolekcji bez przezroczystego tła i chcesz bez marginesu,
   zmień contain na cover tylko dla wybranej klasy, ale teraz zostaw contain. */

.sample-card:hover img,
.tile-image-link:hover img,
.product-image:hover img {
  filter: brightness(1.08);
}

/* SAMPLE GRID */

.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sample-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* COLLECTION TILES */

.tile-grid,
.product-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.tile-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tile,
.product-card,
.contact-box,
.shop-notice {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}

.tile,
.product-card {
  overflow: hidden;
  border-radius: 26px;
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.tile-body,
.product-info {
  padding: 24px;
}

.tile-body {
  flex: 1;
}

.tile-body p,
.product-info p {
  color: var(--muted);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: #fff;
  font-weight: 800;
}

/* PRODUCT GALLERY */

.alt-section {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100vw - var(--max-width)) / 2));
  padding-right: max(18px, calc((100vw - var(--max-width)) / 2));
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.product-card {
  display: flex;
  flex-direction: column;
}

.product-info {
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.product-card:target {
  outline: 2px solid rgba(255,255,255,0.52);
  outline-offset: 4px;
  scroll-margin-top: 120px;
}

/* ABOUT / SHOP / CONTACT */

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.text-block {
  font-size: 18px;
}

.shop-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 38px;
  border-radius: 30px;
}

.shop-notice div {
  max-width: 760px;
}

.contact-section {
  padding-bottom: 70px;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  border-radius: 24px;
  color: var(--muted);
}

.contact-box a {
  color: var(--text);
  font-weight: 800;
}

/* FOOTER */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* DROPDOWN NAV */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* DESKTOP: rozwijanie po najechaniu myszką */
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    display: grid;
    gap: 6px;
  }

  .nav-dropdown:hover .nav-dropbtn,
  .nav-dropdown:focus-within .nav-dropbtn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
  }

  .dropdown-year {
    position: relative;
  }

  .dropdown-year:hover .dropdown-submenu,
  .dropdown-year:focus-within .dropdown-submenu {
    display: grid;
    gap: 4px;
  }

  .dropdown-submenu {
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    min-width: 210px;
    margin-top: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11, 12, 16, 0.96);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
  }

  .dropdown-submenu::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 100%;
  }
}

.nav-dropbtn,
.dropdown-year > button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-dropbtn {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.nav-dropbtn:hover,
.nav-dropdown.is-open .nav-dropbtn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  z-index: 50;
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 12, 16, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.nav-dropdown.is-open .dropdown-menu {
  display: grid;
  gap: 6px;
}

.dropdown-year {
  position: relative;
}

.dropdown-year > button,
.dropdown-menu a {
  display: flex;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.dropdown-year > button:hover,
.dropdown-menu a:hover,
.dropdown-year.is-open > button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.dropdown-submenu {
  display: none;
  margin-top: 6px;
  padding-left: 10px;
}

.dropdown-year.is-open .dropdown-submenu {
  display: grid;
  gap: 4px;
}


/* RESPONSIVE */

@media (max-width: 980px) {
  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 44px;
  }

  .hero-card {
    min-height: auto;
  }

  .mock-product-main {
    height: 280px;
  }

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

  .tile-art,
  .tile-image-link {
    height: 240px;
    flex-basis: 240px;
  }

  .product-image {
    height: 260px;
    flex-basis: 260px;
  }

  .section {
    padding: 70px 0;
  }

  .alt-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .product-footer,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  /* MOBILE: sample Essentials jako kratka 2x2 */
  .sample-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sample-card {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }

  .sample-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
  }

  .sample-card span {
    left: 8px;
    bottom: 8px;
    padding: 6px 8px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}