/**
 * Growth Bakers — strony /kontakt/ i /dziekujemy/.
 * Jezyk wizualny strony glownej (tokeny gb-tokens.css, komponenty gb-page.css).
 * W @layer components — spojnie z gb-page.css, ktory tez tam siedzi.
 */
@layer components {

  /* ============ KONTAKT (redesign: asymetryczny split, formularz-bohater) ============ */
  .kx {
    position: relative;
    overflow: clip;
    padding: clamp(48px, 6vw, 92px) var(--pad-x) clamp(56px, 6vw, 96px);
    background:
      radial-gradient(50% 40% at 88% 4%, color-mix(in oklab, var(--cyan) 28%, transparent), transparent 70%),
      radial-gradient(48% 42% at 2% 96%, color-mix(in oklab, var(--mint) 22%, transparent), transparent 72%);
  }
  .kx__grid {
    max-width: 1240px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.06fr;
    gap: clamp(32px, 5vw, 76px);
    align-items: stretch; /* panel formularza rowna sie z dolna linia lewej kolumny */
    position: relative; z-index: 1;
  }
  /* na mobile kolumny sa jedna pod druga — stretch nie ma sensu */
  @media (max-width: 960px) { .kx__grid { grid-template-columns: 1fr; gap: 40px; align-items: start; } }

  /* lewa kolumna: przekaz + os czasu */
  .kx__intro h1 {
    font-weight: 900; text-transform: uppercase;
    letter-spacing: -1.4px; line-height: 1.05;
    font-size: clamp(2rem, 1.5rem + 3vw, 3.5rem);
    max-width: 12em; margin-top: .1em;
  }
  .kx__intro .lead { max-width: 46ch; margin-top: 18px; }

  /* os czasu: pionowa linia laczy numery-wezly */
  .kx__flow { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; }
  .kx__flow li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; padding-bottom: 26px; }
  .kx__flow li:last-child { padding-bottom: 0; }
  .kx__flow li:not(:last-child)::before {
    content: ''; position: absolute;
    left: calc(clamp(44px, 4vw, 52px) / 2 - 1px); top: clamp(44px, 4vw, 52px); bottom: 0;
    width: 2px; background: var(--rule);
  }
  .kx__node {
    width: clamp(44px, 4vw, 52px); height: clamp(44px, 4vw, 52px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-hand); font-size: 1.25rem;
    color: var(--mint-text); background: var(--paper);
    border: 2px solid var(--rule);
    flex: 0 0 auto; position: relative; z-index: 1;
  }
  .kx__step { padding-top: 5px; }
  .kx__step b { display: block; font-weight: 800; font-size: 1.05rem; letter-spacing: -.2px; }
  .kx__step p { color: var(--fg-3); font-size: .94rem; line-height: 1.55; margin-top: 4px; max-width: 42ch; }

  .kx__direct { margin-top: clamp(24px, 3vw, 34px); font-size: .95rem; line-height: 1.6; color: var(--fg-3); max-width: 46ch; }
  .kx__direct a { color: var(--mint-text); font-weight: 700; text-decoration: none; border-bottom: 2px solid color-mix(in oklab, var(--mint-text) 35%, transparent); }
  .kx__direct a:hover { color: var(--purple); border-color: var(--purple); }

  /* prawa kolumna: formularz jako bohater */
  .kx__panel {
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 26px;
    padding: clamp(24px, 3vw, 40px);
    box-shadow: 0 34px 80px rgba(41, 41, 41, .12);
  }
  .kx__panel-top { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 2px solid var(--rule); }
  .kx__panel-eyebrow { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.8px; color: var(--mint-text); margin-bottom: 8px; }
  .kx__panel h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
  /* formularz bez wlasnej karty (bez karty-w-karcie) */
  .kx__panel .gbf { max-width: none; margin: 24px 0 0; background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }

  /* ============ DZIEKUJEMY ============ */
  .dz {
    position: relative;
    overflow: clip;
    text-align: center;
    padding: clamp(56px, 7vw, 104px) var(--pad-x) clamp(40px, 5vw, 64px);
    background:
      radial-gradient(60% 50% at 50% 0%, color-mix(in oklab, var(--mint) 34%, transparent), transparent 70%),
      radial-gradient(46% 40% at 50% 100%, color-mix(in oklab, var(--cyan) 30%, transparent), transparent 74%);
  }
  .dz__wrap { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
  .dz__mark {
    width: 96px; height: 96px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 18px 44px color-mix(in oklab, var(--mint-deep) 45%, transparent);
  }
  .dz__check { stroke-dasharray: 48; stroke-dashoffset: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .dz__check { animation: dz-draw .6s .15s ease both; stroke-dashoffset: 48; }
  }
  @keyframes dz-draw { to { stroke-dashoffset: 0; } }
  .dz h1 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1.2px;
    line-height: 1.08;
    font-size: clamp(1.8rem, 1.4rem + 2.4vw, 3.1rem);
    margin-top: .1em;
  }
  .dz .lead { margin: 20px auto 0; max-width: 600px; }
  .dz__cta { margin-top: 30px; }

  /* w miedzyczasie — karty */
  .dz-more__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
  }
  @media (max-width: 820px) { .dz-more__grid { grid-template-columns: 1fr; } }
  .dz-card {
    display: block;
    background: var(--paper);
    border: 2px solid var(--rule);
    border-radius: 20px;
    padding: 28px 26px;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--dur-2, .3s) ease, transform var(--dur-2, .3s) ease;
  }
  .dz-card:hover { border-color: var(--accent-text); transform: translateY(-6px); }
  .dz-card__num {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    color: var(--accent-text);
    line-height: 1;
    margin-bottom: 12px;
    transition: transform var(--dur-2, .3s) ease;
  }
  .dz-card:hover .dz-card__num { transform: translateX(6px); }
  .dz-card h3 { font-weight: 800; text-transform: uppercase; font-size: 1.08rem; margin-bottom: 8px; }
  .dz-card p { color: var(--fg-3); font-size: .93rem; line-height: 1.58; }
  .dz-more__direct { margin-top: 26px; font-size: .95rem; color: var(--fg-3); }
  .dz-more__direct a { color: var(--accent-text); font-weight: 700; }
  .dz-more__direct a:hover { color: var(--purple); }

}

/* Poza @layer: na stronach kontakt/dziekujemy tresc jest ZAWSZE widoczna —
   krotkie strony uzytkowe, reveal nie moze chowac panelu z mailem ani kart.
   Unlayered + !important bije scroll-driven opacity:0 z gb-motion.css. */
.gb-kontakt .rv,
.gb-dziekujemy .rv { opacity: 1 !important; transform: none !important; animation: none !important; }
