/*!
 * page-home2.css — /index2.php: pierwotna strona główna właściciela w nowym wykonaniu. Prefiks klas: hm-.
 * Kolory, rytm i proporcje z oryginału (style.css / wyszukiwarka.css właściciela); tokeny wspólne z oponeus-ui.css.
 * Wszystkie reguły pod .page-home2 — wygrywają z bazowymi regułami body.ou-body (h1–h4, p, a).
 */

.page-home2 {
  --hm-orange: #f74805;      /* kolor marki (nagłówki sekcji, akcenty) */
  --hm-orange-btn: #d43f00;  /* przyciski z białym tekstem — kontrast AA */
  --hm-orange-btn-h: #b33500;
  --hm-blue: #2668d1;        /* przycisk „Kup” właściciela */
  --hm-blue-tab: #3370ca;    /* aktywna zakładka wyszukiwarki */
  --hm-link: #2859a8;        /* linki w tekstach właściciela */
  --hm-gray: #3c4043;        /* ciemne przyciski banerów */
  --hm-black: #070000;
  --hm-light: #eaecee;
  --hm-vlight: #f8f9fb;
  --hm-radius: 10px;
}
.page-home2 .hm-search ul, .page-home2 .hm-search ol, .page-home2 .hm-promo ul, .page-home2 .hm-statements ul,
.page-home2 .hm-iconslogos ul, .page-home2 .hm-prods ul { list-style: none; margin: 0; padding: 0; }
.page-home2 [hidden] { display: none !important; }
.page-home2 :focus-visible { outline: 3px solid var(--ou-focus); outline-offset: 2px; }

/* =========================================================================
   1. WYSZUKIWARKA (zakładki + szary panel z obrazem opon)
   ========================================================================= */
.page-home2 .hm-search { margin: 24px 0 0; }
.page-home2 .hm-search__tabs { display: flex; border-radius: var(--hm-radius) var(--hm-radius) 0 0; overflow: hidden; }
.page-home2 a.hm-search__tab {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px;
  background: #f8f9fa; color: #333; font-size: 16px; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2;
  transition: background-color .2s, color .2s;
}
.page-home2 a.hm-search__tab:hover { background: #eef0f2; color: #111; text-decoration: none; }
.page-home2 a.hm-search__tab.is-active { background: var(--hm-blue-tab); color: #fff; }
.page-home2 .hm-search__tab svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.page-home2 .hm-search__body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 24px; align-items: stretch;
  background: var(--hm-light); padding: 20px; border-radius: 0 0 var(--hm-radius) var(--hm-radius);
}
.page-home2 .hm-search__visual { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 0; }
.page-home2 .hm-search__h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.15; font-weight: 700; color: var(--hm-black); letter-spacing: -.01em; }
.page-home2 .hm-search__lead { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #4b5157; max-width: 320px; }
.page-home2 img.hm-search__tyres { display: block; width: 100%; max-width: 355px; height: auto; aspect-ratio: 355 / 260; }

/* Formularz */
.page-home2 .hm-search__panel { min-width: 0; }
.page-home2 .hm-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.page-home2 .hm-form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-home2 .hm-field { margin: 0 0 15px; min-width: 0; }
.page-home2 .hm-field--submit { display: flex; align-items: flex-end; }
.page-home2 .hm-label { display: block; margin: 0 0 5px; font-size: 17px; font-weight: 600; line-height: 1.3; color: #333; }
.page-home2 .hm-select, .page-home2 .hm-input {
  display: block; width: 100%; height: 44px; margin: 0; padding: 0 38px 0 14px; border: 1px solid #c4c8cc; border-radius: 4px;
  background: #fff; color: #222; font-size: 16px; line-height: 42px; text-align: left;
}
.page-home2 select.hm-select, .page-home2 summary.hm-select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px;
}
.page-home2 .hm-select:hover { border-color: #9aa1a8; }
.page-home2 .hm-select:focus-visible, .page-home2 .hm-input:focus-visible { outline: 3px solid rgba(51, 112, 202, .35); outline-offset: 0; border-color: var(--hm-blue-tab); }
.page-home2 .hm-input { padding: 0 14px; }
.page-home2 button.hm-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 47px; margin: 0; padding: 10px 20px;
  border: 0; border-radius: 4px; background: var(--hm-orange-btn); color: #fff; font-size: 18px; font-weight: 500; line-height: 1.2; cursor: pointer;
  transition: background-color .2s;
}
.page-home2 button.hm-submit:hover { background: var(--hm-orange-btn-h); }
.page-home2 .hm-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.page-home2 button.hm-submit--inline { width: auto; font-size: 16px; }
.page-home2 .hm-form__status { margin: -4px 0 0; min-height: 22px; font-size: 14px; line-height: 22px; color: #3a4046; text-align: right; }
.page-home2 .hm-form__status b { color: var(--hm-black); }

/* Producent / Klasa — rozwijany panel (details) */
.page-home2 .hm-brands { position: relative; }
.page-home2 summary.hm-brands__trigger { list-style: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.page-home2 summary.hm-brands__trigger::-webkit-details-marker { display: none; }
.page-home2 .hm-brands__panel {
  position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; width: min(900px, calc(100vw - 32px));
  display: flex; flex-direction: column; max-height: min(620px, 75vh);
  background: #fff; border-radius: var(--hm-radius); box-shadow: 0 4px 20px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .06);
}
.page-home2 .hm-brands__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px;
  background: #f8f9fa; border-bottom: 1px solid var(--hm-light); border-radius: var(--hm-radius) var(--hm-radius) 0 0; }
.page-home2 .hm-brands__title { margin: 0; font-size: 17px; font-weight: 700; color: #333; }
.page-home2 button.hm-brands__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #333; cursor: pointer; }
.page-home2 button.hm-brands__close:hover { background: var(--hm-light); color: var(--hm-orange-btn); }
.page-home2 .hm-brands__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.page-home2 .hm-brands__search { padding: 14px 20px 0; }
.page-home2 .hm-brands__classes { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 16px; display: grid; gap: 14px; }
.page-home2 .hm-bclass { margin: 0; padding: 12px 14px 10px; min-width: 0; background: #f8f9fa; border: 1px solid var(--hm-light); border-radius: 8px; }
.page-home2 .hm-bclass__name { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 0;
  font-size: 15px; font-weight: 700; color: #333; }
.page-home2 .hm-bclass__name::before { content: ""; flex: none; width: 4px; height: 22px; border-radius: 2px; background: var(--hm-blue-tab); }
.page-home2 .hm-bclass--middle .hm-bclass__name::before { background: var(--hm-orange); }
.page-home2 .hm-bclass--budget .hm-bclass__name::before { background: #1e8a3c; }
.page-home2 .hm-bclass__name small { font-size: 13px; font-weight: 400; color: #5b6168; }
.page-home2 .hm-bclass__name + * { clear: both; }
.page-home2 .hm-bclass__all { margin: 0 0 4px; font-weight: 600; }
.page-home2 .hm-bclass__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0 8px; }
.page-home2 .hm-check { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; border-radius: 4px; font-size: 14px; line-height: 1.25; color: #333; cursor: pointer; }
.page-home2 .hm-check:hover { background: var(--hm-light); }
.page-home2 .hm-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--hm-blue-tab); cursor: pointer; }
.page-home2 .hm-brands__empty { margin: 0; padding: 8px 0; color: #5b6168; }
.page-home2 .hm-brands__foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 12px 20px;
  background: #f8f9fa; border-top: 1px solid var(--hm-light); border-radius: 0 0 var(--hm-radius) var(--hm-radius); }
.page-home2 button.hm-brands__apply { min-height: 44px; padding: 10px 30px; border: 0; border-radius: 4px; background: var(--hm-orange-btn); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; }
.page-home2 button.hm-brands__apply:hover { background: var(--hm-orange-btn-h); }
.page-home2 button.hm-brands__clear { min-height: 44px; padding: 10px 16px; border: 1px solid #c4c8cc; border-radius: 4px; background: #fff; color: #333; font-size: 15px; cursor: pointer; }
.page-home2 button.hm-brands__clear:hover { border-color: #333; }

/* Panel „Dobór wg auta” */
.page-home2 .hm-car { color: #33383e; font-size: 15px; line-height: 1.55; }
.page-home2 .hm-car__intro { margin: 4px 0 10px; font-size: 17px; font-weight: 600; color: #333; }
.page-home2 ol.hm-car__steps { margin: 0 0 16px; padding-left: 22px; list-style: decimal; }
.page-home2 .hm-car__steps li { margin: 0 0 6px; padding-left: 4px; }
.page-home2 .hm-code { display: inline-block; padding: 0 6px; border-radius: 4px; background: #fff; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.page-home2 .hm-sizecode { margin: 0 0 18px; }
.page-home2 .hm-sizecode__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; padding: 14px 16px; background: #fff; border-radius: 8px; }
.page-home2 .hm-sizecode__row span { display: flex; flex-direction: column; align-items: center; }
.page-home2 .hm-sizecode__row b { font-size: 26px; line-height: 1.1; color: var(--hm-black); }
.page-home2 .hm-sizecode__row small { font-size: 12px; color: #5b6168; }
.page-home2 .hm-sizecode__row i { font-style: normal; font-size: 26px; line-height: 1.1; color: #8a9096; margin: 0 -8px; }
.page-home2 .hm-car__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.page-home2 a.hm-btn-ghost { display: inline-flex; align-items: center; min-height: 47px; padding: 10px 20px; border: 1px solid var(--hm-gray); border-radius: 4px;
  background: #fff; color: var(--hm-gray); font-size: 16px; text-decoration: none; }
.page-home2 a.hm-btn-ghost:hover { background: var(--hm-gray); color: #fff; text-decoration: none; }
.page-home2 a.hm-link { color: var(--hm-link); text-decoration: underline; }

/* =========================================================================
   2. MENU KATEGORII + SLIDER + BANERY
   ========================================================================= */
.page-home2 .hm-promo { margin: 30px 0 0; }
.page-home2 .hm-promo__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 280px; gap: 20px; align-items: stretch; }
.page-home2 .hm-promo__grid--nobanners { grid-template-columns: 280px minmax(0, 1fr); }

.page-home2 .hm-cats { position: relative; z-index: 20; }
.page-home2 .hm-cats__list { background: var(--hm-vlight); border: 1px solid var(--hm-light); border-radius: var(--hm-radius); }
.page-home2 .hm-cats__item { position: relative; }
.page-home2 .hm-cats__item + .hm-cats__item { border-top: 1px solid rgba(0, 0, 0, .05); }
.page-home2 .hm-cats__link {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 49px; margin: 0; padding: 12px 12px 12px 12px;
  border: 0; background: transparent; color: var(--hm-black); font: inherit; font-size: 15px; line-height: 1.2; text-align: left; text-decoration: none; cursor: pointer;
}
.page-home2 a.hm-cats__link:hover, .page-home2 button.hm-cats__link:hover, .page-home2 .hm-cats__item:hover > .hm-cats__link,
.page-home2 .hm-cats__link[aria-expanded="true"] { background: var(--hm-light); color: var(--hm-black); text-decoration: none; }
.page-home2 .hm-cats__item:first-child > .hm-cats__link { border-radius: var(--hm-radius) var(--hm-radius) 0 0; }
.page-home2 .hm-cats__item:last-child > .hm-cats__link { border-radius: 0 0 var(--hm-radius) var(--hm-radius); }
.page-home2 .hm-cats__link img { flex: none; width: 24px; height: 24px; opacity: .85; }
.page-home2 .hm-cats__link span { flex: 1 1 auto; }
.page-home2 .hm-cats__chev { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.page-home2 .hm-cats__sub {
  display: none; position: absolute; left: 100%; top: -1px; z-index: 30; width: 290px; min-height: calc(100% + 2px); padding: 14px 0 10px;
  background: #fff; border: 1px solid var(--hm-light); border-radius: 0 var(--hm-radius) var(--hm-radius) var(--hm-radius);
  box-shadow: 6px 6px 16px rgba(0, 0, 0, .1);
}
.page-home2 .hm-cats__item:hover > .hm-cats__sub, .page-home2 .hm-cats__item:focus-within > .hm-cats__sub,
.page-home2 .hm-cats__link[aria-expanded="true"] + .hm-cats__sub { display: block; }
.page-home2 .hm-cats__item.is-closed > .hm-cats__sub { display: none; } /* Escape zamyka panel także przy :hover / :focus-within */
.page-home2 .hm-cats__subtitle { margin: 0 0 6px; padding: 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5b6168; }
.page-home2 .hm-cats__sub a { display: block; padding: 9px 18px; color: var(--hm-black); font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.page-home2 .hm-cats__sub a:hover { background: var(--hm-vlight); color: var(--hm-orange-btn); text-decoration: none; }
.page-home2 .hm-cats__all { margin-top: 4px; border-top: 1px solid var(--hm-light); }
.page-home2 .hm-cats__all a { font-weight: 600; color: var(--hm-orange-btn); }

/* Slider */
.page-home2 .hm-slider { position: relative; min-height: 350px; border-radius: var(--hm-radius); overflow: hidden; background: var(--hm-gray); isolation: isolate; }
.page-home2 .hm-slider__track { position: absolute; inset: 0; touch-action: pan-y; }
.page-home2 .hm-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.page-home2 .hm-slide.is-active { animation: hm-fade .5s ease both; }
@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }
.page-home2 img.hm-slide__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.page-home2 .hm-slide::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 12, .74) 0%, rgba(10, 10, 12, .5) 50%, rgba(10, 10, 12, .08) 100%); }
.page-home2 .hm-slide--light::before { background: linear-gradient(270deg, rgba(10, 10, 12, .74) 0%, rgba(10, 10, 12, .5) 50%, rgba(10, 10, 12, .08) 100%); }
.page-home2 .hm-slide__copy { padding: 24px 40px 40px; max-width: 620px; }
.page-home2 .hm-slide--light .hm-slide__copy { align-self: flex-end; text-align: right; }
.page-home2 .hm-slide__eyebrow { margin: 0 0 4px; font-size: 20px; line-height: 1.3; font-weight: 500; color: #ff8a4f; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.page-home2 .hm-slide__title { margin: 0 0 14px; font-size: 40px; line-height: 1.08; font-weight: 700; color: #fff; text-shadow: 0 0 4px rgba(0, 0, 0, .6); text-wrap: balance; }
.page-home2 .hm-slide__buttons { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.page-home2 .hm-slide--light .hm-slide__buttons { justify-content: flex-end; }
.page-home2 a.hm-slide__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; background: var(--hm-gray); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; transition: background-color .3s, color .3s; }
.page-home2 a.hm-slide__btn:hover { background: var(--hm-black); color: #fff; text-decoration: none; }
.page-home2 .hm-slide--light a.hm-slide__btn { background: var(--hm-light); color: var(--hm-black); }
.page-home2 .hm-slide--light a.hm-slide__btn:hover { background: #fff; }
.page-home2 .hm-slider__dots { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 3; display: flex; justify-content: center; gap: 2px; }
.page-home2 button.hm-slider__dot { position: relative; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.page-home2 button.hm-slider__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%);
  border-radius: 10px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .6); transition: width .2s; }
.page-home2 button.hm-slider__dot.is-active::before { width: 22px; }

/* Banery */
.page-home2 .hm-banners { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 20px; }
.page-home2 a.hm-banner {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 165px;
  padding: 18px 20px; border-radius: var(--hm-radius); overflow: hidden; background: var(--hm-gray); color: #fff; text-decoration: none;
}
.page-home2 img.hm-banner__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s; }
.page-home2 a.hm-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .1)); }
.page-home2 a.hm-banner:hover { text-decoration: none; color: #fff; }
.page-home2 a.hm-banner:hover img.hm-banner__img { transform: scale(1.04); }
.page-home2 .hm-banner__eyebrow { font-size: 15px; line-height: 1.3; font-weight: 500; color: #ff8a4f; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.page-home2 .hm-banner__title { margin: 2px 0 8px; font-size: 22px; line-height: 1.15; font-weight: 700; color: #fff; text-shadow: 0 0 4px rgba(0, 0, 0, .6); }
.page-home2 .hm-banner__btn { display: inline-block; min-width: 60%; padding: 10px 16px; background: var(--hm-gray); color: #fff; font-size: 13px; font-weight: 500;
  letter-spacing: .03em; text-transform: uppercase; text-align: center; transition: background-color .3s; }
.page-home2 a.hm-banner:hover .hm-banner__btn { background: var(--hm-black); }

/* =========================================================================
   3. ZALETY, IKONY, LOGOTYPY
   ========================================================================= */
.page-home2 .hm-statements { margin: 40px 0 0; }
.page-home2 .hm-statements__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.page-home2 .hm-statements__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.page-home2 .hm-statements__list img { grid-row: 1 / span 2; width: 48px; height: 48px; }
.page-home2 .hm-statements__list strong { align-self: end; font-size: 20px; line-height: 1.12; font-weight: 700; color: var(--hm-black); }
.page-home2 .hm-statements__list span { align-self: start; margin-top: 4px; font-size: 15px; line-height: 1.35; color: #33383e; }

.page-home2 .hm-iconslogos { margin: 40px 0 0; }
.page-home2 .hm-iconslogos__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px 48px; align-items: center; }
.page-home2 .hm-gicons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; align-items: start; }
.page-home2 .hm-gicons li, .page-home2 .hm-gicons a { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 13px; line-height: 1.2; color: var(--hm-black); }
.page-home2 .hm-gicons a { text-decoration: none; }
.page-home2 .hm-gicons a:hover { color: var(--hm-orange-btn); text-decoration: none; }
.page-home2 .hm-gicons img { width: 52px; height: 52px; margin: 0 0 6px;
  filter: invert(44%) sepia(93%) saturate(2704%) hue-rotate(347deg) brightness(96%) contrast(107%); /* na pomarańczowy marki */ }
.page-home2 .hm-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 14px 18px; align-items: center; }
.page-home2 .hm-logos a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px; border-radius: 6px; transition: transform .2s; }
.page-home2 .hm-logos a:hover { transform: scale(1.06); text-decoration: none; }
.page-home2 .hm-logos img { display: block; width: auto; max-width: 100%; height: 40px; object-fit: contain; }
.page-home2 .hm-logos__more a { font-size: 14px; font-weight: 600; color: var(--hm-orange-btn); text-align: center; }

/* =========================================================================
   4. SEKCJE PRODUKTÓW (karty właściciela)
   ========================================================================= */
.page-home2 .hm-prods { margin: 40px 0 0; }
.page-home2 .hm-prods__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 0 0 20px; }
.page-home2 .hm-prods__title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--hm-orange); }
.page-home2 a.hm-prods__more { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; color: var(--hm-orange-btn); white-space: nowrap; }
.page-home2 .hm-prods__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.page-home2 .hm-prods__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }

.page-home2 .hm-card { min-width: 0; container-type: inline-size; }
.page-home2 .hm-card__in {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 10px 10px 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--hm-light); border-radius: var(--hm-radius); color: var(--hm-black); line-height: 1;
  transition: transform .25s var(--ou-ease), box-shadow .25s;
}
.page-home2 .hm-card__in:hover, .page-home2 .hm-card__in:focus-within { transform: translateY(-3px) scale(1.02); box-shadow: 8px 8px 20px rgba(0, 0, 0, .14); z-index: 1; }
.page-home2 .hm-card__in:has(.hm-card__link:focus-visible) { outline: 3px solid var(--ou-focus); outline-offset: 2px; }
.page-home2 .hm-card__brand { margin: 0 0 4px; font-size: 13px; line-height: 1.2; text-transform: uppercase; color: #33383e; }
.page-home2 .hm-card__title { margin: 0; font-size: 21px; line-height: 1.1; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.2em; overflow-wrap: anywhere; }
.page-home2 a.hm-card__link { color: var(--hm-black); text-decoration: none; }
.page-home2 a.hm-card__link:hover { color: var(--hm-black); text-decoration: none; }
.page-home2 a.hm-card__link:focus-visible { outline: none; }
.page-home2 a.hm-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* cała karta klikalna */
.page-home2 .hm-card__size { margin: 4px 0 8px; font-size: 13px; line-height: 1.2; color: #33383e; }

/* Pasek etykiety UE */
.page-home2 ul.hm-eu { display: flex; flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; margin: 0 -10px 0 0; font-size: 12px; line-height: 1; color: #3a4046; }
.page-home2 .hm-eu li { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 4px 7px; background: var(--hm-light); white-space: nowrap; }
.page-home2 .hm-eu li + li { border-left: 1px solid rgba(0, 0, 0, .12); }
.page-home2 .hm-eu li:first-child { border-radius: 4px 0 0 4px; }
.page-home2 .hm-eu img { width: 12px; height: 12px; opacity: .75; }
.page-home2 .hm-eu__cls { display: inline-block; min-width: 17px; padding: 2px 3px; border-radius: 3px; font-weight: 700; text-align: center; color: #fff; background: #6b7177; }
.page-home2 .hm-eu__cls--a { background: #00843d; }
.page-home2 .hm-eu__cls--b { background: #8bc53f; color: #102400; }
.page-home2 .hm-eu__cls--c { background: #ffd500; color: #2b2300; }
.page-home2 .hm-eu__cls--d { background: #f6a01a; color: #2b1600; }
.page-home2 .hm-eu__cls--e { background: #c8102e; }
.page-home2 .hm-eu__more { position: relative; z-index: 2; }
.page-home2 .hm-eu__more a { color: #1f5fbf; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.page-home2 .hm-eu__more a:hover { color: #123f85; }

.page-home2 .hm-card__pic { position: relative; height: 150px; margin: 8px 0 0; overflow: hidden; border-radius: 6px; background: #f3f4f6; }
.page-home2 .hm-card__pic > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 40%; }
.page-home2 .hm-card__signs { position: absolute; left: 6px; top: 6px; display: flex; gap: 4px; }
.page-home2 .hm-card__signs img { width: 30px; height: 30px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.page-home2 .hm-card__flag { position: absolute; right: 6px; top: 6px; padding: 3px 6px; border-radius: 4px; background: rgba(255, 255, 255, .92);
  font-size: 11px; font-weight: 700; color: #33383e; }

.page-home2 .hm-card__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; margin-top: auto; padding-top: 12px; }
.page-home2 .hm-card__price { flex: 1 0 auto; margin: 0; text-align: center; white-space: nowrap; color: var(--hm-black); }
.page-home2 .hm-card__price b { font-size: 31px; font-weight: 700; letter-spacing: -.02em; }
.page-home2 .hm-card__price small { font-size: 16px; font-weight: 700; }
.page-home2 .hm-unit { display: inline-block; margin-left: 3px; font-size: 15px; font-weight: 700; }
.page-home2 .hm-unit span:first-child { position: relative; top: -.55em; font-size: .8em; }
.page-home2 .hm-unit span:first-child::after { content: "⁄"; margin: 0 1px; font-weight: 400; }
.page-home2 .hm-card__cta { flex: 1 1 96px; max-width: 100%; display: block; padding: 9px 8px; border-radius: 4px; background: var(--hm-blue); color: #fff; font-size: 19px; line-height: 1.2; text-align: center;
  transition: background-color .3s; }
.page-home2 .hm-card__in:hover .hm-card__cta { background: var(--hm-orange-btn); }
.page-home2 .hm-note { margin: 20px 0 0; font-size: 13px; line-height: 1.5; color: #5b6168; }

/* =========================================================================
   5. TEKST, DUŻY BANER, LINKI, POWIADOMIENIA
   ========================================================================= */
.page-home2 .hm-text { margin: 40px 0 0; padding: 26px 0 10px; background: var(--hm-vlight); border-top: 1px solid var(--hm-light); border-bottom: 1px solid var(--hm-light);
  font-size: 15px; line-height: 1.6; color: #33383e; }
.page-home2 .hm-text h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 28px; line-height: 1.2; color: #24282c; }
.page-home2 .hm-text h3 { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; font-size: 22px; line-height: 1.25; color: #24282c; }
.page-home2 .hm-text h2 img { width: 40px; height: 40px; flex: none; }
.page-home2 .hm-text h3 img { width: 32px; height: 32px; flex: none; }
.page-home2 .hm-text p { margin: 0 0 16px; max-width: 1180px; }
.page-home2 .hm-text a { color: var(--hm-link); text-decoration: underline; }
.page-home2 .hm-text a:hover { color: #1b3f78; }
.page-home2 ul.hm-text__list { margin: 0 0 16px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; max-width: 1180px; }
.page-home2 .hm-text__list li { position: relative; padding-left: 26px; }
.page-home2 .hm-text__list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid #1e8a3c; border-bottom: 2.5px solid #1e8a3c; transform: rotate(-45deg); }

.page-home2 .hm-bigbanner { margin: 40px 0 0; }
.page-home2 .hm-bigbanner a { display: block; }
.page-home2 .hm-bigbanner img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 444; object-fit: cover; }

.page-home2 .hm-links { padding: 20px 0; background: var(--hm-vlight); border-top: 1px solid var(--hm-light); border-bottom: 1px solid var(--hm-light); font-size: 14px; line-height: 1.6; }
.page-home2 .hm-links__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.page-home2 h2.hm-links__icon { margin: 0 0 10px; line-height: 1; }
.page-home2 .hm-links__icon img { width: 34px; height: 34px; }
.page-home2 .hm-links__line { margin: 0 0 4px; color: var(--hm-black); }
.page-home2 .hm-links__line a { color: var(--hm-link); }
.page-home2 .hm-links__line a:hover { color: #1b3f78; }

.page-home2 .hm-notify { padding: 32px 0 40px; }
.page-home2 .hm-notify__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; }
.page-home2 .hm-notify__in::before { content: none; }
.page-home2 .hm-notify__ico { width: 44px; height: 44px; padding: 10px; box-sizing: content-box; border-radius: 50%; background: #fff1ea; fill: none; stroke: var(--hm-orange-btn); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-home2 .hm-notify__title { margin: 0 0 4px; font-size: 22px; line-height: 1.2; color: #24282c; }
.page-home2 .hm-notify__txt p { margin: 0; font-size: 15px; line-height: 1.5; color: #33383e; max-width: 760px; }
.page-home2 a.hm-notify__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 4px;
  background: var(--hm-gray); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.page-home2 a.hm-notify__btn:hover { background: var(--hm-black); color: #fff; text-decoration: none; }

/* =========================================================================
   6. RESPONSYWNOŚĆ
   ========================================================================= */
@media (max-width: 1199.98px) {
  .page-home2 .hm-promo__grid { grid-template-columns: 230px minmax(0, 1fr) 250px; }
  .page-home2 .hm-prods__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home2 .hm-statements__list strong { font-size: 18px; }
  .page-home2 .hm-slide__title { font-size: 34px; }
  .page-home2 .hm-iconslogos__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 999.98px) {
  .page-home2 .hm-search__body { grid-template-columns: minmax(0, 1fr); }
  .page-home2 .hm-search__visual { display: grid; grid-template-columns: minmax(0, 1fr) 180px; grid-template-rows: auto auto; align-items: center; column-gap: 20px; text-align: left; padding: 0; }
  .page-home2 .hm-search__h1 { align-self: end; }
  .page-home2 .hm-search__lead { align-self: start; margin: 0; max-width: none; }
  .page-home2 img.hm-search__tyres { grid-column: 2; grid-row: 1 / span 2; width: 180px; }
  .page-home2 .hm-promo__grid, .page-home2 .hm-promo__grid--nobanners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home2 .hm-cats { display: none; } /* menu kategorii jest w menu głównym („Opony”) — jak w oryginale */
  .page-home2 .hm-slider { grid-column: 1 / -1; min-height: 320px; }
  .page-home2 .hm-banners { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home2 .hm-statements__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  /* panel jako arkusz na dole ekranu, nad nagłówkiem strony (z-index 900), pod menu mobilnym i zgodą na cookies */
  .page-home2 .hm-brands__panel { position: fixed; z-index: 1501; top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .page-home2 .hm-brands[open]::before { content: ""; position: fixed; inset: 0; z-index: 1500; background: rgba(17, 19, 22, .45); }
}
@media (max-width: 799.98px) {
  /* produkty: przewijany poziomo pas kart (scroll-snap) zamiast bardzo długiej siatki */
  .page-home2 .hm-prods__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 42%); gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--ou-gutter);
    margin: 0 calc(var(--ou-gutter) * -1); padding: 6px var(--ou-gutter) 14px; scrollbar-width: thin; }
  .page-home2 .hm-card { scroll-snap-align: start; }
  .page-home2 .hm-card__in:hover, .page-home2 .hm-card__in:focus-within { transform: none; box-shadow: none; }
  .page-home2 .hm-gicons { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
  .page-home2 .hm-links__grid, .page-home2 ul.hm-text__list { grid-template-columns: minmax(0, 1fr); }
  .page-home2 .hm-notify__in { grid-template-columns: auto minmax(0, 1fr); }
  .page-home2 a.hm-notify__btn { grid-column: 1 / -1; }
}
@media (max-width: 599.98px) {
  .page-home2 .hm-search { margin-top: 16px; }
  .page-home2 .hm-search__body { padding: 16px; }
  .page-home2 a.hm-search__tab { font-size: 15px; gap: 8px; padding: 10px 8px; }
  .page-home2 .hm-search__h1 { font-size: 22px; }
  .page-home2 img.hm-search__tyres { display: none; }
  .page-home2 .hm-form__row { grid-template-columns: minmax(0, 1fr); }
  .page-home2 .hm-form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
  .page-home2 .hm-label { font-size: 16px; }
  .page-home2 .hm-select { padding-left: 10px; padding-right: 30px; background-position: right 8px center; }
  .page-home2 .hm-form__status { text-align: center; }
  .page-home2 .hm-slider { min-height: 300px; }
  .page-home2 .hm-slide__copy { padding: 20px 20px 44px; }
  .page-home2 .hm-slide__title { font-size: 28px; }
  .page-home2 .hm-slide__eyebrow { font-size: 17px; }
  .page-home2 .hm-banners { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .page-home2 .hm-statements__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .page-home2 .hm-statements__list strong { font-size: 18px; }
  .page-home2 .hm-prods__title { font-size: 22px; }
  .page-home2 .hm-prods__list { grid-auto-columns: minmax(250px, 80%); }
  .page-home2 .hm-text h2 { font-size: 23px; }
  .page-home2 .hm-text h3 { font-size: 19px; }
  .page-home2 .hm-bigbanner img { aspect-ratio: 16 / 7; object-position: 100% center; }
  .page-home2 .hm-notify__in { align-items: start; }
  .page-home2 .hm-notify__ico { width: 32px; height: 32px; padding: 8px; }
}
/* (po regułach bazowych — ta sama specyficzność) wąska karta (karuzela na tablecie/telefonie): cena i „Kup” zawsze w jednym wierszu */
@container (max-width: 290px) {
  .page-home2 .hm-card__price b { font-size: 26px; }
  .page-home2 .hm-card__price small { font-size: 14px; }
  .page-home2 .hm-unit { font-size: 13px; }
  .page-home2 .hm-card__cta { flex-basis: 72px; font-size: 17px; }
}
@media (max-width: 379.98px) {
  .page-home2 .hm-form__row--3 { gap: 0 6px; }
  .page-home2 .hm-select { font-size: 15px; padding-left: 8px; padding-right: 24px; background-size: 14px 14px; background-position: right 6px center; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home2 .hm-slide.is-active { animation: none; }
  .page-home2 .hm-card__in, .page-home2 img.hm-banner__img, .page-home2 .hm-logos a { transition: none; }
  .page-home2 .hm-card__in:hover, .page-home2 .hm-card__in:focus-within, .page-home2 a.hm-banner:hover img.hm-banner__img, .page-home2 .hm-logos a:hover { transform: none; }
}
