/* Strona glowna zagrosze.com (layout/home, PortalController::home): zdjecie monet w tle (img/home-bg*.webp, warstwa fixed - dziala tez
   na telefonach, gdzie background-attachment: fixed nie dziala), zawsze jasny motyw (<html data-theme="light">) - ciemny tekst na jasnym
   zdjeciu. Tokeny, .btn i .lang-switch z app.css; zero inline (CSP). */
body.home { background: var(--bg); position: relative; isolation: isolate; }
body.home::before, body.home::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.home::before { background: var(--bg) url("../img/home-bg.webp") center 45% / cover no-repeat; }
/* rozjasnienie pod haslem: tekst czytelny takze na jasniejszych odblaskach monet */
body.home::after { background: radial-gradient(ellipse 72rem 30rem at 50% 14%, rgba(255, 252, 244, .82), rgba(255, 252, 244, .32) 68%, rgba(255, 252, 244, .12)); }
@media (orientation: portrait) {
  body.home::before { background-image: url("../img/home-bg-portrait.webp"); background-position: center 60%; }
}

.home-top { width: 100%; max-width: 72rem; margin: 0 auto; padding: .7rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.home-brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; color: var(--fg); text-decoration: none; }
.home-brand:hover { color: var(--fg); }
.home-brand b { color: #7a4e00; font-weight: 800; }
.home-coin { width: 2.1rem; height: 2.1rem; flex: none; filter: drop-shadow(0 2px 3px rgba(122, 78, 0, .25)); }
.home-top .lang-switch { background: rgba(255, 252, 244, .78); border: 1px solid rgba(181, 131, 42, .22); border-radius: 10px; padding: .15rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.home-top .lang-switch a { color: #3e484c; }

.home-main { width: 100%; max-width: 72rem; margin: 0 auto; padding: .5rem 1rem 2rem; flex: 1; }
.home-hero { max-width: 48rem; margin: 7vh auto 2.75rem; text-align: center; }
.home-hero h1 { font-size: clamp(2.15rem, 6.2vw, 3.7rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 1.1rem; text-wrap: balance; }
.home-accent { display: block; color: #7a4e00; }
.home-hero .lead { max-width: 38rem; margin: 0 auto; color: #2a3438; font-size: clamp(1.05rem, 2.3vw, 1.22rem); text-wrap: pretty; }

.home-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); gap: 1.1rem; }
.home-tile { display: flex; flex-direction: column; min-width: 0; padding: 1.3rem 1.3rem 1.2rem; border: 1px solid rgba(181, 131, 42, .25); border-radius: var(--radius); background: rgba(255, 253, 248, .9); box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.home-tile.is-soon { background: rgba(255, 253, 248, .76); }
.home-tile-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.home-ic { width: 2.75rem; height: 2.75rem; flex: none; padding: .6rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-tile="programs"] .home-ic { background: #f8ecd0; color: #7a4e00; }
.is-soon .home-ic { background: #ece8df; color: #4f585c; }
.home-badge { display: inline-flex; align-items: center; min-height: 28px; padding: .1rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.home-badge.free { background: #dcefe2; color: #1b5a35; }
.home-badge.cheap { background: #f8e7bf; color: #6c4405; }
.home-badge.soon { background: #ebe6dc; color: #475055; }
.home-tile h2 { margin: .8rem 0 .1rem; font-size: 1.3rem; }
.home-sub { margin: 0 0 .55rem; color: var(--muted); font-size: .86rem; font-weight: 600; letter-spacing: .02em; overflow-wrap: anywhere; }
.home-tile p { margin: 0 0 .9rem; }
.home-tile .home-actions { margin: auto 0 0; padding-top: .2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.home-tile .home-soon { color: #475055; font-weight: 600; font-size: .95rem; min-height: 44px; align-items: center; }

.home-foot { padding: 1rem 1rem 1.75rem; text-align: center; color: #3e484c; }
.home-foot small { display: inline-block; padding: .3rem .8rem; border-radius: 12px; background: rgba(255, 252, 244, .72); }

@media (max-width: 40rem) {
  .home-brand { font-size: 1.05rem; }
  .home-hero { margin: 3vh auto 1.75rem; }
  .home-tile .home-actions .btn { flex: 1 1 auto; justify-content: center; }
}
