:root {
  --bg: #f9f6f0;
  --ink: #111;
  --muted: #55524c;
  --line: #d9d4ca;
  --wrap: 1412px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

main { flex: 1; position: relative; isolation: isolate; overflow: hidden; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #1a4fd6; outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

main::before,
main::after,
.home .how::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: multiply;
  opacity: .55;
}
main::before, .home .how::before { left: 0; bottom: 0; background-image: url("img/fala-lewa.png"); background-position: bottom left; }
main::after { top: 0; right: 0; background-image: url("img/fala-prawa.png"); background-position: top right; }
main::before, main::after { width: min(68vw, 820px); height: 630px; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 71px; }
.logo { display: flex; align-items: center; gap: 16px; font-weight: 700; letter-spacing: .28em; font-size: 18px; }
.logo svg { width: 75px; height: 40px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav svg { width: 28px; height: 28px; }
.nav .ig { display: flex; align-items: center; gap: 12px; padding-left: 30px; border-left: 1px solid var(--line); }

.hero { padding: 36px 0 34px; }
.hero h1 { margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; }
.hero p { margin: 8px 0 0; font-size: 20px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 24px 0; }
.filters select {
  appearance: none;
  height: 44px; min-width: 180px; padding: 0 44px 0 18px;
  font: inherit; color: var(--ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23111' stroke-width='1.8'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--ink); border-radius: 3px; cursor: pointer;
}
.filters .sep { width: 1px; height: 36px; background: var(--line); }
.filters button { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.filters .count { margin-left: 4px; }


.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 56px; }
.empty { grid-column: 1 / -1; padding: 40px 0; font-size: 18px; }

.card h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 14px; }
.price { font-size: 20px; font-weight: 700; white-space: nowrap; }

.photo .tag { display: none; }
.photo img { display: block; width: 100%; height: auto; object-fit: contain; }

.sizes-label { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; min-height: 36px; }
.sizes li { min-width: 60px; padding: 7px 14px; text-align: center; border: 1px solid var(--ink); border-radius: 3px; font-size: 15px; }
.sizes li.on { background: var(--ink); color: var(--bg); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  height: 52px; border: 1px solid var(--ink); border-radius: 3px;
  transition: background .15s, color .15s;
}
.btn svg { width: 26px; height: 26px; }
.btn:hover { background: var(--ink); color: var(--bg); }

.how { padding: 56px 0 72px; scroll-margin-top: 16px; }
.how h2 { margin: 0 0 36px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #faf8f4; border: 1px solid var(--line); border-radius: 14px; padding: 40px 42px 44px; }
.step .num {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 36px;
  background: var(--ink); color: #fff; border-radius: 50%;
  font-size: 22px; font-weight: 700;
}
.step h3 { margin: 0 0 14px; font-size: 26px; letter-spacing: -.02em; }
.step p { margin: 0; font-size: 20px; line-height: 1.5; color: var(--muted); }

.home main::before { display: none; }
.home main::after { width: min(50vw, 730px); height: 530px; }
.home .how { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 360px; }
.home .how::before { width: min(55vw, 810px); height: 430px; }

.page { padding: 48px 0 72px; }
.page .wrap > * { max-width: 640px; }
.page h1 { margin: 0 0 28px; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; font-weight: 800; }
.page h2 { margin: 32px 0 8px; font-size: 22px; letter-spacing: -.01em; }
.page p { margin: 0 0 12px; font-size: 18px; line-height: 1.6; }
.page a { text-decoration: underline; text-underline-offset: 3px; }

.footnote { text-align: center; color: var(--muted); font-size: 14px; padding: 18px 24px 28px; border-top: 1px solid var(--line); }
.foot-links { display: flex; justify-content: center; gap: 48px; }
.foot-links a { font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 28px; }
  .step h3 { font-size: 22px; }
  .step p { font-size: 17px; }
}

@media (max-width: 800px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.ig) { display: none; }
  .nav .ig { border: 0; padding: 0; }
  .nav .ig span { display: none; }

  main::before, main::after { width: 70vw; height: 240px; opacity: .45; }
  .home main::after { width: 60vw; height: 220px; }
  .home .how { padding-bottom: 210px; }
  .home .how::before { width: 70vw; height: 200px; opacity: .45; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .filters select { min-width: 0; flex: 1 1 140px; }
  .filters .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}