/* Sklep Maniek — demo Programo. Paleta z logo klienta, siatka 12 kolumn, bez cieni. */

:root {
  --graphite: #2B2D26;
  --steel: #5C5F55;
  --lime: #B1CD20;
  --lime-dim: #9CB61C;
  --olive: #63760E;
  --field: #F2F3EC;
  --line: #DDDFD3;
  --white: #FFFFFF;
  --rust: #9A3412;

  --wrap: 1200px;
  --gap: 24px;
  --radius: 2px;

  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --cond: "Saira Condensed", "Barlow Condensed", Impact, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--field);
}

h1, h2, h3 {
  font-family: var(--cond);
  font-weight: 700;
  font-style: normal;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(34px, 6vw, 62px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 20px; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--olive); }
a:hover { color: var(--graphite); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 2px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  background: var(--graphite);
  color: var(--white);
  padding: 10px 16px;
  z-index: 50;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- nagłówek ---------- */

.top {
  background: var(--graphite);
  color: #C9CCBF;
  font-size: 13px;
}
.top .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.top b { color: var(--lime); font-weight: 600; }

.head {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}
.brand { flex: 0 0 auto; }
.brand img { width: 216px; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-family: var(--cond);
  font-size: 20px;
  font-weight: 600;
  color: var(--graphite);
  text-decoration: none;
  padding: 8px 12px;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  border-bottom-color: var(--lime);
}

.call {
  font-family: var(--cond);
  font-size: 24px;
  font-weight: 700;
  color: var(--graphite);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 14px;
  background: var(--lime);
  border-radius: var(--radius);
}
.call:hover { background: var(--lime-dim); color: var(--graphite); }
.call span { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .04em; }

.burger {
  display: none;
  margin-left: auto;
  font: inherit;
  font-family: var(--cond);
  font-size: 19px;
  font-weight: 600;
  background: var(--white);
  color: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 14px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero h1 { max-width: 13ch; }
.hero .lead {
  font-size: 19px;
  color: var(--steel);
  max-width: 46ch;
  margin-top: 20px;
}
.hero-figure img {
  width: 100%;
  border-radius: var(--radius);
}
.hero-figure figcaption {
  font-size: 12px;
  color: var(--steel);
  margin-top: 8px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-block;
  font-family: var(--cond);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--graphite);
  background: var(--graphite);
  color: var(--white);
  cursor: pointer;
}
.btn:hover { background: #1E1F1A; color: var(--white); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--graphite); }
.btn-lime:hover { background: var(--lime-dim); border-color: var(--lime-dim); color: var(--graphite); }
.btn-ghost { background: transparent; color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: var(--white); }

/* ---------- pasek modeli ---------- */

.models { background: var(--graphite); color: var(--white); }
.models .wrap { padding-top: 26px; padding-bottom: 26px; }
.models h2 { font-size: 24px; color: var(--white); }
.models p { font-size: 14px; color: #A9AD9C; margin: 6px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-family: var(--cond);
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  border: 1px solid #4B4E43;
  border-radius: var(--radius);
  padding: 6px 14px;
}

/* ---------- sekcje ---------- */

.section { padding: 56px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--graphite);
}
.section-head h1 { font-size: clamp(26px, 3.6vw, 38px); }
.section-head p { font-size: 15px; color: var(--steel); max-width: 52ch; margin: 0; }

/* ---------- kategorie ---------- */

.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cats > div {
  background: var(--white);
  padding: 16px 18px;
  color: var(--graphite);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
}
.cats .name { font-family: var(--cond); font-size: 21px; font-weight: 600; line-height: 1.1; }
.cats .sub { font-size: 13px; color: var(--steel); }

/* ---------- produkty ---------- */

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card .shot {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.card .shot img { max-height: 100%; width: auto; object-fit: contain; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1 1 auto; gap: 10px; }
.card .title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}
.card .title a { color: var(--graphite); text-decoration: none; }
.card .title a:hover { color: var(--olive); text-decoration: underline; }

/* tabliczka numeru katalogowego — element wyróżniający */
.plate {
  align-self: flex-start;
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--lime);
  background: var(--graphite);
  border-radius: var(--radius);
  padding: 3px 9px;
  word-break: break-word;
}
.plate .k { color: #A9AD9C; letter-spacing: .04em; font-weight: 500; }

.maker { font-size: 12px; color: var(--steel); letter-spacing: .02em; margin: 0; }

.price { margin-top: auto; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .gross { font-family: var(--cond); font-size: 29px; font-weight: 700; line-height: 1; }
.price .net { font-size: 12px; color: var(--steel); }
.price .was { font-size: 14px; color: var(--steel); text-decoration: line-through; }

.stock { font-size: 13px; color: var(--olive); font-weight: 600; }
.stock.low { color: var(--rust); }

.card .btn { width: 100%; text-align: center; font-size: 19px; padding: 10px 16px; }

/* ---------- pasek Hylmet ---------- */

.hylmet { background: var(--graphite); color: var(--white); }
.hylmet .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 52px;
}
.hylmet h2 { color: var(--white); max-width: 16ch; }
.hylmet p { color: #C2C6B6; margin-top: 16px; max-width: 52ch; }
.hylmet .facts { list-style: none; margin: 22px 0 0; padding: 0; }
.hylmet .facts li { padding: 10px 0; border-top: 1px solid #43463C; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.hylmet .facts b { font-family: var(--cond); font-size: 21px; font-weight: 700; color: var(--lime); }

/* ---------- jak kupujesz ---------- */

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.way { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--lime); border-radius: var(--radius); padding: 22px; }
.way h3 { margin-bottom: 8px; }
.way p { font-size: 15px; color: var(--steel); }
.way ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--steel); }
.way li { margin-bottom: 4px; }

/* ---------- okruszki ---------- */

.crumbs { background: var(--white); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--steel); }
.crumbs .wrap { padding-top: 12px; padding-bottom: 12px; }
.crumbs a { color: var(--steel); }
.crumbs span { margin: 0 6px; color: #B7BBAB; }

/* ---------- karta produktu ---------- */

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery .main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.gallery .main img { max-height: 360px; width: auto; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  width: 84px;
}
.thumbs button[aria-pressed="true"] { border-color: var(--graphite); border-width: 2px; }

.product h1 { font-size: clamp(26px, 3.4vw, 38px); }
.buybox { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 22px; }
.buybox .price .gross { font-size: 44px; }
.buybox .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 14px; }
.specs th, .specs td { text-align: left; font-size: 14.5px; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--steel); width: 48%; padding-right: 16px; }
.specs td { font-weight: 600; }

.tabs { margin-top: 48px; }
.tabs h2 { border-bottom: 2px solid var(--graphite); padding-bottom: 10px; margin-bottom: 18px; }
.prose { max-width: 70ch; font-size: 15.5px; color: var(--steel); }
.prose strong { color: var(--graphite); }

.ship { list-style: none; margin: 14px 0 0; padding: 0; }
.ship li { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ship b { font-weight: 600; white-space: nowrap; }

/* ---------- kontakt ---------- */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.datalist { list-style: none; margin: 0; padding: 0; }
.datalist li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.datalist .k { display: block; font-size: 13px; color: var(--steel); }
.datalist .v { display: block; font-family: var(--cond); font-size: 25px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.datalist .v a { color: var(--graphite); text-decoration: none; }
.datalist .v a:hover { color: var(--olive); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; font-size: 15px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--steel); }
.hours td { font-weight: 600; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  font: inherit;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--graphite);
}
.field input:focus, .field textarea:focus { border-color: var(--graphite); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--steel); margin-bottom: 16px; }
.consent input { margin-top: 2px; accent-color: var(--olive); width: 24px; height: 24px; flex: 0 0 auto; }

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: var(--radius);
  background: var(--field);
  font-size: 14px;
  color: var(--steel);
}
.notice[hidden] { display: none; }

/* ---------- stopka ---------- */

.foot { background: var(--graphite); color: #A9AD9C; margin-top: 0; }
.foot .wrap { padding-top: 48px; padding-bottom: 28px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot h3 { font-size: 19px; color: var(--white); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.foot li { margin-bottom: 7px; }
.foot a { color: #C2C6B6; text-decoration: none; }
.foot a:hover { color: var(--lime); }
.foot .addr { font-size: 14.5px; line-height: 1.7; }
.foot .addr strong { color: var(--white); font-weight: 600; }
.foot img { width: 200px; margin-bottom: 14px; }
.foot .bar {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #43463C;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12.5px;
}

/* ---------- responsywność ---------- */

.sticky-call { display: none; }

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hylmet .wrap { grid-template-columns: 1fr; gap: 28px; }
  .ways { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .head .wrap { min-height: 64px; gap: 12px; flex-wrap: wrap; }
  .brand img { width: 168px; }
  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding: 8px 0 12px;
  }
  .nav.open { display: flex; }
  .nav a { border-bottom: 1px solid var(--line); border-left: 3px solid transparent; padding: 12px 4px; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--lime); }
  .burger { display: block; }
  .head .call { display: none; }
  .top .wrap { gap: 4px 16px; font-size: 12px; }
  .top span:last-child { display: none; }

  .section { padding: 40px 0; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .section-head { margin-bottom: 20px; }
  .foot .cols { grid-template-columns: 1fr; gap: 26px; }

  /* stały pasek telefonu — rolnik dzwoni z pola */
  body { padding-bottom: 62px; }
  .sticky-call {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: var(--lime);
    border-top: 1px solid var(--lime-dim);
  }
  .sticky-call a {
    flex: 1;
    text-align: center;
    padding: 13px 10px;
    font-family: var(--cond);
    font-size: 22px;
    font-weight: 700;
    color: var(--graphite);
    text-decoration: none;
  }
}

@media (max-width: 420px) {
  .cats { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
