
  /* ===== Homepage: refined hero + grouped tool sections ===== */
  .home-hero {
    max-width: 860px;
    margin: 0 auto 46px;
    text-align: center;
  }
  .home-hero h1, .home-hero .xh1 {
    font-family: Manrope, system-ui, sans-serif;
    font-size: clamp(2.35rem, 5vw, 3.5rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.055em;
    margin: 0 0 12px;
  }
  .home-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.55;
  }

  .home-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
  }

  .home-section-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 2px 0 0;
    min-height: 24px;
  }
  .home-section-divider::before,
  .home-section-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: var(--border);
  }
  .home-section-divider span {
    flex: 0 0 auto;
    color: var(--muted);
    font-family: Manrope, system-ui, sans-serif;
    font-size: .9rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .12em;
    white-space: nowrap;
  }
  .home-section-divider-top {
    margin-bottom: 0;
  }
  .home-section-divider-convert {
    margin: 20px 0 0;
  }
  .home-section-divider-convert span {
    font-size: .9rem;
    letter-spacing: .12em;
    color: var(--muted);
  }

  .home-tiles .tile {
    min-width: 0;
  }
  /* ulubione: gwiazdka na kafelku, sekcja nad narzędziami, przycisk na stronie narzędzia */
  .home-tiles .tile { position: relative; }
  button.ghost.fav-star { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; padding: 0; border-radius: 50%;
    border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--muted);
    display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, border-color .15s; }
  button.ghost.fav-star svg, button.ghost.fav-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
  .tile:hover button.ghost.fav-star, button.ghost.fav-star:focus-visible, button.ghost.fav-star.on { opacity: 1; }
  button.ghost.fav-star:hover { color: #f5b301; border-color: #f5b301; }
  button.ghost.fav-star.on, button.ghost.fav-pill.on { color: #f5b301; }
  button.ghost.fav-star.on svg, button.ghost.fav-pill.on svg { fill: currentColor; }
  @media (hover: none) { button.ghost.fav-star { opacity: 1; } }
  .fav-div span::before { content: "★ "; color: #f5b301; }
  .fav-x ~ .home-section-divider-top:not(.fav-x) { margin-top: 20px; }
  .fav-mini .art .sm-ico { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; }
  .fav-mini .art .sm-ico svg { width: 46px; height: 46px; max-width: none; }
  .global-nav .in:has(.fav-pill) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  button.ghost.fav-pill { flex: 0 0 auto; margin-top: -4px; margin-bottom: -4px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--card); color: var(--muted); font: inherit; font-size: .86rem; font-weight: 600; line-height: 1.2; cursor: pointer; }
  button.ghost.fav-pill:hover { color: #f5b301; border-color: #f5b301; }
  button.ghost.fav-pill.on { border-color: color-mix(in srgb, #f5b301 55%, var(--border)); }
  .fav-pop { position: fixed; z-index: 1000; width: min(310px, calc(100vw - 32px)); padding: 16px; background: var(--card); color: var(--text);
    border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 36px rgba(0,0,0,.28); }
  .fav-pop strong { display: block; margin-bottom: 6px; }
  .fav-pop p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
  .fav-pop .row { display: flex; gap: 8px; }
  .fav-pop .row a { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; text-align: center; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--text); }
  .fav-pop .row a.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

  @media (max-width: 920px) {
    .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .home-hero { margin-bottom: 34px; }
    .home-hero h1, .home-hero .xh1 { font-size: 2.25rem; }
    .home-hero p { font-size: 1rem; }
    .home-tiles { grid-template-columns: 1fr; gap: 16px; }
    .home-section-divider { gap: 12px; margin-top: 4px; }
    .home-section-divider-convert { margin: 12px 0 0; }
    .home-section-divider span { font-size: .76rem; }
    .home-section-divider-convert span { font-size: .76rem; }
  }
