/* ======================================================================
   home-v2.css — nowa strona główna v2 (strona TESTOWA, niepubliczna)
   URL: /podglad-strona-glowna-v2-7k3f
   Prefiks klas: h0-
   Ładowany TYLKO na pages/strona-glowna-v2.php.
   Pominięte z załącznika: blok „minimalne odpowiedniki" (body/wrap/section/
   sec-tag/font-heading.sec-h/sec-light/sec-white) — te klasy są już w main.css.
   ====================================================================== */

/* ---------- wspólne (prefiks h0-) ---------- */
.h0{font-family:"DM Sans",system-ui,sans-serif;color:#0F172A}
.h0 *{box-sizing:border-box}
.h0 h2,.h0 h3{font-family:"Bricolage Grotesque","DM Sans",sans-serif}
.h0 .sec-sub{color:#475569;font-size:17px;line-height:1.55;max-width:720px;margin:10px 0 0}
.h0 .btn-link{display:inline-block;font-weight:700;font-size:14.5px;color:#2563EB;text-decoration:none}

/* ---------- S1: JAK TO DZIAŁA (#jak-dziala) ---------- */
#jak-dziala{background:linear-gradient(180deg,#E2E8F0 0%,#EAEFF5 100%);border-top:1px solid #D5DCE6}
.h0-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:26px}
.h0-tab{position:relative;background:#fff;border:1px solid #D5DCE6;border-radius:12px;padding:12px 14px 14px;cursor:pointer;display:flex;gap:10px;align-items:center;overflow:hidden;transition:border-color .15s,background .15s}
.h0-tab:hover{border-color:#CBD5E1}
.h0-tab:focus-visible{outline:2px solid #2563EB;outline-offset:2px}
.h0-tab .n{width:26px;height:26px;border-radius:50%;background:#F1F5F9;color:#475569;font-size:12.5px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.h0-tab .t{font-size:13.5px;font-weight:700;color:#334155;line-height:1.25}
.h0-tab.on{border-color:#2563EB;background:#EFF6FF}
.h0-tab.on .n{background:#2563EB;color:#fff}
.h0-tab.on .t{color:#0F172A}
.h0-tab .bar{position:absolute;left:0;bottom:0;height:3px;width:0;background:#2563EB}
.h0-show{display:grid;grid-template-columns:1.6fr 1fr;gap:22px;margin-top:16px;align-items:stretch}
.h0-vid{position:relative;background:#0B1326;border-radius:12px;aspect-ratio:16/9;overflow:hidden}
.h0-vid .k2{display:none}
.h0-vid .k2.is-on{display:block}
.h0-info{background:#fff;border:1px solid #D5DCE6;border-radius:16px;padding:24px;display:flex;flex-direction:column;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.h0-info .k{font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#2563EB}
.h0-info h3{font-size:22px;margin:8px 0 10px;line-height:1.2;min-height:56px}
.h0-info p{font-size:15px;line-height:1.55;color:#475569;margin:0;min-height:138px}
.h0-info .nav{margin-top:auto;display:flex;justify-content:flex-end;align-items:center;padding-top:18px}
.h0-info .nav .arr{display:flex;gap:8px}
.h0-info .nav button{width:38px;height:38px;border-radius:50%;border:1.5px solid #0F172A;background:#fff;font-size:18px;cursor:pointer;line-height:1}

/* ---------- S2: WDROŻENIA (#wdrozenia) ---------- */
#wdrozenia{background:#fff}
.h0-wdf .head{display:grid;grid-template-columns:1fr auto;align-items:end;gap:24px}
.h0-wdf .head a{color:#2563EB;font-weight:700;font-size:14.5px;text-decoration:none;white-space:nowrap;padding-bottom:6px}
.h0-wdf .sec-sub{margin-top:8px}
.h0-cf{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:44px}
.h0-cf a{display:flex;flex-direction:column;background:#E6EBF2;border:1px solid #D5DCE6;border-radius:18px;overflow:hidden;text-decoration:none;color:#0F172A;box-shadow:0 10px 30px rgba(15,23,42,.08);transition:transform .15s,box-shadow .15s}
.h0-cf a:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(15,23,42,.14)}
.h0-cf .pic{position:relative;aspect-ratio:495/320;background:#E6EBF2;overflow:hidden}
.h0-cf .pic img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.h0-cf a:hover .pic img{transform:scale(1.06)}
.h0-cf .pic::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(230,235,242,0) 55%,rgba(230,235,242,.35) 80%,rgba(230,235,242,.95) 100%);z-index:1}
.h0-cf .pic .logo{position:absolute;left:14px;bottom:14px;height:34px;width:auto;background:#fff;padding:6px 10px;border-radius:8px;filter:grayscale(1);box-shadow:0 4px 12px rgba(15,23,42,.18);z-index:2}
.h0-cf .pic .tag{position:absolute;right:14px;top:14px;background:rgba(15,23,42,.72);color:#fff;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;padding:5px 9px;border-radius:999px;z-index:2}
.h0-cf .body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1;background:linear-gradient(180deg,#E6EBF2 0%,#EDF1F6 100%)}
.h0-cf .big{font-family:"Bricolage Grotesque","DM Sans",sans-serif;font-size:44px;font-weight:800;letter-spacing:-.03em;line-height:1;color:#0F172A}
.h0-cf .lab{font-size:14px;color:#475569;margin:8px 0 14px;line-height:1.45}
.h0-cf .ttl{font-size:16px;font-weight:700;line-height:1.35;color:#0F172A;margin-bottom:18px}
.h0-cf .more{margin-top:auto;font-size:13px;font-weight:700;color:#2563EB}
.h0-cf .more::after{content:" →"}

/* ---------- S3: WIĘCEJ NIŻ OBIEG (#wiecej) ---------- */
#wiecej{background:#F8FAFC}
.h0-mg{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:32px}
.h0-mg a{display:flex;flex-direction:column;background:#fff;border:1px solid #E2E8F0;border-radius:16px;padding:22px 20px;text-decoration:none;color:#0F172A;transition:border-color .15s}
.h0-mg a:hover{border-color:#2563EB}
.h0-mg .ic{width:40px;height:40px;border-radius:10px;background:#EFF6FF;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.h0-mg .ic svg{width:20px;height:20px;stroke:#2563EB;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.h0-mg h3{font-size:16px;margin:0 0 8px;line-height:1.3}
.h0-mg p{font-size:13.5px;line-height:1.5;color:#475569;margin:0 0 16px}
.h0-mg .more{margin-top:auto;font-size:14px;font-weight:700;color:#2563EB}
.h0-mg .more::after{content:" →"}

/* ---------- S4: BLOG — karuzela + newsletter ---------- */
#blog{background:#fff;border-top:1px solid #E2E8F0}
.h0-bc{position:relative;margin-top:30px;border:1px solid #E2E8F0;border-radius:18px;overflow:hidden;background:#fff}
.h0-bc .track{display:flex;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.h0-bc .slide{flex:0 0 100%;display:grid;grid-template-columns:1.05fr 1fr;min-height:360px}
.h0-bc .slide img{width:100%;height:100%;object-fit:cover;display:block}
.h0-bc .txt{padding:36px 40px;display:flex;flex-direction:column}
.h0-bc .meta{font-size:13px;color:#64748B;margin-bottom:12px}
.h0-bc h3{font-size:26px;line-height:1.2;margin:0 0 12px}
.h0-bc h3 a{color:#0F172A;text-decoration:none}
.h0-bc p{font-size:15px;line-height:1.55;color:#475569;margin:0 0 22px}
.h0-bc .go{margin-top:auto;font-weight:700;color:#2563EB;text-decoration:none;font-size:14.5px}
.h0-bc .go::after{content:" →"}
.h0-bc .ctl{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:18px;padding:14px 20px;border-top:1px solid #E2E8F0;background:#F8FAFC}
.h0-bc .ctl .dots{justify-self:center}
.h0-bc .ctl .all{font-weight:700;font-size:14px;color:#2563EB;text-decoration:none;white-space:nowrap;padding:8px 12px;border-radius:8px}
.h0-bc .ctl .all::after{content:" →"}
.h0-bc .ctl .all:hover{background:#EFF6FF}
.h0-bc .dots{display:flex;gap:8px}
.h0-bc .dots i{width:8px;height:8px;border-radius:50%;background:#CBD5E1;cursor:pointer;transition:width .2s}
.h0-bc .dots i.on{background:#2563EB;width:22px;border-radius:4px}
.h0-bc .arr button{width:36px;height:36px;border-radius:50%;border:1.5px solid #0F172A;background:#fff;font-size:18px;cursor:pointer;margin-left:8px;line-height:1}
.h0-bc .cnt{font-size:13px;color:#64748B}
/* Newsletter — jasna karta, wszystko wyśrodkowane w kolumnie */
.h0-news{margin-top:44px;background:#EFF6FF;border:1px solid #BFDBFE;border-radius:16px;padding:36px 32px;color:#0F172A;display:grid;grid-template-columns:1fr;justify-items:center;text-align:center;gap:0}
.h0-news h3{font-size:22px;margin:0 0 6px;color:#0F172A}
.h0-news p{font-size:15px;color:#475569;margin:0 0 20px}
.h0-news-right{display:flex;flex-direction:column;align-items:center;gap:10px;width:auto;max-width:560px}
.h0-news form{display:flex;gap:8px;flex-wrap:nowrap;margin:0;width:520px;max-width:100%}
.h0-news input[type=email]{flex:1;min-width:0;height:48px;padding:0 16px;border-radius:10px;border:1px solid #CBD5E1;background:#fff;color:#0F172A;font-size:15px}
.h0-news input[type=email]::placeholder{color:#94A3B8}
.h0-news input[type=email]:focus{outline:2px solid #2563EB;outline-offset:1px;border-color:transparent}
.h0-news button{height:48px;padding:0 22px;border-radius:10px;border:0;background:#2563EB;color:#fff;font-weight:700;font-size:15px;cursor:pointer;white-space:nowrap}
.h0-news button:hover{background:#1D4ED8}
.h0-news input[name=website]{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.h0-news p.h0-news-consent{font-size:12.5px;color:#64748B;line-height:1.4;margin:0;white-space:nowrap}
.h0-news-consent a{color:#475569;text-decoration:underline}
.h0-news p.h0-news-msg{margin:0;min-height:0;font-size:14px;font-weight:600}
.h0-news-msg:empty{display:none}
.h0-news-msg.ok{color:#16A34A}
.h0-news-msg.err{color:#DC2626}

/* ---------- responsywność ---------- */
@media(max-width:1100px){.h0-mg{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){
  .h0-tabs{grid-template-columns:repeat(3,1fr)}.h0-tab .t{font-size:12.5px}
  .h0-show{grid-template-columns:1fr}
  .h0-cf{grid-template-columns:1fr}.h0-wdf .head{grid-template-columns:1fr}
  .h0-bc .slide{grid-template-columns:1fr}.h0-bc .slide img{aspect-ratio:16/9;height:auto}.h0-bc .txt{padding:22px}.h0-bc h3{font-size:21px}
}
@media(max-width:640px){
  .h0-mg{grid-template-columns:1fr}
  .h0-tabs{grid-template-columns:repeat(2,1fr)}
  /* Etykieta na kafelku wdrożenia — bez skracania tekstu; nieco mniejszy font, by zmieścić dłuższe etykiety w jednej linii na 390 px */
  .h0-cf .pic .tag{font-size:10px;padding:4px 8px;letter-spacing:.6px}
  /* Serwal: na mobile ukrywamy środek etykiety — zostaje „Kruszywa · 6 lokalizacji"; na desktopie bez zmian */
  .h0-cf .tag .tag-sm{display:none}
  /* Pasek sterowania karuzeli bloga — mobile: cnt+dots+arr w 1 wierszu, "Wszystkie artykuły" wyśrodkowane w 2. */
  .h0-bc .ctl{grid-template-columns:auto 1fr auto;grid-template-areas:"cnt dots arr" "all all all";gap:10px;padding:12px 14px}
  .h0-bc .ctl .cnt{grid-area:cnt;white-space:nowrap;font-size:12px}
  .h0-bc .ctl .dots{grid-area:dots}
  .h0-bc .ctl .arr{grid-area:arr;display:flex;flex:none}
  .h0-bc .ctl .arr button{margin-left:6px}
  .h0-bc .ctl .all{grid-area:all;justify-self:center;width:100%;text-align:center;padding:8px 0 0;border-top:1px solid #E2E8F0}
}

/* Newsletter — mobile ≤ 600 px: oddech między elementami + większy input/button + consent bez nowrap */
@media (max-width: 600px){
  .h0-news{padding:28px 20px}
  .h0-news h3{font-size:20px;line-height:1.25;margin:0 0 8px}
  .h0-news p{font-size:15px;line-height:1.55;margin:0 0 18px}
  .h0-news-right{gap:14px;width:100%;max-width:none}
  .h0-news form{flex-wrap:wrap;width:100%;gap:10px}
  .h0-news input[type=email]{height:46px;font-size:16px}  /* 16px: iOS nie zoomuje przy focusie */
  .h0-news button{width:100%;height:46px;font-size:15px}
  .h0-news p.h0-news-consent{font-size:13px;line-height:1.5;white-space:normal;padding:0 4px}
  .h0-news p.h0-news-msg{font-size:14px;line-height:1.45;margin-top:2px}
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce){
  .h0-bc .track{transition:none}
  .h0-cf a,.h0-cf .pic img{transition:none}
  .h0-cf a:hover{transform:none;box-shadow:0 10px 30px rgba(15,23,42,.08)}
  .h0-cf a:hover .pic img{transform:none}
}

/* --- Audyt 2026-10-06: baner „Integracja z Comarch ERP Optima" pod animacją #jak-dziala --- */
.h0-opt{position:relative;isolation:isolate;overflow:hidden;margin-top:22px;border-radius:12px;background:#F5F9FF;border:1px solid #D6E4FF}
.h0-opt::before{content:"";position:absolute;inset:0;z-index:-2;background:radial-gradient(640px 280px at 95% 0%,rgba(59,130,246,.14) 0%,rgba(59,130,246,0) 60%)}
.h0-opt::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(rgba(37,99,235,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(37,99,235,.045) 1px,transparent 1px);background-size:96px 96px}
.h0-opt-main{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:30px 36px}
.h0-opt-eb{display:block;margin-bottom:8px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#2563EB}
.h0-opt-h{margin:0 0 8px;font-family:"Bricolage Grotesque","DM Sans",sans-serif;font-size:26px;line-height:1.2;font-weight:700;letter-spacing:-.01em;color:#0F172A}
.h0-opt-p{margin:0;font-size:16px;line-height:1.55;color:#475569}
.h0-opt-p strong{color:#0F172A;font-weight:700;white-space:nowrap}
.h0-opt-cta{flex:none;display:inline-flex;align-items:center;height:48px;padding:0 24px;border-radius:12px;background:#2563EB;color:#fff;font-size:15.5px;font-weight:700;text-decoration:none;box-shadow:0 10px 24px -12px rgba(37,99,235,.7)}
.h0-opt-cta:hover{background:#1D4ED8}
.h0-opt-note{margin:0;padding:10px 36px;border-top:1px solid #E3ECFB;background:rgba(255,255,255,.65);font-size:12px;line-height:1.45;color:#94A3B8}
@media (max-width:900px){
  .h0-opt-main{flex-direction:column;align-items:flex-start;gap:20px;padding:24px 20px}
  .h0-opt-h{font-size:22px}
  .h0-opt-cta{width:100%;justify-content:center}
  .h0-opt-note{padding:10px 20px}
}
