/* ==========================================================================
   AIUP! Automation (aiup-automation.html, przebudowa 2026-11-26) - prefiks aa-.
   Układ: hero -> spis 5 usług (ciemny) -> 5 scen pod sobą (jasna / ciemna na zmianę),
   każda z portfolio -> proces -> kto prowadzi -> formularz wyceny (ciemny).
   Logika: automation.js (formularz: setupWebhookForm w main.js). Zrzuty: zdjecia/portfolio/.
   Plik ładuje tylko aiup-automation.html, po pages.css.
   ========================================================================== */
.aa { --aa-pad: clamp(3.5rem, 8vw, 6.5rem); --aa-panel: #0C143F; --aa-node: #141D52; }

/* --- Hero --- */
.aa-hero { padding: calc(var(--nav-h) + 3rem) 0 3.5rem; }
.aa-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-top: 1.2rem;
}
.aa-hero h1 { margin: 0.6rem 0 0; font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.05; }
.aa-lead { margin: 1.3rem 0 1.6rem; max-width: 580px; color: var(--text-secondary); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.55; }
.aa-facts { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.aa-facts li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.6rem 0.95rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.aa-facts strong { font-weight: 900; font-size: 1.2rem; color: var(--blue); line-height: 1; }
.aa-facts span { font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); }
.aa-hero__photo {
  margin: 0;
  padding: 0.7rem 0.7rem 0.9rem;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
  rotate: 1.5deg;
  position: relative;
}
.aa-hero__photo::before, .aa-stage::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  width: 96px;
  height: 24px;
  translate: -50% 0;
  rotate: -3deg;
  background: rgba(var(--lime-rgb), 0.8);
}
.aa-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 4px; }
.aa-hero__photo figcaption, .aa-stage figcaption { margin-top: 0.7rem; text-align: center; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-secondary); }
.aa-hero__photo figcaption strong, .aa-stage figcaption strong { color: var(--ink); }
.aa-hero__photo--tall { max-width: 440px; justify-self: center; }
/* Mały schemat „Formularz -> Agent AI -> CRM” przypięty do zdjęcia: klocki zapalają się po kolei */
.aa-hero__flow { position: absolute; left: -1.7rem; bottom: 4.4rem; display: flex; align-items: center; padding: 0.5rem 0.6rem; border-radius: 14px; background: var(--ink); box-shadow: 0 16px 40px rgba(5, 9, 36, 0.35); rotate: -3deg; }
.aa-hero__flow span { padding: 0.36rem 0.6rem; border-radius: 9px; background: var(--aa-node); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-weight: 800; font-size: 0.74rem; line-height: 1; white-space: nowrap; animation: aa-chip 4.5s infinite; }
.aa-hero__flow span:nth-of-type(2) { animation-delay: 1.5s; }
.aa-hero__flow span:nth-of-type(3) { animation-delay: 3s; }
.aa-hero__flow i { width: 16px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0 4px, transparent 4px 8px); }
@keyframes aa-chip { 0%, 29% { background: var(--lime); border-color: var(--lime); color: var(--ink); } 34%, 100% { background: var(--aa-node); border-color: rgba(255, 255, 255, 0.22); color: #fff; } }
.aa-hero__photo--tall img { aspect-ratio: 4 / 5; object-position: 50% 40%; }

/* --- Wspólne drobiazgi --- */
.aa-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.aa-hl {
  color: var(--ink);
  background: linear-gradient(transparent 14%, var(--lime) 14%, var(--lime) 92%, transparent 92%);
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.aa-sub {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.aa-sub::before { content: ''; flex: none; width: 22px; height: 2px; background: currentColor; }
.aa-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.95rem; }
.aa-list li { position: relative; padding-left: 2.15rem; color: var(--text-secondary); line-height: 1.5; }
.aa-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 6px;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23050924' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.aa-list strong { display: block; color: var(--ink); font-weight: 800; }
.aa-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  margin: 0 0 1.6rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--ink);
}
.aa-note__tag { padding: 0.32rem 0.55rem; border-radius: 6px; background: var(--lime); color: var(--ink); font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.aa-note p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.aa-note strong { color: #fff; }
.aa a:focus-visible, .aa button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* --- Spis usług (ciemny pas z pięcioma kaflami) --- */
.aa-index, .aa-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}
.aa-index { scroll-margin-top: calc(var(--nav-h) - 10px); }
.aa-index::before, .aa-contact::before, .aa-scene--ink::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 75% at 100% 0%, rgba(var(--blue-rgb), 0.42), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, var(--navy-glow), transparent 66%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0) 0 0 / 26px 26px;
}
.aa-index .aa-kicker, .aa-contact .aa-kicker, .aa-scene--ink .aa-kicker, .aa-scene--play .aa-kicker { color: var(--lime); }
.aa-index .aa-hl, .aa-contact .aa-hl, .aa-scene--ink .aa-hl, .aa-scene--play .aa-hl { background: none; padding: 0; color: var(--lime); }
.aa-index__head { max-width: 760px; margin-bottom: 2.2rem; }
.aa-index h2 { margin: 0.6rem 0 0.8rem; font-size: clamp(2rem, 4.6vw, 3.4rem); color: #fff; }
.aa-index__head p { margin: 0; font-size: 1.08rem; color: rgba(255, 255, 255, 0.74); }
.aa-index__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.aa-index__list li { display: flex; }
.aa-index__list a {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 232px;
  padding: 1.2rem 1.15rem 1.3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.aa-index__no { font-weight: 900; font-size: clamp(2.6rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--lime); transition: color 0.25s; }
.aa-index__list strong { margin-top: auto; font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.aa-index__sub { font-size: 0.86rem; line-height: 1.4; color: rgba(255, 255, 255, 0.68); transition: color 0.25s; }
.aa-index__list i {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-style: normal;
  font-weight: 800;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.aa-index__list a:hover, .aa-index__list a:focus-visible { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: translateY(-6px); }
.aa-index__list a:hover .aa-index__no, .aa-index__list a:focus-visible .aa-index__no { color: var(--ink); }
.aa-index__list a:hover .aa-index__sub, .aa-index__list a:focus-visible .aa-index__sub { color: rgba(5, 9, 36, 0.74); }
.aa-index__list a:hover i, .aa-index__list a:focus-visible i { background: var(--ink); border-color: var(--ink); color: var(--lime); transform: translateY(4px); }
.aa-index a:focus-visible, .aa-contact a:focus-visible, .aa-scene--ink a:focus-visible, .aa-scene--ink button:focus-visible, .aa-scene--play a:focus-visible { outline-color: var(--lime); }

/* --- Pasek usług: przykleja się pod menu, gdy przewijasz sceny --- */
.aa-scenes { position: relative; }
.aa-bar { position: sticky; top: calc(var(--nav-h) + 20px); z-index: 900; height: 0; display: flex; justify-content: center; pointer-events: none; }
.aa-bar__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  height: 46px;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(5, 9, 36, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 34px rgba(5, 9, 36, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.aa-bar.is-on .aa-bar__inner { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.aa-bar a { display: inline-flex; align-items: center; height: 100%; padding: 0 0.7rem; border-radius: 999px; color: rgba(255, 255, 255, 0.72); font-weight: 800; font-size: 0.84rem; text-decoration: none; white-space: nowrap; transition: background-color 0.25s, color 0.25s; }
.aa-bar a b { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; }
.aa-bar a span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width 0.35s var(--ease), opacity 0.25s, margin 0.35s; }
.aa-bar a:hover { color: #fff; }
.aa-bar a.is-active { background: #fff; color: var(--ink); }
.aa-bar a.is-active span { max-width: 11em; margin-left: 0.45rem; opacity: 1; }
.aa-bar a.aa-bar__cta { margin-left: 0.25rem; background: var(--lime); color: var(--ink); }

/* --- Sceny: wspólna rama --- */
.aa-scene { position: relative; isolation: isolate; overflow: hidden; padding: var(--aa-pad) 0; scroll-margin-top: calc(var(--nav-h) - 6px); }
.aa-scene--paper { background: #fff; }
.aa-scene--light { background: linear-gradient(180deg, #EEF2FF 0%, #F4F6FF 100%); }
.aa-scene--ink { background: var(--ink); color: #fff; }
.aa-scene--play { background: radial-gradient(120% 90% at 85% 0%, #2148E0 0%, var(--cobalt-deep) 40%, #06103F 100%); color: #fff; }
.aa-scene--play::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 46% at 6% 100%, rgba(var(--lime-rgb), 0.2), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0) 0 0 / 26px 26px;
}
.aa-scene__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: start; margin-bottom: clamp(2rem, 4.5vw, 3.2rem); }
.aa-scene__no {
  font-weight: 900;
  font-size: clamp(5.6rem, 13vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--blue);
  user-select: none;
}
.aa-scene--ink .aa-scene__no, .aa-scene--play .aa-scene__no { -webkit-text-stroke-color: var(--lime); }
.aa-scene__title h2 { margin: 0.55rem 0 0.9rem; max-width: 820px; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.aa-scene__lead { margin: 0; max-width: 720px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; }
.aa-scene--ink h2, .aa-scene--ink h4, .aa-scene--play h2, .aa-scene--play h4 { color: #fff; }
.aa-scene--ink .aa-scene__lead, .aa-scene--play .aa-scene__lead { color: rgba(255, 255, 255, 0.76); }
.aa-scene--ink .aa-sub, .aa-scene--play .aa-sub { color: rgba(255, 255, 255, 0.62); }
.aa-scene__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.aa-scene__grid--flip .aa-scene__show { order: -1; }
.aa-scene .btn-group { margin: 0; }

/* Przyciski na ciemnym tle: limonka */
.aa-index .btn-primary, .aa-scene--ink .btn-primary, .aa-scene--play .btn-primary { background: var(--lime); color: var(--ink); }
.aa-index .btn-primary:hover, .aa-scene--ink .btn-primary:hover, .aa-scene--play .btn-primary:hover { background: var(--lime); color: var(--ink); box-shadow: 0 10px 30px -8px rgba(var(--lime-rgb), 0.7); }
.aa-scene--ink .btn-ghost, .aa-scene--play .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.aa-scene--ink .btn-ghost:hover, .aa-scene--play .btn-ghost:hover { background: transparent; color: var(--lime); border-color: var(--lime); }

/* --- 01: okno przeglądarki z zakładkami i przewijanym zrzutem --- */
.aa-browser__tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.aa-browser__tabs button {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.aa-browser__tabs button:hover { border-color: var(--blue); color: var(--blue); }
.aa-browser__tabs button.is-active { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.aa-browser__frame {
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--ink);
  transform: perspective(1500px) rotateY(-5deg) rotateX(2deg);
  transform-origin: 60% 50%;
  transition: transform 0.6s var(--ease);
}
.aa-browser:hover .aa-browser__frame, .aa-browser:focus-within .aa-browser__frame { transform: none; }
.aa-browser__chrome { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; }
.aa-browser__dots { display: flex; gap: 5px; flex: none; }
.aa-browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.26); }
.aa-browser__dots i:first-child { background: var(--lime); }
.aa-browser__url { flex: 1; min-width: 0; padding: 0.4rem 0.7rem; border-radius: 8px; background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.82); font-family: var(--font-mono); font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-browser__open { flex: none; padding: 0.45rem 0.7rem; border-radius: 8px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 0.78rem; line-height: 1; text-decoration: none; }
.aa-browser__view { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #fff; }
.aa-browser__pane { position: absolute; inset: 0; }
.aa-browser__pane[hidden] { display: none; }
.aa-browser__pane img { display: block; width: 100%; height: auto; }
.aa-browser__pane.is-active img { animation: aa-pan var(--aa-pan-dur, 26s) cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
.aa-browser.is-paused img, .aa-browser__view:hover img { animation-play-state: paused; }
@keyframes aa-pan {
  0%, 7% { transform: translateY(0); }
  93%, 100% { transform: translateY(var(--aa-pan, -55%)); }
}
.aa-browser__cap { margin: 0.9rem 0 0; min-height: 2.9em; font-size: 0.93rem; line-height: 1.45; color: var(--text-secondary); }
.aa-sub--label { margin-bottom: 0.8rem; }

/* Efekty pod oknem: mapa i mini gra */
.aa-fx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 4.5vw, 3.2rem); }
.aa-fx__card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
  border-radius: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.aa-fx__card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 18px 44px rgba(30, 50, 150, 0.16); }
.aa-fx__card img { display: block; width: 100%; height: 168px; object-fit: cover; object-position: 50% 12%; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.aa-fx__card--game img { object-position: 50% 78%; }
.aa-fx__body { display: grid; gap: 0.35rem; }
.aa-fx__body strong { font-weight: 900; font-size: 1.15rem; line-height: 1.2; color: var(--ink); }
.aa-fx__body > span:not(.aa-kicker):not(.aa-fx__go) { font-size: 0.93rem; line-height: 1.45; color: var(--text-secondary); }
.aa-fx__go { margin-top: 0.3rem; font-weight: 800; color: var(--blue); }

/* --- 02: obszary, dema „spróbuj sam”, schemat automatyzacji --- */
.aa-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.aa-area { padding: 1.25rem 1.3rem; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.13); transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s; }
.aa-area:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.08); border-color: rgba(var(--lime-rgb), 0.6); }
.aa-area > summary { list-style: none; pointer-events: none; }
.aa-area > summary::-webkit-details-marker { display: none; }
.aa-area h4 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 1.2rem; font-weight: 900; }
.aa-area h4::before { content: ''; flex: none; width: 0.7rem; height: 0.7rem; border-radius: 3px; background: var(--lime); }
.aa-area ul { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.aa-area li { position: relative; padding-left: 1rem; font-size: 0.93rem; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }
.aa-area li::before { content: ''; position: absolute; left: 0; top: 0.58em; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }

.aa-try { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.aa-try__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 1.3rem;
  align-items: center;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.aa-try__card--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.4fr); gap: clamp(1.4rem, 3vw, 2.6rem); }
.aa-try__text h4 { margin: 0.5rem 0 0.6rem; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 900; line-height: 1.15; }
.aa-try__text p { margin: 0 0 1rem; font-size: 0.96rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.aa-try__text p.aa-try__aside { padding-left: 0.8rem; border-left: 2px solid var(--lime); font-size: 0.86rem; color: rgba(255, 255, 255, 0.64); }

.aa-flow {
  padding: 1rem 1rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--aa-panel) radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0) 0 0 / 20px 20px;
}
.aa-flow__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.aa-flow__live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--lime); }
.aa-flow__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: aa-ping 1.8s ease-out infinite; }
@keyframes aa-ping { 0% { box-shadow: 0 0 0 0 rgba(var(--lime-rgb), 0.7); } 100% { box-shadow: 0 0 0 9px rgba(var(--lime-rgb), 0); } }
.aa-flow__nodes { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.3rem; }
.aa-flow__nodes::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 6px, transparent 6px 12px);
}
.aa-flow__nodes::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(100% / 12 - 6px);
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px 3px rgba(var(--lime-rgb), 0.7);
  animation: aa-flow-dot 7.2s linear infinite;
}
@keyframes aa-flow-dot {
  0% { left: calc(100% / 12 - 6px); opacity: 0; }
  3% { opacity: 1; }
  80% { left: calc(100% * 11 / 12 - 6px); opacity: 1; }
  86%, 100% { left: calc(100% * 11 / 12 - 6px); opacity: 0; }
}
.aa-flow__nodes li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-align: center; }
.aa-flow__ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-content: center;
  border-radius: 16px;
  background: var(--aa-node);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  animation: aa-node 7.2s linear infinite;
  animation-delay: calc(var(--i) * 1.152s);
}
.aa-flow__ico svg, .aa-node__logo svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes aa-node {
  0% { background: var(--aa-node); border-color: rgba(255, 255, 255, 0.24); color: #fff; transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--lime-rgb), 0); }
  3% { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: scale(1.12); box-shadow: 0 0 0 9px rgba(var(--lime-rgb), 0.2); }
  17% { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--lime-rgb), 0); }
  26%, 100% { background: var(--aa-node); border-color: rgba(255, 255, 255, 0.24); color: #fff; transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--lime-rgb), 0); }
}
.aa-flow__nodes strong { margin-top: 0.4rem; font-size: 0.86rem; font-weight: 800; line-height: 1.2; color: #fff; }
.aa-flow__nodes small { font-family: var(--font-mono); font-size: 0.64rem; line-height: 1.3; color: rgba(255, 255, 255, 0.58); }

/* Przykładowa rozmowa z chatbotem */
.aa-chat { display: grid; align-content: start; gap: 0.5rem; min-height: 262px; padding: 0.9rem; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.aa-chat__head { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.2rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.aa-chat__head i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.aa-chat__msg { margin: 0; max-width: 88%; padding: 0.55rem 0.75rem; border-radius: 14px; font-size: 0.84rem; line-height: 1.38; opacity: 0; animation: 12s infinite both; }
.aa-chat__msg--user { justify-self: end; border-bottom-right-radius: 4px; background: var(--blue); color: #fff; }
.aa-chat__msg--bot { justify-self: start; border-bottom-left-radius: 4px; background: var(--bg-alt); color: var(--ink); }
.aa-chat__msg:nth-of-type(1) { animation-name: aa-msg-1; }
.aa-chat__msg:nth-of-type(2) { animation-name: aa-msg-2; }
.aa-chat__msg:nth-of-type(3) { animation-name: aa-msg-3; }
.aa-chat__msg:nth-of-type(4) { animation-name: aa-msg-4; }
@keyframes aa-msg-1 { 0%, 2% { opacity: 0; transform: translateY(8px); } 6%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes aa-msg-2 { 0%, 16% { opacity: 0; transform: translateY(8px); } 20%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes aa-msg-3 { 0%, 34% { opacity: 0; transform: translateY(8px); } 38%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes aa-msg-4 { 0%, 48% { opacity: 0; transform: translateY(8px); } 52%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }

/* Film demo w karcie 3 (sam odtwarzacz .demo-film jest w pages.css) */
.aa-try__card .demo-film { justify-self: center; width: min(100%, 214px); }
.aa-try__card .demo-film__play { padding-bottom: 0.5rem; }
.aa-try__card .demo-film__pill { padding: 0.4rem 0.75rem 0.4rem 0.45rem; font-size: 0.78rem; }
.aa-try__card .demo-film__pill i { width: 20px; height: 20px; }

/* Linki „zobacz na żywo” */
.aa-live { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'text cta' 'links links'; gap: 1.1rem 2rem; align-items: center; padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.aa-live__text { grid-area: text; }
.aa-live__text .aa-sub { margin-bottom: 0.5rem; }
.aa-live__text p { margin: 0; color: rgba(255, 255, 255, 0.72); }
.aa-live > .btn { grid-area: cta; }
.aa-live__links { grid-area: links; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.aa-live__links a { display: inline-flex; padding: 0.62rem 0.95rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.26); color: #fff; font-weight: 700; font-size: 0.9rem; line-height: 1; text-decoration: none; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.aa-live__links a:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* --- 03: karta node'a InPost, schemat użycia, okno instalacji --- */
.aa-canvas { margin: 0 0 1.6rem; padding: 1rem; border-radius: 16px; background: var(--ink) radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0) 0 0 / 18px 18px; }
.aa-canvas__label { display: block; margin-bottom: 0.8rem; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.58); }
.aa-canvas__row { display: flex; align-items: center; }
.aa-canvas__node { flex: 1 1 0; min-width: 0; display: grid; gap: 0.15rem; padding: 0.6rem 0.7rem; border-radius: 12px; background: var(--aa-node); border: 1.5px solid rgba(255, 255, 255, 0.22); color: #fff; }
.aa-canvas__node b { font-weight: 800; font-size: 0.86rem; line-height: 1.2; }
.aa-canvas__node small { font-family: var(--font-mono); font-size: 0.62rem; line-height: 1.3; color: rgba(255, 255, 255, 0.62); }
.aa-canvas__node--main { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.aa-canvas__node--main small { color: rgba(5, 9, 36, 0.72); }
.aa-canvas__wire { flex: 0 0 clamp(12px, 3vw, 30px); height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0 5px, transparent 5px 10px); animation: aa-wire 0.7s linear infinite; }
@keyframes aa-wire { to { background-position: 10px 0; } }

.aa-node { padding: clamp(1.2rem, 2.4vw, 1.8rem); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.aa-node__head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem 0.9rem; margin-bottom: 1rem; }
.aa-node__logo { flex: none; width: 54px; height: 54px; display: grid; place-content: center; border-radius: 14px; background: var(--ink); color: var(--lime); }
.aa-node__logo svg { width: 28px; height: 28px; }
.aa-node__name { flex: 1 1 auto; min-width: 11.5rem; display: grid; }
.aa-node__name strong { font-size: 1.5rem; font-weight: 900; line-height: 1.1; color: var(--ink); }
.aa-node__name code, .aa-term code { font-family: var(--font-mono); overflow-wrap: anywhere; }
.aa-node__name code { font-size: 0.78rem; color: var(--text-muted); }
.aa-node__badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.42rem 0.75rem; border-radius: 999px; background: rgba(var(--lime-rgb), 0.38); border: 1.5px solid var(--lime-deep); color: var(--ink); font-weight: 800; font-size: 0.78rem; line-height: 1; }
.aa-node__badge::before { content: ''; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%23E1FF01' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.aa-node__desc { margin: 0 0 1rem; color: var(--text-secondary); }
.aa-node__ops { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.5rem; }
.aa-node__ops li { position: relative; padding-left: 1.4rem; font-size: 0.9rem; line-height: 1.4; color: var(--ink); }
.aa-node__ops li::before { content: ''; position: absolute; left: 0; top: 0.3em; width: 0.85rem; height: 0.5rem; border-left: 2.2px solid var(--blue); border-bottom: 2.2px solid var(--blue); rotate: -45deg; transform-origin: center; }
.aa-node__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1.1rem; }
.aa-node__stats div { padding: 0.8rem 0.5rem; text-align: center; border-radius: 14px; background: var(--bg-primary); border: 1px solid var(--line); }
.aa-node__stats dt { font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--ink); }
.aa-node__stats dd { margin: 0.3rem 0 0; font-size: 0.78rem; color: var(--text-muted); }
.aa-term { display: grid; gap: 0.5rem; margin-bottom: 1.1rem; padding: 0.9rem 1rem; border-radius: 14px; background: var(--ink); }
.aa-term__path { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.58); }
.aa-term__row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.aa-term code { font-size: 0.95rem; font-weight: 600; color: var(--lime); }
.aa-term code::after { content: ''; display: inline-block; width: 0.5em; height: 1em; margin-left: 0.2em; vertical-align: -0.15em; background: var(--lime); animation: aa-blink 1.1s steps(1) infinite; }
@keyframes aa-blink { 50% { opacity: 0; } }
.aa-term__copy { flex: none; padding: 0.48rem 0.7rem; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, 0.32); background: transparent; color: #fff; font-family: inherit; font-weight: 700; font-size: 0.74rem; line-height: 1; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.aa-term__copy:hover { border-color: var(--lime); color: var(--lime); }
.aa-term__copy.is-done { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.aa-term__hint { font-size: 0.84rem; line-height: 1.45; color: rgba(255, 255, 255, 0.74); }
.aa-node__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.aa-node__links a { font-weight: 800; color: var(--blue); text-decoration: none; }
.aa-node__links a:hover { text-decoration: underline; }

/* --- 04: gry --- */
.aa-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.aa-game { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: rgba(5, 9, 36, 0.5); border: 1px solid rgba(255, 255, 255, 0.17); transition: transform 0.3s var(--ease), border-color 0.3s; }
.aa-game:hover { transform: translateY(-6px); border-color: rgba(var(--lime-rgb), 0.75); }
.aa-game__stage { position: relative; aspect-ratio: 1 / 0.82; display: grid; place-items: center; overflow: hidden; background: radial-gradient(80% 80% at 50% 30%, rgba(255, 255, 255, 0.16), transparent 70%), #0A1450; }
.aa-game--shot { grid-column: span 2; flex-direction: row; }
.aa-game--shot .aa-game__stage { flex: 0 0 44%; aspect-ratio: auto; min-height: 330px; padding: 1.1rem; background: linear-gradient(160deg, #FFE3EB 0%, #FFB9CC 100%); }
.aa-game--shot .aa-game__stage img { display: block; width: auto; max-width: 100%; height: auto; max-height: 440px; border-radius: 16px; box-shadow: 0 18px 40px rgba(120, 20, 60, 0.28); }
.aa-game__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.2rem 1.25rem 1.4rem; }
.aa-game__body h4 { margin: 0; font-size: 1.3rem; font-weight: 900; line-height: 1.15; }
.aa-game__body p { margin: 0; font-size: 0.94rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.aa-game__body .btn { margin-top: auto; }
.aa-game--shot .aa-game__body { justify-content: center; gap: 0.7rem; padding: clamp(1.2rem, 2.4vw, 1.8rem); }
.aa-game--shot .aa-game__body h4 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.aa-game--shot .aa-game__body .btn { margin-top: 0.4rem; }
.aa-game__chip { position: absolute; left: 0.8rem; bottom: 0.8rem; padding: 0.3rem 0.5rem; border-radius: 6px; background: rgba(5, 9, 36, 0.72); border: 1px solid rgba(var(--lime-rgb), 0.45); color: var(--lime); font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.aa-tags { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.aa-tags li { padding: 0.25rem 0.5rem; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.26); font-family: var(--font-mono); font-size: 0.64rem; color: rgba(255, 255, 255, 0.82); }
.aa-game--idea { grid-column: 1 / -1; background: var(--lime); border-color: var(--lime); }
.aa-game--idea:hover { border-color: var(--lime); }
.aa-game--idea .aa-game__body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem; padding: clamp(1.2rem, 2.6vw, 1.8rem) clamp(1.25rem, 3vw, 2.2rem); }
.aa-scene--play .aa-game--idea .aa-kicker { flex-basis: 100%; color: var(--ink); }
.aa-scene--play .aa-game--idea h4 { color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.aa-game--idea p { flex: 1 1 320px; color: rgba(5, 9, 36, 0.82); font-size: 1.02rem; }
.aa-scene--play .aa-game--idea .btn-primary { margin: 0; background: var(--ink); color: var(--lime); }
.aa-scene--play .aa-game--idea .btn-primary:hover { background: var(--ink); color: var(--lime); box-shadow: 0 10px 30px -8px rgba(5, 9, 36, 0.6); }

/* Tańcząca sylwetka (gra taneczna) */
.aa-dance { width: 70%; max-width: 210px; height: auto; overflow: visible; }
.aa-dance path { fill: none; stroke: var(--lime); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.aa-dance circle { fill: var(--lime); }
.aa-dance circle.aa-dance__head { fill: none; stroke: var(--lime); stroke-width: 3.5; }
.aa-dance path.aa-dance__frame { stroke: rgba(255, 255, 255, 0.55); stroke-width: 2.5; }
.aa-dance__body { animation: aa-bob 0.9s ease-in-out infinite alternate; }
.aa-dance__arm--l { transform-origin: 74px 72px; animation: aa-arm-l 0.9s ease-in-out infinite alternate; }
.aa-dance__arm--r { transform-origin: 126px 72px; animation: aa-arm-r 0.9s ease-in-out infinite alternate; }
.aa-dance__leg--l { transform-origin: 86px 124px; animation: aa-leg-l 0.9s ease-in-out infinite alternate; }
.aa-dance__leg--r { transform-origin: 114px 124px; animation: aa-leg-r 0.9s ease-in-out infinite alternate; }
@keyframes aa-bob { from { transform: translateY(0); } to { transform: translateY(6px); } }
@keyframes aa-arm-l { from { transform: rotate(-16deg); } to { transform: rotate(36deg); } }
@keyframes aa-arm-r { from { transform: rotate(24deg); } to { transform: rotate(-30deg); } }
@keyframes aa-leg-l { from { transform: rotate(7deg); } to { transform: rotate(-13deg); } }
@keyframes aa-leg-r { from { transform: rotate(-9deg); } to { transform: rotate(13deg); } }

/* Bramka (rzuty karne) */
.aa-goal { width: 86%; height: auto; overflow: visible; }
.aa-goal__net { fill: none; stroke: rgba(255, 255, 255, 0.24); stroke-width: 1.5; }
.aa-goal__post { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.aa-goal__grass { fill: none; stroke: rgba(255, 255, 255, 0.42); stroke-width: 2; stroke-dasharray: 4 6; }
.aa-goal__keeper { fill: none; stroke: rgba(255, 255, 255, 0.9); stroke-width: 4; stroke-linecap: round; transform-origin: 120px 142px; animation: aa-keeper 3.2s ease-in-out infinite; }
.aa-goal__keeper circle { fill: #fff; stroke: none; }
.aa-goal__ball { fill: var(--lime); transform-origin: 120px 164px; animation: aa-shot 3.2s cubic-bezier(0.3, 0.6, 0.4, 1) infinite; }
@keyframes aa-shot {
  0%, 24% { transform: translate(0, 0) scale(1); opacity: 1; }
  48%, 84% { transform: translate(62px, -112px) scale(0.62); opacity: 1; }
  94%, 100% { transform: translate(62px, -112px) scale(0.62); opacity: 0; }
}
@keyframes aa-keeper {
  0%, 24% { transform: translateX(0) rotate(0); }
  48%, 84% { transform: translateX(-46px) rotate(-20deg); }
  100% { transform: translateX(0) rotate(0); }
}

/* --- 05: zdjęcie ze sceny i lista wystąpień --- */
.aa-stage { position: relative; margin: 0.6rem 0 0; padding: 0.7rem 0.7rem 0.9rem; background: var(--paper); border-radius: 8px; box-shadow: var(--shadow-lift); rotate: 1.2deg; }
.aa-stage img { display: block; width: 100%; height: auto; border-radius: 4px; }
.aa-scene__grid + .aa-sub { margin-top: clamp(2.2rem, 5vw, 3.4rem); }
.aa-talks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.aa-talks a {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: 0.3rem 1.2rem;
  align-items: center;
  padding: 0.95rem 1.2rem;
  border-radius: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.aa-talks time { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--blue); transition: color 0.25s; }
.aa-talks strong { font-weight: 900; font-size: 1.08rem; line-height: 1.2; }
.aa-talks span { font-size: 0.93rem; line-height: 1.4; color: var(--text-secondary); transition: color 0.25s; }
.aa-talks i { width: 34px; height: 34px; display: grid; place-content: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); font-style: normal; font-weight: 900; transition: background-color 0.25s, border-color 0.25s; }
.aa-talks a:hover { transform: translateX(6px); background: var(--ink); border-color: var(--ink); color: #fff; }
.aa-talks a:hover time { color: var(--lime); }
.aa-talks a:hover span { color: rgba(255, 255, 255, 0.76); }
.aa-talks a:hover i { background: var(--lime); border-color: var(--lime); }

/* --- Proces i „kto prowadzi” --- */
.aa-section .section-header { margin-bottom: 2rem; }
.aa-process { padding-bottom: 1.5rem; }
.aa-num { display: inline-grid; place-content: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--lime); color: var(--ink); font-weight: 900; font-size: 1.15rem; }
.aa-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.aa-steps li { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 16px rgba(20, 30, 90, 0.05); }
.aa-steps h3 { margin: 0.9rem 0 0.4rem; font-size: 1.25rem; }
.aa-steps p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; }
.aa-person { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: center; max-width: 900px; }
.aa-person img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: 0 0 0 3px var(--lime), var(--shadow-card); }
.aa-person h2 { margin: 0.4rem 0 0.6rem; }
.aa-person p { color: var(--text-secondary); max-width: 640px; }
.aa-person .btn-group { margin-top: 1.1rem; }
.aa-reading { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.aa-reading h3 { margin: 0 0 0.8rem; font-size: 1.05rem; }
.aa-reading ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.aa-reading a { font-weight: 700; color: var(--blue); }

/* --- Formularz wyceny --- */
.aa-contact { padding: var(--aa-pad) 0; scroll-margin-top: calc(var(--nav-h) - 10px); }
.aa-contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.aa-contact h2 { margin: 0.6rem 0 1rem; font-size: clamp(2.1rem, 4.6vw, 3.6rem); color: #fff; }
.aa-contact__copy > p { font-size: 1.08rem; color: rgba(255, 255, 255, 0.76); }
.aa-next { list-style: none; margin: 1.7rem 0; padding: 0; display: grid; gap: 1rem; }
.aa-next li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0.9rem; align-items: start; font-size: 0.96rem; line-height: 1.5; color: rgba(255, 255, 255, 0.74); }
.aa-next b { width: 38px; height: 38px; display: grid; place-content: center; border-radius: 11px; background: var(--lime); color: var(--ink); font-weight: 900; }
.aa-next strong { display: block; color: #fff; }
.aa-contact__copy > p.aa-contact__alt { font-size: 0.98rem; color: rgba(255, 255, 255, 0.62); }
.aa-contact__alt a { color: var(--lime); font-weight: 700; }
.aa-form { padding: clamp(1.3rem, 3vw, 2.2rem); border: 0; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.aa-form .form-privacy { margin: 0 0 1rem; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); }
.aa-form .form-privacy a { color: var(--blue); font-weight: 600; }
.aa-form select { transition: border-color 0.3s, box-shadow 0.3s; }
.aa-form.is-picked select { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(var(--blue-rgb), 0.18); }

/* --- Mniejsze ekrany --- */
@media (max-width: 1080px) {
  .aa-index__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .aa-index__list li { grid-column: span 2; }
  .aa-index__list li:nth-child(4), .aa-index__list li:nth-child(5) { grid-column: span 3; }
  .aa-index__list a { min-height: 190px; }
  .aa-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  .aa-hero__grid, .aa-scene__grid, .aa-contact__grid { grid-template-columns: minmax(0, 1fr); }
  .aa-scene__grid--flip .aa-scene__show { order: 0; }
  .aa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aa-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aa-try { grid-template-columns: minmax(0, 1fr); }
  .aa-try__card--wide { grid-template-columns: minmax(0, 1fr); }
  .aa-browser__frame { transform: none; }
  .aa-talks a { grid-template-columns: minmax(0, 1fr) auto; }
  .aa-talks time { grid-column: 1; }
  .aa-talks i { grid-column: 2; grid-row: 1 / span 3; }
  .aa-talks strong, .aa-talks span { grid-column: 1; }
}
@media (max-width: 700px) {
  .aa-index__list { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
  .aa-index__list li, .aa-index__list li:nth-child(4), .aa-index__list li:nth-child(5) { grid-column: auto; }
  .aa-index__list a { min-height: 0; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 34px; gap: 0.15rem 0.9rem; align-items: center; padding: 0.95rem 1rem; }
  .aa-index__no { grid-row: 1 / span 2; font-size: 2.3rem; }
  .aa-index__list strong { margin: 0; align-self: end; }
  .aa-index__sub { grid-column: 2; align-self: start; }
  .aa-index__list i { position: static; grid-column: 3; grid-row: 1 / span 2; }
  .aa-index__list a:hover, .aa-index__list a:focus-visible { transform: none; }
  .aa-scene { padding-top: calc(var(--aa-pad) + 2.6rem); }
  .aa-scene__head { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .aa-scene__no { font-size: 5rem; -webkit-text-stroke-width: 2px; }
  .aa-fx { grid-template-columns: minmax(0, 1fr); }
  .aa-fx__card { grid-template-columns: 112px minmax(0, 1fr); gap: 0.9rem; }
  .aa-fx__card img { height: 132px; }
  .aa-browser__view { aspect-ratio: 4 / 3.3; }
  .aa-try__card { grid-template-columns: minmax(0, 1fr); }
  .aa-chat { min-height: 0; }
  .aa-live { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'text' 'links' 'cta'; }
  .aa-live > .btn { justify-self: start; }
  .aa-games { grid-template-columns: minmax(0, 1fr); }
  .aa-game--shot { grid-column: auto; flex-direction: column; }
  .aa-game--shot .aa-game__stage { flex: none; min-height: 0; aspect-ratio: auto; }
  .aa-game--shot .aa-game__stage img { max-height: 380px; }
  .aa-game__stage { aspect-ratio: 1 / 0.72; }
  .aa-dance { width: 46%; }
  .aa-goal { width: 62%; }
  .aa-bar a.is-active span { display: none; }
  .aa-bar a { padding: 0 0.62rem; }
}
/* Obszary na telefonie: zwijane (pierwszy otwarty), żeby scena 02 nie była ścianą tekstu */
@media (max-width: 700px) {
  .aa-area { padding: 0; }
  .aa-area:hover { transform: none; }
  .aa-area > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.1rem; pointer-events: auto; cursor: pointer; }
  .aa-area > summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); color: var(--lime); font-weight: 800; font-size: 1.1rem; line-height: 1; }
  .aa-area[open] > summary::after { content: '−'; }
  .aa-area ul { margin: 0; padding: 0 1.1rem 1.1rem; }
}
/* Schemat automatyzacji na telefonie: kroki pod sobą, kropka jedzie w dół */
@media (max-width: 700px) {
  .aa-flow__nodes { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .aa-flow__nodes::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0 6px, transparent 6px 12px); }
  .aa-flow__nodes::after { top: 18px; left: 18px; animation-name: aa-flow-dot-v; }
  .aa-flow__nodes li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 0.9rem; align-items: center; text-align: left; }
  .aa-flow__ico { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 14px; }
  .aa-flow__nodes strong { margin: 0; align-self: end; font-size: 0.95rem; }
  .aa-flow__nodes small { align-self: start; font-size: 0.7rem; }
}
@keyframes aa-flow-dot-v {
  0% { top: 18px; opacity: 0; }
  3% { opacity: 1; }
  80% { top: calc(100% - 30px); opacity: 1; }
  86%, 100% { top: calc(100% - 30px); opacity: 0; }
}
@media (max-width: 560px) {
  .aa-steps, .aa-areas { grid-template-columns: minmax(0, 1fr); }
  .aa-person { grid-template-columns: minmax(0, 1fr); }
  .aa-person img { width: 120px; height: 120px; }
  .aa-hero__photo, .aa-stage { rotate: 0deg; }
  .aa-hero__flow { left: 0.4rem; bottom: 4.9rem; }
  .aa-canvas__node { padding: 0.5rem; }
  .aa-canvas__node b { font-size: 0.78rem; }
  .aa-note { grid-template-columns: minmax(0, 1fr); }
  .aa-note__tag { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .aa *, .aa *::before, .aa *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .aa-chat__msg { opacity: 1; }
  .aa-flow__nodes::after { display: none; }
  .aa-browser__frame { transform: none; }
}
