/* =====================================================================
   ARPON 2026 — podstrony ofertowe (zaopatrzenie rolnictwa i budownictwa)
   Uzupełnia main.css. Ładowane tylko na tych dwóch stronach.
   ===================================================================== */

/* --------------------------------------------- pasek sekcji podstrony */
.subnav { position: sticky; top: 70px; z-index: 90; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px -16px rgba(8,40,25,.5); }
.subnav__inner { display: flex; align-items: center; gap: 8px 18px; min-height: 52px; }
.subnav__back { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--green-800); white-space: nowrap; }
.subnav__back:hover { color: var(--green-950); }
.subnav__title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); white-space: nowrap; padding-left: 18px; border-left: 1px solid var(--line); }
.subnav__links { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__links a { padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.subnav__links a:hover { background: var(--green-050); color: var(--green-950); }
.subnav__tel { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--green-800); white-space: nowrap; padding-left: 16px; border-left: 1px solid var(--line); }
.subnav__tel svg { width: 15px; height: 15px; }
@media (max-width: 1080px) {
	.subnav__title { display: none; }
}
@media (max-width: 760px) {
	.subnav { top: 70px; }
	.subnav__inner { gap: 10px; }
	.subnav__links { margin-left: 0; order: 3; width: 100%; padding-bottom: 8px; }
	.subnav__tel { margin-left: auto; }
	.subnav__inner { flex-wrap: wrap; padding-top: 8px; }
}

/* oferta */
.offer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer__item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.offer__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.offer__media { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--green-050); }
.offer__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.offer__item:hover .offer__img { transform: scale(1.05); }
.offer__no { position: absolute; left: 14px; top: 12px; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; color: var(--green-900); background: rgba(255,255,255,.88); backdrop-filter: blur(3px); padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(8,40,25,.14); }
.offer__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.offer__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin: -46px 0 14px; position: relative; z-index: 1; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--green-600); border: 1px solid var(--line); }
.offer__icon svg { width: 24px; height: 24px; }
.offer__title { font-size: 1.16rem; margin-bottom: .45em; }
.offer__desc { color: var(--ink-soft); font-size: .95rem; margin: 0 0 14px; }
.offer__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.offer__tags li { font-size: .78rem; font-weight: 600; color: var(--green-800); background: var(--green-050); border-radius: 999px; padding: 4px 11px; }

/* dla kogo */
.aud__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.aud__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; }
.aud__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.aud__item strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 3px; }
.aud__item span { color: var(--ink-soft); font-size: .9rem; }
.aud__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.aud__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* dlaczego */
.why { position: relative; background: var(--green-950); color: #fff; overflow: hidden; }
.why__bg { position: absolute; inset: 0; }
.why__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.why__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,41,26,.96) 0%, rgba(5,41,26,.86) 46%, rgba(5,41,26,.62) 100%); }
.why__inner { position: relative; }
.why .section__eyebrow { color: #7fe0ad; }
.why .section__title { color: #fff; }
.why .section__lead { color: #cfe3d8; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.why__item { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-sm); padding: 16px 18px; }
.why__ico { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--green-600); display: grid; place-items: center; }
.why__ico svg { width: 15px; height: 15px; stroke: #fff; }
.why__txt strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.why__txt span { color: #b7d2c4; font-size: .88rem; }

/* sekcje dwudzielne (sprzedaż mobilna / mieszalnia) */
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, #f2f5f1 0%, #e4ebe5 100%); box-shadow: var(--shadow); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 18px; }
.split__badge { position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: .82rem; font-weight: 600; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--green-800); box-shadow: var(--shadow-sm); }
.split__title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.steps { list-style: none; display: grid; gap: 10px; margin: 0 0 26px; counter-reset: st; }
.steps li { position: relative; padding: 10px 0 10px 46px; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-050); color: var(--green-800); font-family: var(--font-display); font-weight: 700; font-size: .88rem; }
.callbox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--green-600); border-radius: var(--radius-sm); padding: 18px 22px; }
.callbox__lab { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); font-family: var(--font-display); display: block; }
.callbox__tel { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--green-900); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.callbox__tel:hover { color: var(--green-600); }

/* ---------------------------- komponenty podstrony budownictwa */
.svc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s ease, box-shadow .2s ease; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc__ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--green-050); color: var(--green-800); margin-bottom: 4px; }
.svc__ico svg { width: 23px; height: 23px; }
.svc__t { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.svc__d { color: var(--ink-soft); font-size: .94rem; margin: 0; }

.brandwall { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.brandwall li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px; font-family: var(--font-display); font-weight: 700; font-size: .92rem; letter-spacing: .03em; color: #46564e; }

.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--paper-alt); }
.gal__img { width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.gal figcaption { font-size: .84rem; color: var(--ink-soft); padding: 9px 12px 11px; background: var(--surface); }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq details[open] { border-color: var(--green-600); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--green-600); flex: 0 0 auto; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 16px; color: var(--ink-soft); font-size: .97rem; }

.quote { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); background: linear-gradient(120deg, var(--green-950) 0%, var(--green-900) 55%, var(--green-800) 100%); color: #fff; box-shadow: var(--shadow-lg); }
.quote__inner { position: relative; display: grid; grid-template-columns: 1.3fr auto; gap: clamp(22px, 4vw, 52px); align-items: center; padding: clamp(28px, 5vw, 52px); }
.quote__badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; font-family: var(--font-display); font-size: .78rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 15px; border-radius: 999px; color: #cdeedd; }
.quote__title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; margin-bottom: .35em; }
.quote__lead { color: #cfe3d8; font-size: 1.03rem; max-width: 54ch; margin: 0; }
.quote__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

@media (max-width: 1080px) {
	.svc__grid { grid-template-columns: repeat(2, 1fr); }
	.gal { grid-template-columns: repeat(2, 1fr); }
	.quote__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.svc__grid { grid-template-columns: 1fr; }
}

/* ================= DYNAMICZNA SEKCJA — kalendarz rolnika / etapy budowy ================= */
.arpk { max-width: var(--wrap); margin-inline: auto; color: #fff; }
.arpk * { box-sizing: border-box; }
.arpk-stage { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; background: var(--green-950); box-shadow: var(--shadow-lg); }
.arpk-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease; background-size: cover; background-position: center; display: flex; align-items: stretch; }
.arpk-slide.arpk-on { opacity: 1; visibility: visible; z-index: 2; }
.arpk-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,41,26,.94) 0%, rgba(5,41,26,.8) 38%, rgba(5,41,26,.3) 72%, rgba(5,41,26,.06) 100%); }
.arpk-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 44px 120px 64px 48px; max-width: 780px; }
.arpk-eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.arpk-logo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,168,89,.25); }
.arpk-kicker { font-family: var(--font-display); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #bfe9d4; }
.arpk-now { background: var(--green-600); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .12em; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; font-family: var(--font-display); animation: arpkPulse 2.4s ease-in-out infinite; }
@keyframes arpkPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,168,89,.55); } 50% { box-shadow: 0 0 0 8px rgba(0,168,89,0); } }
.arpk-months { font-size: .95rem; font-weight: 600; color: #6fd2fb; letter-spacing: .04em; }
.arpk-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.15; color: #fff; margin: 0; }
.arpk-tasks { list-style: none; display: grid; gap: 7px; font-size: .98rem; line-height: 1.45; color: #eaf6ef; margin: 0; }
.arpk-tasks li { position: relative; padding-left: 28px; }
.arpk-tasks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--green-600); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E"); background-size: 11px; background-position: center; background-repeat: no-repeat; }
.arpk-shop-label { font-family: var(--font-display); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #9fd8f5; margin-top: 4px; }
.arpk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arpk-chip { font-size: .82rem; font-weight: 600; color: #fff; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.arpk-cta { margin-top: 6px; font-size: .88rem; color: #cfe3d8; }
.arpk-cta strong { color: #fff; }
.arpk-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(5,41,26,.45); color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s, transform .25s; }
.arpk-nav:hover { background: var(--green-600); transform: translateY(-50%) scale(1.07); }
.arpk-prev { left: 14px; } .arpk-next { right: 14px; }
.arpk-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.15); z-index: 4; }
.arpk-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.arpk-progress span.arpk-run { animation: arpkBar var(--arpk-dur, 8s) linear forwards; }
@keyframes arpkBar { from { width: 0; } to { width: 100%; } }
.arpk.arpk-paused .arpk-progress span { animation-play-state: paused; }
.arpk-timeline { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 12px; }
.arpk-m { position: relative; border: 1px solid var(--line); cursor: pointer; border-radius: 10px; padding: 11px 4px 9px; background: var(--surface); color: #41564a; font-size: .7rem; font-weight: 700; letter-spacing: .06em; font-family: var(--font-display); text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.arpk-m:hover { background: var(--green-050); border-color: var(--green-050); }
.arpk-m.arpk-sel { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.arpk-m.arpk-today::after { content: ""; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.arpk-m.arpk-sel.arpk-today::after { background: #fff; }

/* obrazy jako tła (dzięki temu każde zdjęcie jest w pliku tylko raz) */
.pd .hero__photo { display: block; width: 100%; height: 100%; background-size: cover; background-position: center 58%; }
.offer__img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.aud__img { width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.why__img { position: absolute; inset: 0; display: block; background-size: cover; background-position: center; opacity: .34; }
.split__img { width: 100%; aspect-ratio: 4 / 3; background-size: contain; background-position: center; background-repeat: no-repeat; }

/* mobile */
@media (max-width: 1080px) {
	.offer__grid { grid-template-columns: repeat(2, 1fr); }
	.why__grid { grid-template-columns: repeat(2, 1fr); }
	.aud__grid { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; }
	.split--rev .split__media { order: 0; }
}
@media (max-width: 760px) {
	.aud__list { grid-template-columns: 1fr; }
	.arpk-stage { min-height: 0; }
	.arpk-slide { position: relative; inset: auto; display: none; }
	.arpk-slide.arpk-on { display: flex; }
	.arpk-slide::before { background: linear-gradient(180deg, rgba(5,41,26,.92) 0%, rgba(5,41,26,.84) 55%, rgba(5,41,26,.62) 100%); }
	.arpk-inner { padding: 26px 20px 44px; gap: 11px; }
	.arpk-nav { width: 36px; height: 36px; top: auto; bottom: 14px; transform: none; }
	.arpk-nav:hover { transform: scale(1.05); }
	.arpk-prev { left: auto; right: 64px; }
	.arpk-timeline { grid-template-columns: repeat(6, 1fr); }
	.arpk-m { font-size: .62rem; padding: 8px 2px 7px; border-radius: 8px; }
}
@media (max-width: 560px) {
	.offer__grid { grid-template-columns: 1fr; }
	.why__grid { grid-template-columns: 1fr; }
	.callbox { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.arpk-progress { display: none; }
}

/* oś: 12 miesięcy (rolnictwo) / 8 etapów (budownictwo) */
.arpk--etapy .arpk-timeline { grid-template-columns: repeat(8, 1fr); }
@media (max-width: 760px) {
	.arpk--etapy .arpk-timeline { grid-template-columns: repeat(4, 1fr); }
}

/* Zmienne ze zdjęciami wstrzykuje PHP (inc/podstrony.php) — adresy muszą być
   pełne, bo url() w zmiennej CSS rozwiązuje się względem strony, nie arkusza. */

/* tła slajdów dynamicznej sekcji (miesiące albo etapy) */
.arpk-bg-1 { background-image: var(--s1); }
.arpk-bg-2 { background-image: var(--s2); }
.arpk-bg-3 { background-image: var(--s3); }
.arpk-bg-4 { background-image: var(--s4); }
.arpk-bg-5 { background-image: var(--s5); }
.arpk-bg-6 { background-image: var(--s6); }
.arpk-bg-7 { background-image: var(--s7); }
.arpk-bg-8 { background-image: var(--s8); }
.arpk-bg-9 { background-image: var(--s9); }
.arpk-bg-10 { background-image: var(--s10); }
.arpk-bg-11 { background-image: var(--s11); }
.arpk-bg-12 { background-image: var(--s12); }
