/* ==========================================================================
   204-hama-4 — motyw (lifting wizualny wg projektu z Claude Design)
   ========================================================================== */

:root {
  --navy: #303e4b;
  --navy-2: #384857;
  --navy-dark: #27333e;
  --accent: #f4991a;
  --text: #333;
  --ink: #111;
  --muted: #6b7680;
  --muted-2: #5f6b76;
  --line: #e3e6e9;
  --line-2: #e6e9ec;
  --line-dash: #dde1e5;
  --soft: #f6f7f8;
  --chip: #f1f3f5;
  --warm-line: #e7e4df;
  --warm-bg: #faf9f7;
  --tag-blue: #3d9ddf;
  --tag-green: #69b74f;
  --tag-pink: #e36493;
  --font-head: 'Roboto', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --wrap: 1600px;
  --header-h: 78px;
  --shadow-card: 0 16px 36px rgba(48, 62, 75, .12);
  --overlay: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .5) 35%, rgba(0, 0, 0, 0) 70%);
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.am {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.am img { max-width: 100%; height: auto; display: block; }
.am a { color: var(--navy); text-decoration: none; transition: color .25s, background .25s, border-color .25s, box-shadow .25s, transform .25s; }
.am a:hover { color: var(--accent); }
.am h1, .am h2, .am h3, .am h4 { font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.2; margin: 0; }
.am p { margin: 0; }
.am button { font: inherit; color: inherit; }
.am input::placeholder { color: #8a949e; }
.am [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.am-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.am-main { min-height: 40vh; }

/* ---------- Etykiety kategorii ---------- */
.am-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--navy);
  color: #fff !important;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.6;
}
.am-tag--lg { padding: 4px 11px; font-size: 11px; }
.am-tag--blue { background: var(--tag-blue); }
.am-tag--green { background: var(--tag-green); }
.am-tag--pink { background: var(--tag-pink); }

/* ---------- Przyciski ---------- */
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}
.am .am-btn--accent { background: var(--accent); color: var(--navy); }
.am .am-btn--accent:hover { background: var(--navy); color: #fff; }
.am .am-btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.am .am-btn--outline:hover { background: var(--navy); color: #fff; }
.am .am-btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.am .am-btn--ghost:hover { background: #fff; color: var(--navy); }
.am-btn--block { display: flex; width: 100%; }
.am-btn--lg { padding: 15px 30px; font-size: 14px; letter-spacing: .06em; }

/* ---------- Nagłówki sekcji ---------- */
.am-sec { padding: 72px 0 0; }
.am-sec--tight { padding-top: 64px; }
.am-sec--last { padding-bottom: 88px; }
.am-sec--flush { padding-top: 0; margin-top: -24px; }
.am-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.am-sec-title {
  position: relative;
  padding-bottom: 16px;
  font-size: 28px;
  line-height: 1.1;
}
.am-sec-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 3px;
  background: var(--accent);
}
.am-sec-more {
  padding-bottom: 16px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Header
   ========================================================================== */
.am-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 14px rgba(48, 62, 75, .08);
}
.am-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.am-logo { display: flex; align-items: center; padding: 14px 0; flex: 0 0 auto; }
.am-logo img { height: 46px; width: auto; }

.am-nav { display: flex; align-items: center; flex-wrap: nowrap; }
.am-nav__item { position: relative; }
.am .am-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 28px 12px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.am-nav__link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  height: 2px;
  background: transparent;
  transition: background .25s;
}
.am-nav__item.is-active > .am-nav__link::after,
.am-nav__link:hover::after { background: var(--accent); }
.am-nav__caret { font-size: 8px; opacity: .55; }
.am-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: #fff;
  border-top: 3px solid var(--accent);
  padding: 8px 0;
  box-shadow: 0 18px 40px rgba(48, 62, 75, .16);
  display: none;
  flex-direction: column;
  z-index: 60;
}
.am-nav__item:hover > .am-nav__sub,
.am-nav__item:focus-within > .am-nav__sub { display: flex; }
.am .am-nav__sub a {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--navy);
  border-bottom: 1px solid #f1f3f5;
}
.am .am-nav__sub a:hover { background: var(--soft); color: var(--accent); }

.am-icon-search {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: block;
  position: relative;
  margin: -3px 0 0 -3px;
}
.am-icon-search::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 7px;
  background: currentColor;
  border-radius: 1px;
  right: -4px;
  bottom: -6px;
  transform: rotate(-45deg);
}
.am-search-btn {
  margin-left: 6px;
  width: 42px;
  height: 42px;
  border: 1px solid #e3e6e9;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.am-search-btn:hover { background: #fff; border-color: var(--accent); color: var(--accent); }

.am-header__mobile { display: none; align-items: center; gap: 8px; }
.am-header__mobile .am-search-btn { background: #fff; color: var(--navy); border: 1px solid #e3e6e9; width: 44px; height: 44px; }
.am-menu-btn {
  height: 44px;
  padding: 0 16px;
  border: 1px solid #e3e6e9;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.am-menu-btn__lines { display: flex; flex-direction: column; gap: 4px; }
.am-menu-btn__lines span { width: 16px; height: 2px; background: currentColor; display: block; }
.am-menu-btn[aria-expanded="true"] { border-color: var(--muted); }

.am-mobnav { border-top: 1px solid var(--line); max-height: calc(100vh - 80px); overflow-y: auto; }
.am-mobnav__inner { padding-top: 4px; padding-bottom: 24px; display: flex; flex-direction: column; }
.am-mobnav__item { border-bottom: 1px solid #eceef0; }
.am-mobnav__row { display: flex; align-items: center; gap: 12px; }
.am-mobnav { background: #fff; }
.am .am-mobnav__link { flex: 1; padding: 14px 0; font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--muted); }
.am-mobnav__item.is-active > .am-mobnav__row .am-mobnav__link { color: var(--accent); }
.am-mobnav__toggle {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--navy);
  cursor: pointer;
  transition: background .25s;
}
.am-mobnav__toggle span::before,
.am-mobnav__toggle span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  margin: -1px 0 0 -8px;
  background: #fff;
  transition: transform .25s;
}
.am-mobnav__toggle span::after { transform: rotate(90deg); }
.am-mobnav__toggle[aria-expanded="true"] { background: var(--accent); }
.am-mobnav__toggle[aria-expanded="true"] span::before,
.am-mobnav__toggle[aria-expanded="true"] span::after { background: var(--navy); }
.am-mobnav__toggle[aria-expanded="true"] span::after { transform: rotate(0deg); }
.am-mobnav__subs { list-style: none; margin: 0 0 12px; padding: 0; border-left: 3px solid var(--accent); background: #fff; }
.am-mobnav__subs li + li { border-top: 1px solid #e8ebee; }
.am .am-mobnav__subs a { display: block; padding: 12px 16px; font-size: 15px; color: var(--muted); }
.am .am-mobnav__subs a:hover,
.am .am-mobnav__subs a.is-active { color: var(--accent); }

.am-searchbar { background: #fff; border-top: 1px solid var(--line); }
.am-searchbar form { display: flex; padding-top: 14px; padding-bottom: 14px; }
.am-searchbar input {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-right: 0;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--navy);
  outline: none;
  border-radius: 0;
}
.am-searchbar input:focus { border-color: var(--accent); }
.am-searchbar button {
  width: 52px;
  border: 0;
  background: var(--accent);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 1119px) {
  .am-nav { display: none; }
  .am-header__mobile { display: flex; }
}
@media (min-width: 1120px) {
  .am-mobnav { display: none !important; }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.am-crumbs { background: var(--soft); border-bottom: 1px solid #eceef0; }
.am-crumbs__inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.am .am-crumbs a { color: var(--muted); }
.am .am-crumbs a:hover { color: var(--accent); }
.am-crumbs__current { color: var(--navy); font-weight: 600; }

/* ==========================================================================
   Strona główna
   ========================================================================== */
.am-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.am-hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 520px;
}
.am-hero::before {
  content: '';
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: var(--navy-2);
}
.am-hero::after {
  content: '';
  position: absolute;
  right: max(40px, calc((100% - var(--wrap)) / 2 + 40px));
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: .5;
}
.am-hero__copy { position: relative; z-index: 1; flex: 1 1 440px; padding: clamp(48px, 7vw, 88px) 0; color: #fff; }
.am-hero__badge {
  padding: 5px 12px;
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .1em;
  display: inline-flex;
    gap: 4px;
    font-size: 13px;
    font-weight: 900;
    line-height: 100%;
    align-items: flex-end;
}
.am .am-hero__title {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 22px 0 18px;
  color: #fff;
  text-wrap: balance;
}
.am-hero__title span { color: var(--accent); }
.am-hero__text { max-width: 560px !important; }
.am-hero__text { margin: 0 0 32px !important; font-size: 17px; line-height: 1.65; color: #dfe4e8; max-width: 500px; }
.am-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.am .am-hero .am-btn--accent:hover { background: #fff; color: var(--navy); }
.am-hero__media { position: relative; z-index: 1; flex: 1 1 380px; align-self: stretch; min-height: 380px; padding: 32px 0; display: flex; align-items: center; justify-content: center; }
.am-hero__media img { max-height: 420px; width: auto; object-fit: contain; }

/* Kafelki produktów */
.am-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.am-tile {
  background: #fff;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.am-tile:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.am .am-tile__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 16px;
}
.am-tile__media img { width: 100%; height: 100%; object-fit: contain; }
.am-score {
  min-width: 48px;
  height: 48px;
  padding: 0 8px;
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-tile__media .am-score { position: absolute; top: 14px; right: 14px; }
.am-tile__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.am-tile__name { font-size: 18px !important; line-height: 1.3 !important; }
.am-tile__rating { font-size: 13px; color: var(--muted); }
.am-tile__rating strong { color: var(--navy); }
.am-tile__price { margin-top: auto !important; font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--navy); }

/* Karty z nakładką (zdjęcie + gradient) */
.am .am-ov {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #e9ecef;
  color: #fff;
}
.am-ov > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.am-ov:hover > img { transform: scale(1.04); }
.am-ov::before { content: ''; position: absolute; inset: 0; background: var(--overlay); z-index: 1; }
.am-ov__body { position: relative; z-index: 2; padding: 22px; }
.am .am-ov__title { color: #fff; font-size: 19px; line-height: 1.3; margin: 0 0 12px; text-wrap: balance; }
.am-ov__text { margin-top: 12px !important; color: #e9e9e9; max-width: 520px; }
.am-ov--xl { min-height: 540px; }
.am-ov--xl .am-ov__body { padding: 32px; }
.am-ov--xl .am-ov__title { font-size: 30px; line-height: 1.15; margin: 14px 0 10px; }
.am-ov--lg { min-height: 420px; }
.am-ov--lg .am-ov__body { padding: 28px; }
.am-ov--lg .am-ov__title { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.am-ov--tall { aspect-ratio: 2 / 3; }

/* Karta produktowa: zdjęcie (białe tło) nad treścią na granatowym tle */
.am .am-ov--stack {
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  aspect-ratio: auto;
  background: #fff;
  border: 1px solid var(--line-2);
  transition: box-shadow .25s, transform .25s;
}
.am .am-ov--stack:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); color: #fff; }
.am-ov--stack::before { display: none; }
.am-ov--stack > img {
  position: static;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 240px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 24px;
  background: #fff;
}
.am-ov--stack:hover > img { transform: scale(1.03); }
.am-ov--stack .am-ov__body { flex: 0 0 auto; background: var(--navy); padding: 20px 22px; }
.am-ov--stack .am-ov__text { color: #cfd6dc; }
.am-ov--stack.am-ov--xl > img { min-height: 320px; }
.am-ov--stack.am-ov--xl .am-ov__body { padding: 24px 28px; }
.am-ov--stack.am-ov--tall > img { aspect-ratio: 1 / 1; min-height: 0; }
.am-ov--stack.am-ov--lg > img { min-height: 300px; }
.am-tabs__panel .am-ov--stack.am-ov--lg { min-height: 0; }
/* Wpisy: zdjęcie wypełnia kadr (fotografia, nie packshot) */
.am-ov--stack.am-ov--photo > img,
.am-ov--stack.am-ov--photo.am-ov--tall > img { aspect-ratio: 3 / 2; min-height: 0; padding: 0; object-fit: cover; }
.am-ov--stack.am-ov--photo .am-ov__body { flex: 1 1 auto; }
@media (max-width: 767px) {
  .am-ov--stack > img, .am-ov--stack.am-ov--xl > img, .am-ov--stack.am-ov--lg > img { min-height: 0; padding: 16px; }
}

/* Najpopularniejsze produkty: 1 duży + 6 małych (2 rzędy po 3) */
.am-top { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 24px; }
.am-top > .am-ov--xl:first-child { grid-row: span 2; }
.am .am-top > .am-ov--xl:not(:first-child) .am-ov__title { font-size: 17px; line-height: 1.3; margin: 0 0 10px; }
.am-top > .am-ov--stack:not(:first-child) > img { min-height: 0; aspect-ratio: 1 / 1; padding: 16px; }
.am-top > .am-ov--stack:not(:first-child) .am-ov__body { padding: 16px 18px; }
@media (max-width: 1199px) {
  .am-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-top > .am-ov--xl:first-child { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 767px) {
  .am-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

.am-grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.am-layout__main .am-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1199px) {
  .am-tiles, .am-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-layout__main .am-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .am-tiles, .am-grid-cards, .am-layout__main .am-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .am-ov--tall .am-ov__body { padding: 16px; }
  .am .am-ov--tall .am-ov__title { font-size: 16px; }
}
@media (max-width: 479px) {
  .am-tiles, .am-grid-cards, .am-layout__main .am-grid-cards { grid-template-columns: 1fr; }
}

.am-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.am-cols__col { flex: 1 1 440px; display: flex; flex-direction: column; min-width: 0; }
.am-cols__col > .am-ov--lg { margin-bottom: 22px; }

/* Wiersz z miniaturą */
.am .am-row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-dash);
}
.am-row__thumb { flex: 0 0 120px; aspect-ratio: 700 / 497; background: #fff; border: 1px solid var(--line-2); overflow: hidden; }
.am-row__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.am-row__title { font-size: 16px !important; line-height: 1.3 !important; margin-bottom: 8px !important; }
.am-row--lg { gap: 20px; padding: 16px 0; }
.am-row--lg .am-row__thumb { flex-basis: 150px; }
.am-row--lg .am-row__title { font-size: 17px !important; }

/* Reklama */
.am-ad { padding: 64px 0 0; }

/* Tekst na środku */
.am-band {
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  background-color: #8995a1;
  background-size: cover;
  background-position: center;
}
.am-band::before { content: ''; position: absolute; inset: 0; background: rgba(48, 62, 75, .82); }
.am-band__inner { position: relative; max-width: 820px; margin: 0 auto; padding: 110px 24px; text-align: center; color: #fff; }
.am .am-band__title { color: #fff; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; margin: 0 0 18px; text-wrap: balance; }
.am-band__text { margin: 0 0 34px; font-size: 17px; color: #e9ecef; }
.am-band__text p { margin: 0 0 10px; }

/* Zakładki */
.am-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 12px; }
.am-tabs__btn {
  padding: 8px 16px;
  border: 0;
  background: var(--chip);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.am-tabs__btn.is-active { background: var(--navy); color: #fff; }
.am-tabs__panel .am-ov--lg { min-height: 420px; margin-bottom: 0; }

/* Własny tekst */
.am-richtext { font-size: 16px; line-height: 1.75; color: var(--text); }
.am-richtext p { margin: 0 0 16px; }
.am-richtext h2, .am-richtext h3 { margin: 28px 0 12px; }
.am-richtext a { color: var(--accent); }
.am-richtext ul, .am-richtext ol { padding-left: 20px; margin: 0 0 16px; }

/* Slider (reklamy) */
.sidebar-slider-fade { position: relative; }
.sidebar-slider-fade a { display: none; }
.sidebar-slider-fade a.active { display: block; animation: am-fade .6s; }
.sidebar-slider-fade img { width: 100%; }
@keyframes am-fade { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Kategoria
   ========================================================================== */
.am-page { padding: 48px 0 88px; }
.am .am-page__title { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 14px; }
.am-page__lead { margin: 0 0 28px !important; color: var(--muted-2); font-size: 16px; max-width: none; }
.am-page__lead p { margin: 0 0 10px; }
.am-note { margin-top: 64px; padding: 40px; background: var(--soft); color: #4a5560; }
.am-note h2, .am-note h3 { margin: 0 0 14px; font-size: 24px; }
.am-note p { margin: 0 0 12px; max-width: none; }
.am-note p:last-child { margin-bottom: 0; }

.am-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.am .am-chip {
  padding: 9px 16px;
  border: 1px solid var(--line-dash);
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.am .am-chip:hover, .am .am-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.am-empty { text-align: center; padding: 64px 0; font-size: 22px !important; color: var(--muted) !important; }

.am-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; counter-reset: am-rank; }
.am-pcard {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line-2);
  background: #fff;
  transition: box-shadow .25s;
}
.am-pcard:hover { box-shadow: 0 14px 34px rgba(48, 62, 75, .1); }
.am .am-pcard__media {
  position: relative;
  flex: 0 0 220px;
  aspect-ratio: 300 / 230;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.am-pcard__media img { width: 100%; height: 100%; object-fit: contain; }
.am-pcard__rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-pcard__info { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.am-pcard__name { font-size: 23px !important; line-height: 1.2 !important; }
.am-pcard__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.am-pcard__tags span { font-size: 11px; font-weight: 700; padding: 4px 9px; background: var(--chip); color: var(--navy); }
.am-pcard__rating { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.am-pcard__rating strong { padding: 4px 10px; background: var(--accent); color: var(--navy); font-family: var(--font-head); font-weight: 900; font-size: 17px; }
.am-pcard__desc { color: var(--muted-2); max-width: 760px; }
.am-pcard__buy { flex: 0 1 220px; display: flex; flex-direction: column; gap: 10px; padding-left: 24px; border-left: 1px solid #eceef0; }
.am-pcard__price-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.am-pcard__price { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; }
@media (max-width: 767px) {
  .am-pcard__media { flex-basis: 100%; }
  .am-pcard__buy { flex-basis: 100%; padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid #eceef0; }
}

/* Paginacja */
.am-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 44px 0 0; }
.am .am-pager a { padding: 10px 15px; border: 1px solid var(--navy); color: var(--navy); line-height: 1; }
.am .am-pager a:hover, .am .am-pager a.is-active { background: var(--navy); color: #fff; }
.am .am-pager a.is-active { box-shadow: 1px 1px 5px #ccc; }

/* Układ z sidebarem */
.am-layout { display: flex; flex-wrap: wrap; gap: 56px; }
.am-layout__main { flex: 1 1 600px; min-width: 0; }
.am-layout__side { flex: 0 0 360px; display: flex; flex-direction: column; gap: 40px; min-width: 0; }
@media (max-width: 1023px) { .am-layout__side { flex: 1 1 100%; } }

/* ==========================================================================
   Artykuł / poradnik
   ========================================================================== */
.am-arthero { background: var(--soft); }
.am-arthero__inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.am-arthero__copy { flex: 5 1 360px; }
.am .am-arthero__title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; margin: 18px 0 0; text-wrap: balance; }
.am-arthero__media { flex: 7 1 460px; aspect-ratio: 3 / 2; overflow: hidden; background: #e9ecef; }
.am-arthero__media img { width: 100%; height: 100%; object-fit: cover; }

.am-content { max-width: none; font-size: 17px; line-height: 1.8; color: var(--text); overflow-wrap: break-word; }
.am-content > *:first-child { margin-top: 0; }
.am-content p { margin: 0 0 20px; }
.am-content h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 12px; }
.am-content h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 10px; }
.am-content a { color: var(--accent); text-decoration: underline; }
.am-content ul, .am-content ol { margin: 0 0 20px; padding-left: 22px; }
.am-content li { margin-bottom: 6px; }
.am-content img { height: auto; margin: 24px 0; }
.am-content blockquote { margin: 32px 0; padding: 24px 28px; background: #fff7ec; border: 1px solid #fbd9a8; color: var(--navy); }
.am-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.am-content th, .am-content td { padding: 10px 14px; border: 1px solid var(--warm-line); text-align: left; }
.am-content iframe { max-width: 100%; }

/* Sidebar */
.am-side-title {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.am-side-title h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  font-size: 19px;
}
.am-side-title h3::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 40px; height: 3px; background: var(--accent); }
.am-side-list { list-style: none; margin: 0; padding: 0; }
.am-side-list li { border-bottom: 1px dashed var(--line-dash); }
.am .am-side-list a { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; }
.am-side-list a::after { content: '›'; color: #9aa3ab; }
.am-side-recent { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.am .am-side-recent a { display: flex; gap: 14px; align-items: center; }
.am-side-recent__thumb { flex: 0 0 76px; aspect-ratio: 1 / 1; background: var(--chip); overflow: hidden; }
.am-side-recent__thumb img { width: 100%; height: 100%; object-fit: cover; }
.am-side-recent .am-tag { margin-bottom: 6px; padding: 2px 8px; }
.am-side-recent h4 { font-size: 15px; line-height: 1.3; }
.am .am-side-num { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line-dash); }
.am-side-num__n {
  flex: 0 0 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-side-num h4 { font-size: 15px; line-height: 1.35; }

/* ==========================================================================
   Kontakt / 404
   ========================================================================== */
.am-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.am-form__full { grid-column: 1 / -1; }
.am-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.am-form input, .am-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  color: var(--navy);
  background: #fff;
  outline: none;
  border-radius: 0;
}
.am-form textarea { min-height: 160px; resize: vertical; }
.am-form input:focus, .am-form textarea:focus { border-color: var(--accent); }
.am-contact-box { padding: 32px; background: var(--soft); }
.am-contact-box ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.am-contact-box li { padding-left: 14px; border-left: 3px solid var(--accent); }
@media (max-width: 600px) { .am-form { grid-template-columns: 1fr; } }

.am-404 { text-align: center; padding: 96px 24px; }
.am-404__code { font-family: var(--font-head); font-size: clamp(90px, 16vw, 160px); font-weight: 900; line-height: 1; color: var(--accent); }
.am .am-404 h1 { font-size: 30px; margin: 18px 0 10px; }
.am-404 p { color: var(--muted-2); margin-bottom: 28px; }

/* ==========================================================================
   Stopka
   ========================================================================== */
.am-footer { background: var(--navy); color: #dfe4e8; }
.am-footer__cols { padding-top: 64px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 40px; }
.am-footer__about { flex: 2 1 300px; max-width: 400px; }
.am .am-footer__about h3 { font-size: 20px; color: #fff; margin: 0 0 16px; }
.am-footer__about p { margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: #cfd6dc; }
.am-footer__social { display: flex; gap: 8px; flex-wrap: wrap; }
.am .am-footer__social a { padding: 7px 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 12px; font-weight: 600; }
.am .am-footer__social a:hover { background: var(--accent); color: var(--navy); }
.am-footer__col { flex: 1 1 170px; }
.am .am-footer__col h3 { position: relative; font-size: 17px; color: #fff; margin: 0 0 18px; padding-bottom: 10px; }
.am-footer__col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--accent); }
.am-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.am .am-footer__col a { color: #cfd6dc; }
.am .am-footer__col a:hover { color: var(--accent); }
.am-footer__ad { flex: 1 1 220px; max-width: 280px; }
.am-footer__bottom { background: var(--navy-dark); }
.am-footer__bottom-inner { padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #b9c2ca; }
.am .am-footer__bottom a { color: #fff; }
.am .am-footer__bottom a:hover { color: var(--accent); }

/* ==========================================================================
   Ramki zdjęć o stałych proporcjach — obrazek nie może rozpychać ramki
   (bez tego na wąskich ekranach aspect-ratio rośnie do naturalnej wysokości zdjęcia)
   ========================================================================== */
.am .am-tile__media,
.am .am-pcard__media,
.am-row__thumb,
.am-side-recent__thumb,
.am-arthero__media {
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.am .am-tile__media > img,
.am .am-pcard__media > img,
.am-row__thumb > img,
.am-side-recent__thumb > img,
.am-arthero__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.am .am-tile__media > img { inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
.am-row__thumb > img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); padding: 0; }
.am-pcard__media .am-pcard__rank,
.am-tile__media .am-score { z-index: 1; }

/* Karty ze zdjęciem nad treścią — twarda wysokość zdjęcia zamiast rozciągania */
.am-ov--stack > img { min-height: 0; flex: 0 0 auto; }

@media (max-width: 767px) {
  .am-hero__inner { min-height: 0; }
  .am-hero__copy { padding: 40px 0 16px; }
  .am-hero__media { min-height: 0; padding: 0 0 32px; }
  .am-hero__media img { max-height: 240px; margin: 0 auto; }
  .am-hero::before { width: 420px; height: 420px; right: -160px; }
  .am-hero::after { width: 240px; height: 240px; }
  .am-ov--stack > img,
  .am-ov--stack.am-ov--xl > img,
  .am-ov--stack.am-ov--lg > img { aspect-ratio: 4 / 3; max-height: 260px; }
  .am-top > .am-ov--stack:not(:first-child) > img,
  .am-ov--stack.am-ov--tall > img { aspect-ratio: 1 / 1; max-height: 200px; }
  .am-ov--stack.am-ov--photo > img,
  .am-ov--stack.am-ov--photo.am-ov--tall > img { aspect-ratio: 3 / 2; max-height: 220px; }
  .am-row__thumb { flex-basis: 96px; }
  .am-row--lg .am-row__thumb { flex-basis: 110px; }
  .am-pcard__media { flex: 0 0 auto; width: 100%; max-width: 320px; margin: 0 auto; }
  .am-arthero__media { flex-basis: 100%; }
}
