/* Potrofeum.pl homepage refresh. Loaded only on the front page. */
.home .pm-main { padding-top:0; }
.home .pm-home-cta { padding:24px 0 50px; }
.home .pm-home-cta__grid { min-height:510px; grid-template-columns:minmax(0,1.62fr) minmax(360px,1fr); gap:14px; }
.home .pm-home-cta-card { border:1px solid var(--pm-line); border-radius:22px; box-shadow:0 15px 42px rgb(12 21 36 / 9%); }
.home .pm-home-cta-card__content { top:50%; right:auto; bottom:auto; width:min(58%,620px); padding:clamp(26px,3.5vw,48px); transform:translateY(-50%); }
.home .pm-home-cta-card--2 .pm-home-cta-card__content,
.home .pm-home-cta-card--3 .pm-home-cta-card__content { width:58%; padding:clamp(22px,2.4vw,32px); }
.home .pm-home-cta-card--1 .pm-home-cta-card__shade { background:linear-gradient(90deg,#f4f8fd 0%,rgb(244 248 253 / 96%) 38%,rgb(244 248 253 / 18%) 72%,transparent 100%); }
.home .pm-home-cta-card--2 .pm-home-cta-card__shade { background:linear-gradient(90deg,rgb(4 14 33 / 96%) 0%,rgb(4 14 33 / 84%) 42%,rgb(4 14 33 / 8%) 84%); }
.home .pm-home-cta-card--3 .pm-home-cta-card__shade { background:linear-gradient(90deg,#f6f9fd 0%,rgb(246 249 253 / 95%) 42%,rgb(246 249 253 / 8%) 84%); }
.home .pm-home-cta-card--1 h1,
.home .pm-home-cta-card--3 h2 { color:var(--pm-ink); }
.home .pm-home-cta-card--1 p,
.home .pm-home-cta-card--3 p { color:var(--pm-muted); }
.home .pm-home-cta-card h1 { font-size:clamp(2.45rem,4.1vw,4.25rem); }
.home .pm-home-cta-card h2 { font-size:clamp(1.45rem,2.15vw,2rem); }
.home .pm-home-cta-card__button { background:var(--pm-brand); color:#fff; }
.home .pm-home-cta-card--2 .pm-home-cta-card__button { border:1px solid rgb(255 255 255 / 34%); background:rgb(255 255 255 / 8%); color:#fff; }
.home .pm-home-cta-card--3 .pm-home-cta-card__button { border:1px solid var(--pm-brand); background:#fff; color:var(--pm-brand); }
.home .pm-home-cta-card--1 .pm-home-cta-card__image { object-position:center; }
.home .pm-home-cta-card--2 .pm-home-cta-card__image,
.home .pm-home-cta-card--3 .pm-home-cta-card__image { object-position:center; }

.home .pm-section { padding-block:58px; }
.home .pm-section__head { margin-bottom:24px; }
.home .pm-section__head h2 { font-size:clamp(1.75rem,3vw,2.55rem); }
.home .pm-section__head .pm-eyebrow { margin-bottom:8px; color:var(--pm-brand); }
.home .pm-discipline-card { flex-basis:calc((100% - 80px) / 6); padding:8px; border-radius:15px; }
.home .pm-discipline-card__image { aspect-ratio:1.32 / 1; padding:0; }
.home .pm-discipline-card__image img { object-fit:cover; }
.home .pm-discipline-card__name { min-height:48px; padding:11px 6px 3px; font-size:.83rem; }

.pm-home-sale-section { overflow:hidden; background:#fff; }
.pm-home-sale-heading { margin-bottom:20px; }
.pm-sale-layout { display:grid; grid-template-columns:minmax(360px,.78fr) minmax(0,1.22fr); align-items:stretch; gap:18px; }
.pm-sale-layout--single { grid-template-columns:minmax(0,1fr); }
.pm-sale-feature { position:relative; display:grid; min-width:0; min-height:505px; grid-template-columns:minmax(150px,.78fr) minmax(190px,1.22fr); align-items:center; gap:18px; overflow:hidden; padding:clamp(22px,2.4vw,34px); border-radius:20px; background:linear-gradient(145deg,#1247ed 0%,#2457f5 55%,#173bb7 100%); color:#fff; box-shadow:0 20px 48px rgb(36 87 245 / 22%); isolation:isolate; }
.pm-sale-feature::after { content:""; position:absolute; right:-105px; bottom:-135px; z-index:-1; width:330px; height:330px; border:58px solid rgb(255 255 255 / 7%); border-radius:50%; }
.pm-sale-feature__media { display:grid; min-width:0; aspect-ratio:1 / 1.16; place-items:center; overflow:hidden; padding:14px; border-radius:16px; background:rgb(255 255 255 / 96%); }
.pm-sale-feature__media img { display:block; width:100%; height:100%; margin:0; object-fit:contain; }
.pm-sale-feature__content { min-width:0; }
.pm-sale-feature__badge { display:inline-flex; margin-bottom:15px; padding:7px 10px; border-radius:999px; background:#ff4d55; color:#fff; font-size:.75rem; font-weight:850; }
.pm-sale-feature__eyebrow { margin:0 0 7px; color:rgb(255 255 255 / 72%); font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.pm-sale-feature h3 { margin:0; font-size:clamp(1.2rem,1.7vw,1.65rem); line-height:1.22; letter-spacing:-.025em; }
.pm-sale-feature h3 a { color:#fff; text-decoration:none; }
.pm-sale-feature__price { display:flex; flex-direction:column; align-items:flex-start; gap:4px; margin-top:12px; color:#fff; font-size:1.32rem; font-weight:850; }
.pm-sale-feature__old-price { color:rgb(255 255 255 / 62%); font-size:.6em; font-weight:650; line-height:1.35; }
.pm-sale-feature__old-price del { color:inherit; }
.pm-sale-feature__current-price,
.pm-sale-feature__current-price .pm-price-from-label,
.pm-sale-feature__current-price .pm-price-from-value,
.pm-sale-feature__current-price .woocommerce-Price-amount,
.pm-sale-feature__current-price ins { color:#fff; }
.pm-sale-feature__current-price > del { display:none; }
.pm-sale-feature__current-price ins { text-decoration:none; }
.pm-sale-countdown__label { margin:22px 0 9px; color:rgb(255 255 255 / 82%); font-size:.78rem; font-weight:700; }
.pm-sale-countdown { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.pm-sale-countdown > span { display:grid; min-height:58px; place-items:center; align-content:center; padding:7px 3px; border:1px solid rgb(255 255 255 / 17%); border-radius:10px; background:rgb(5 26 98 / 22%); }
.pm-sale-countdown strong { font-size:1.15rem; line-height:1; font-variant-numeric:tabular-nums; }
.pm-sale-countdown small { margin-top:5px; color:rgb(255 255 255 / 70%); font-size:.56rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.pm-sale-feature .pm-button { min-height:44px; margin-top:20px; padding:10px 16px; font-size:.79rem; }
.pm-sale-feature.is-expired .pm-sale-countdown { opacity:.6; }

.pm-sale-carousel { display:flex; min-width:0; flex-direction:column; padding:20px; border:1px solid var(--pm-line); border-radius:20px; background:#fff; box-shadow:0 13px 38px rgb(12 21 36 / 6%); }
.pm-sale-carousel .pm-home-products-slider { min-width:0; }
.pm-sale-carousel .pm-products-slider__header { align-items:center; margin-bottom:15px; }
.pm-sale-carousel .pm-home-products-heading h3 { margin:0; font-size:1.15rem; letter-spacing:-.02em; }
.pm-sale-carousel .pm-products-slider__button { width:38px; height:38px; }
.pm-sale-carousel .woocommerce ul.products.pm-products-track { gap:10px; padding:2px 1px 5px; }
.pm-sale-carousel .pm-products-slider ul.products.pm-products-track li.product { flex-basis:calc((100% - 20px) / 3); min-width:0; padding:10px; border:1px solid var(--pm-line); border-radius:13px; background:#fff; }
.pm-sale-layout--slider-only .pm-sale-carousel .pm-products-slider ul.products.pm-products-track li.product { flex-basis:calc((100% - 30px) / 4); }
.pm-sale-carousel .woocommerce ul.products li.product a img { margin-bottom:11px; padding:12px; border-radius:10px; }
.pm-sale-carousel .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:.78rem; line-height:1.32; }
.pm-sale-carousel .woocommerce ul.products li.product .price { font-size:.91rem; }
.pm-sale-carousel .woocommerce ul.products li.product .button { min-height:39px; margin-top:10px; padding:8px 9px !important; font-size:.7rem; }
.pm-sale-carousel .woocommerce span.onsale { margin:7px !important; padding:6px 8px; font-size:.62rem; }
.pm-sale-dots { display:flex; min-height:18px; justify-content:center; gap:7px; margin-top:auto; padding-top:14px; }
.pm-sale-dot { width:7px; height:7px; padding:0; border:0; border-radius:50%; background:#d6ddea; transition:width .2s ease,background .2s ease; }
.pm-sale-dot.is-active { width:21px; border-radius:99px; background:var(--pm-brand); }

.home .pm-home-category { border-radius:15px; box-shadow:none; }
.home .pm-home-category__image { aspect-ratio:1.45 / 1; }
.home .pm-features { gap:12px; }
.home .pm-feature { display:grid; grid-template-columns:46px minmax(0,1fr); column-gap:14px; padding:22px; border-radius:14px; background:#f1f6ff; }
.home .pm-feature__icon { grid-row:1 / 3; width:46px; height:46px; margin:0; background:#fff; }
.home .pm-feature h3 { align-self:end; font-size:1rem; }
.home .pm-feature p { font-size:.82rem; line-height:1.5; }
.home .pm-step { padding-top:20px; }
.home .pm-step::before { display:grid; width:52px; height:52px; margin-bottom:20px; place-items:center; border-radius:50%; background:var(--pm-brand-soft); font-size:1.05rem; }

@media (max-width:1100px) {
  .home .pm-home-cta__grid { min-height:480px; grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr); }
  .home .pm-discipline-card { flex-basis:calc((100% - 48px) / 4); }
  .pm-sale-layout { grid-template-columns:1fr; }
  .pm-sale-feature { min-height:420px; grid-template-columns:minmax(190px,.7fr) minmax(0,1.3fr); }
  .pm-sale-carousel .pm-products-slider ul.products.pm-products-track li.product { flex-basis:calc((100% - 20px) / 3); }
	.pm-sale-layout--slider-only .pm-sale-carousel .pm-products-slider ul.products.pm-products-track li.product { flex-basis:calc((100% - 20px) / 3); }
}

@media (max-width:760px) {
  .home .pm-home-cta__grid { grid-template-columns:1fr; }
  .home .pm-home-cta-card__content,
  .home .pm-home-cta-card--2 .pm-home-cta-card__content,
  .home .pm-home-cta-card--3 .pm-home-cta-card__content { top:auto; right:0; bottom:0; width:auto; padding:24px; transform:none; }
  .home .pm-home-cta-card--1 .pm-home-cta-card__shade { background:linear-gradient(0deg,rgb(244 248 253 / 98%) 0%,rgb(244 248 253 / 80%) 46%,transparent 82%); }
  .home .pm-home-cta-card--2 .pm-home-cta-card__shade { background:linear-gradient(0deg,rgb(4 14 33 / 96%) 0%,rgb(4 14 33 / 68%) 50%,transparent 88%); }
  .home .pm-home-cta-card--3 .pm-home-cta-card__shade { background:linear-gradient(0deg,rgb(246 249 253 / 98%) 0%,rgb(246 249 253 / 75%) 52%,transparent 88%); }
  .home .pm-discipline-card { flex-basis:calc((100% - 12px) / 2); }
  .pm-sale-feature { min-height:0; grid-template-columns:1fr; }
  .pm-sale-feature__media { max-height:260px; aspect-ratio:1.25 / 1; }
  .pm-sale-carousel { padding:14px; }
  .pm-sale-carousel .pm-products-slider ul.products.pm-products-track li.product { flex-basis:calc((100% - 10px) / 2); }
	.pm-sale-layout--slider-only .pm-sale-carousel .pm-products-slider ul.products.pm-products-track li.product { flex-basis:calc((100% - 10px) / 2); }
  .home .pm-feature { grid-template-columns:42px minmax(0,1fr); }
}

@media (max-width:480px) {
  .pm-sale-countdown strong { font-size:1rem; }
  .pm-sale-carousel .pm-products-slider ul.products.pm-products-track li.product { flex-basis:82%; }
	.pm-sale-layout--slider-only .pm-sale-carousel .pm-products-slider ul.products.pm-products-track li.product { flex-basis:82%; }
}
