/* Sekcja "Kreator stron AI" na stronie glownej (Kacper 05.10.2026). Scena: dwie strony w tle, okno z budowana strona, pole promptu na dole.
   Strona w oknie skaluje sie z szerokoscia okna (jednostki cqw), animacje steruje js/kreator-ai.js przez klasy is-on / is-buduje / is-zoom / is-srodek. */
.kai { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: "scena tresc" "start start"; gap: 0 clamp(32px, 5vw, 88px); max-width: 1440px; padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.kai__scena { grid-area: scena; position: relative; padding: 56px 0 26px; } /* pole promptu nachodzi na dol okna (Kacper: wyzej) */
.kai__tresc { grid-area: tresc; align-self: center; max-width: 520px; }
.kai__start { grid-area: start; margin-top: clamp(40px, 5vw, 72px); }

/* prawa kolumna: znak, naglowek, opis, link, opinie (Kacper: tylko tyle, bez cennika) */
.kai__badge { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 4px; border: 1px solid #d6e1ff; border-radius: 999px; background: #eef3ff; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.kai__badge-av { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #dbe6ff; object-fit: cover; } /* avatar klikamy zamiast ikonki (Kacper 05.10) */
.kai__h2 { margin: 22px 0 0; font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'opsz' 40; font-size: clamp(30px, 3.2vw, 46px); font-weight: 300; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.kai__lead { margin: 18px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--soft); }
.kai__link { display: flex; align-items: center; justify-content: space-between; margin-top: 34px; padding: 0 0 16px; border-bottom: 1px solid var(--line-strong); font-size: 19px; font-weight: 400; color: var(--ink); transition: border-color .2s; }
.kai__link .klik { width: 14px; height: 14px; fill: var(--ink); transition: transform .25s cubic-bezier(.2, .7, .2, 1), fill .2s; }
.kai__link:hover { border-color: var(--ink); }
.kai__link:hover .klik { transform: translate(3px, -3px); fill: var(--accent); }
.kai__opinie { display: flex; align-items: center; gap: 16px; margin-top: 34px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.kai__twarze { display: flex; }
.kai__twarze img, .kai__twarze b { width: 46px; height: 46px; margin-left: -10px; border: 2px solid var(--page); border-radius: 50%; object-fit: cover; }
.kai__twarze img:first-child { margin-left: 0; }
.kai__twarze b { display: grid; place-items: center; background: var(--accent); font-size: 14px; font-weight: 600; color: #fff; }

/* pod spodem na cala szerokosc: co potrzebujesz = domena + hosting + poczta, albo pakiet */


/* strony w tle (jak stos kart) */
.kai__tyl { position: absolute; left: 50%; border-radius: 18px 18px 0 0; transform: translateX(-50%); }
.kai__tyl--1 { top: 0; width: 84%; height: 60px; background: linear-gradient(180deg, #cfe0ff, #e8f0ff); }
.kai__tyl--2 { top: 26px; display: flex; align-items: flex-start; justify-content: space-between; width: 92%; height: 60px; padding: 12px 24px 0; background: linear-gradient(180deg, #34406b, #1f2847); font: 500 13px var(--font); color: rgba(255, 255, 255, .85); }
.kai__tyl-menu { display: flex; gap: 16px; font-size: 12px; }
.kai__tyl-menu i { font-style: normal; color: rgba(255, 255, 255, .6); }

/* okno z budowana strona */
.kai__okno { --kai-akc: #f5b800; --kai-akc-t: #1a1406; position: relative; z-index: 1; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: #161b2b; box-shadow: 0 40px 80px -40px rgba(17, 24, 39, .45); container: kai / inline-size; }
.kai__str { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.kai__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kai__str::before, .kai__str::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.kai__str::after { background: linear-gradient(90deg, rgba(10, 14, 26, .82) 0%, rgba(10, 14, 26, .45) 55%, rgba(10, 14, 26, .15) 100%); }
.kai__str::before { background: rgba(10, 14, 26, .64); } /* rowne przyciemnienie, gdy tekst stoi na srodku */
.kai__str.is-foto::after { opacity: 1; }
.kai__str.is-foto.is-srodek::after { opacity: 0; }
.kai__str.is-foto.is-srodek::before { opacity: 1; }
.kai__nav, .kai__hero { position: absolute; z-index: 1; }
.kai__nav { top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 3.2cqw; padding: 3cqw 5cqw; color: #fff; }
.kai__logo { display: flex; align-items: center; gap: .9cqw; font: 700 1.9cqw/1 var(--font); letter-spacing: .08em; }
.kai__logo i { width: 2.2cqw; height: 2.2cqw; border-radius: .5cqw; background: var(--kai-akc); }
.kai__logo b { font-weight: 400; }
.kai__menu { display: flex; gap: 2.6cqw; margin-left: auto; font: 500 1.45cqw/1 var(--font); color: rgba(255, 255, 255, .85); }
.kai__cta { padding: 1.1cqw 2cqw; border-radius: 99px; background: var(--kai-akc); font: 600 1.4cqw/1 var(--font); color: var(--kai-akc-t); }
.kai__hero { left: 5cqw; right: 5cqw; top: 50%; display: flex; flex-direction: column; align-items: flex-start; gap: 1.8cqw; transform: translateY(-38%); text-align: left; }
.kai__h { max-width: 52cqw; font: 600 5.6cqw/1.04 var(--font); letter-spacing: -0.03em; color: #fff; }
.kai__p { max-width: 40cqw; font: 400 1.65cqw/1.5 var(--font); color: rgba(255, 255, 255, .8); }
.kai__btn { padding: 1.3cqw 2.4cqw; border: 1px solid rgba(255, 255, 255, .5); border-radius: 99px; font: 600 1.45cqw/1 var(--font); color: #fff; }
.kai__hero.is-srodek { align-items: center; text-align: center; }
.kai__hero.is-srodek .kai__h { max-width: 70cqw; }
.kai__hero.is-srodek .kai__p { max-width: 52cqw; }

/* budowanie: element pojawia sie z niebieska ramka "w trakcie" */
.kai [data-b] { position: relative; opacity: 0; transform: translateY(1.2cqw); transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1); }
.kai .kai__foto[data-b] { transform: scale(1.06); transition: opacity 1s, transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.kai [data-b].is-on { opacity: 1; transform: none; }
.kai [data-b].is-buduje:not(.kai__foto) { outline: 2px dashed #93b4ff; outline-offset: .8cqw; border-radius: .6cqw; }
.kai__h.is-zaznacz { background: rgba(37, 99, 235, .75); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.kai__h .kai__kursor { height: .9em; vertical-align: -.08em; background: #fff; }

/* pole promptu */
.kai__prompt { position: absolute; z-index: 2; left: 50%; bottom: 0; display: flex; align-items: center; gap: 12px; width: min(88%, 640px); height: 64px; padding: 0 8px 0 8px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; box-shadow: 0 24px 48px -22px rgba(17, 24, 39, .35); transform: translateX(-50%); }
.kai__av { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #dbe6ff; object-fit: cover; }
.kai__txt { display: flex; flex: 1; align-items: center; min-width: 0; margin: 0; font: 400 16px/1.3 var(--font); color: var(--ink); white-space: nowrap; }
.kai__txt [data-kai-txt] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kai__ph { color: #9ca3af; }
.kai__kursor { display: inline-block; width: 2px; height: 1.1em; margin: 0 1px; background: var(--accent); vertical-align: -.18em; animation: kai-kursor 1s steps(2) infinite; }
@keyframes kai-kursor { 50% { opacity: 0; } }
/* ladowanie: trzy kropki w polu i kolko na przycisku, bez napisu */
.kai__laduje { display: inline-flex; flex: none; gap: 5px; margin-left: 10px; }
.kai__laduje[hidden] { display: none; }
.kai__laduje i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: kai-kropka 1s ease-in-out infinite; }
.kai__laduje i:nth-child(2) { animation-delay: .15s; }
.kai__laduje i:nth-child(3) { animation-delay: .3s; }
@keyframes kai-kropka { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-5px); } }
.kai__send { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #dbe4ff; transition: background-color .2s, transform .15s; }
.kai__send .klik { width: 15px; height: 15px; fill: #fff; transition: opacity .15s; }
.kai__send.is-gotowy { background: var(--accent); }
.kai__send.is-klik { transform: scale(.9); }
.kai__krec { position: absolute; inset: 12px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; opacity: 0; }
.kai__send.is-praca { background: var(--accent); }
.kai__send.is-praca .klik { opacity: 0; }
.kai__send.is-praca .kai__krec { opacity: 1; animation: kai-krec .8s linear infinite; }
@keyframes kai-krec { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .kai { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tresc" "scena" "start"; }
  .kai__tresc { max-width: 640px; }
  .kai__scena { margin-top: 12px; }
  .kai__start { margin-top: 24px; }
}
@media (max-width: 640px) {
  .kai__scena { padding: 40px 0 22px; }
  .kai__tyl--1 { height: 50px; }
  .kai__tyl--2 { top: 18px; padding: 8px 14px 0; font-size: 11px; }
  .kai__tyl-menu { display: none; }
  .kai__okno { aspect-ratio: 4 / 3; border-radius: 16px; }
  .kai__prompt { width: 96%; height: 54px; gap: 8px; padding: 0 6px; }
  .kai__av { width: 40px; height: 40px; }
  .kai__txt { font-size: 14px; }
  .kai__send { width: 42px; height: 42px; }
  .kai__krec { inset: 10px; }
}
/* waskie okno (telefon): mniej menu, wieksze litery */
@container kai (max-width: 560px) {
  .kai__menu { display: none; }
  .kai__logo { font-size: 3.4cqw; }
  .kai__logo i { width: 3.6cqw; height: 3.6cqw; }
  .kai__cta { margin-left: auto; padding: 1.8cqw 3.2cqw; font-size: 2.8cqw; }
  .kai__hero { gap: 3cqw; transform: translateY(-30%); }
  .kai__h { max-width: 80cqw; font-size: 8.4cqw; }
  .kai__p { max-width: 76cqw; font-size: 3.2cqw; }
  .kai__btn { padding: 2.2cqw 3.8cqw; font-size: 2.8cqw; }
  .kai__hero.is-srodek .kai__h, .kai__hero.is-srodek .kai__p { max-width: 86cqw; }
}
@media (prefers-reduced-motion: reduce) { .kai [data-b], .kai__str { transition: none; } .kai__kursor { animation: none; } }
.kai__kursor[hidden] { display: none; }
.kai--bez, .kai--bez * { transition: none !important; } /* reset przed powtorka bez znikania element po elemencie */

/* motyw jasny (studio kobiet): biala mgla od lewej, ciemny tekst, szeryfowy naglowek */
.kai__okno[data-motyw="jasny"] { background: #f4efec; }
.kai__okno[data-motyw="jasny"] .kai__str::after { background: linear-gradient(90deg, rgba(252, 248, 246, .95) 0%, rgba(252, 248, 246, .7) 48%, rgba(252, 248, 246, .05) 100%); }
.kai__okno[data-motyw="jasny"] .kai__str::before { background: rgba(252, 248, 246, .88); }
.kai__okno[data-motyw="jasny"] .kai__nav, .kai__okno[data-motyw="jasny"] .kai__h { color: #2b1d22; }
.kai__okno[data-motyw="jasny"] .kai__menu { color: rgba(43, 29, 34, .75); }
.kai__okno[data-motyw="jasny"] .kai__p { color: rgba(43, 29, 34, .75); }
.kai__okno[data-motyw="jasny"] .kai__btn { border-color: rgba(43, 29, 34, .45); color: #2b1d22; }
.kai__okno[data-motyw="jasny"] .kai__h { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.kai__okno[data-motyw="jasny"] .kai__h .kai__kursor { background: #2b1d22; }
.kai__okno[data-motyw="jasny"] .kai__h.is-zaznacz { color: #fff; }
.kai__okno[data-motyw="jasny"] .kai__logo { letter-spacing: .14em; }
.kai__okno[data-font="cienki"] .kai__h { font-weight: 300; letter-spacing: -0.02em; } /* biuro konstrukcji: lekki, techniczny naglowek */

/* warstwy: zdjecia pod przyciemnieniem, tekst nad nim (wczesniej ::before chowal sie pod zdjeciem i przy tekscie na srodku mgla znikala) */
.kai__foto, .kai__foto2 { z-index: 0; }
.kai__str::before, .kai__str::after { z-index: 1; }
.kai__nav, .kai__hero { z-index: 2; }
.kai__foto2 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.kai__foto2.is-on { opacity: 1; }
/* dodatki z kolejnych zadan: telefon w menu, opinie pod opisem, zmiana koloru przyciskow */
.kai__tel, .kai__ocena { display: none; }
.kai__tel { align-items: center; gap: .7cqw; font: 600 1.45cqw/1 var(--font); }
.kai__tel .ico { width: 1.5cqw; height: 1.5cqw; }
.kai__ocena { align-items: center; gap: .8cqw; font: 500 1.4cqw/1 var(--font); color: inherit; opacity: .85; }
.kai__ocena i { font-style: normal; letter-spacing: .1em; color: #d9a23a; }
.kai__ocena b { font-weight: 700; }
.kai__tel.is-jest, .kai__ocena.is-jest { display: inline-flex; }
.kai__okno[data-motyw="jasny"] .kai__ocena { color: #2b1d22; }
.kai .kai__cta[data-b], .kai .kai__btn[data-b] { transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1), background-color .7s, border-color .7s, color .7s; }
.kai__okno.is-kolor .kai__btn { border-color: var(--kai-akc); background: var(--kai-akc); color: var(--kai-akc-t); }
.kai__okno.is-kolor .kai__logo i { background: var(--kai-akc); }
.kai__logo i { transition: background-color .7s; }
@container kai (max-width: 560px) {
  .kai__tel { font-size: 2.8cqw; gap: 1.2cqw; }
  .kai__tel .ico { width: 2.8cqw; height: 2.8cqw; }
  .kai__ocena { font-size: 2.8cqw; gap: 1.4cqw; }
}

/* spinacz: do prompta mozna dodac zdjecie albo plik; w scenie konstrukcji wgrywa sie zdjecie z paskiem postepu */
.kai__zal { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transition: background-color .2s, color .2s, transform .15s; }
.kai__zal svg { width: 20px; height: 20px; }
.kai__zal.is-klik { background: var(--page); color: var(--accent); transform: scale(.9); }
.kai__plik { display: flex; flex: none; align-items: center; gap: 8px; height: 44px; padding: 4px 12px 4px 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--page); animation: kai-plik .35s cubic-bezier(.2, .8, .2, 1); }
.kai__plik[hidden] { display: none; }
@keyframes kai-plik { from { opacity: 0; transform: translateY(6px) scale(.95); } }
.kai__plik img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.kai__plik > span { display: flex; flex-direction: column; gap: 4px; }
.kai__plik b { font-size: 12px; font-weight: 600; color: var(--ink); }
.kai__pasek { display: block; width: 64px; height: 4px; overflow: hidden; border-radius: 2px; background: var(--line-strong); }
.kai__pasek i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); }
.kai__plik.is-laduje .kai__pasek i { width: 100%; transition: width .9s cubic-bezier(.4, 0, .2, 1); }
.kai__plik.is-gotowy .kai__pasek i { background: #16a34a; }
@media (max-width: 640px) {
  .kai__zal { width: 32px; height: 32px; }
  .kai__zal svg { width: 18px; height: 18px; }
  .kai__plik { height: 38px; padding-right: 8px; }
  .kai__plik img { width: 30px; height: 30px; }
  .kai__plik > span { display: none; }
}

/* baner: strona na zamowienie od programistow klikamy */
.kai__nasza { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; margin-top: 70px; overflow: visible; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: linear-gradient(165deg, #060b24 0%, #0d1b55 60%, #1a37a6 140%); color: #fff; }
.kai__nasza-n { display: inline-flex; height: 28px; align-items: center; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 500; }
.kai__nasza h3 { margin: 14px 0 0; font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'opsz' 40; font-size: clamp(26px, 2.6vw, 38px); font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.kai__nasza p { max-width: 520px; margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .75); }
.kai__nasza-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 22px; }
.kai__nasza-btn { background: #fff; color: var(--ink); }
.kai__nasza-btn:hover { background: #e8eeff; }
.kai__nasza-link { color: #fff; }
.kai__nasza-link:hover { color: #c7d7ff; }
/* mockupy stron klientow w 3D (Kacper 06.10.2026: wieksze, bardziej 3D, w prawo; najechanie wysuwa ekran i przewija cala strone) */
.kai__nasza-foto { position: relative; align-self: stretch; min-height: 330px; perspective: 1500px; perspective-origin: 20% 30%; }
.kai__ok { position: absolute; display: flex; flex-direction: column; width: 74%; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 34px 70px -26px rgba(0, 0, 0, .75); transform-origin: 50% 50%; transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s; cursor: default; }
.kai__ok-pasek { display: flex; flex: none; align-items: center; gap: 4px; height: 22px; padding: 0 8px; background: #eef0f4; }
.kai__ok-pasek i { width: 7px; height: 7px; border-radius: 50%; background: #c9ced8; }
.kai__ok-pasek span { flex: 1; max-width: 60%; margin-left: 10px; padding: 2px 8px; border-radius: 6px; background: #fff; font-size: 9.5px; line-height: 1.3; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kai__ok-ekran { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
/* przewijanie calej strony: top + translateY konczy sie dokladnie na dole zrzutu */
.kai__ok-ekran img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transform: translateY(0); transition: top var(--czas, 8s) cubic-bezier(.45, 0, .55, 1), transform var(--czas, 8s) cubic-bezier(.45, 0, .55, 1); }
.kai__ok:hover .kai__ok-ekran img { top: 100%; transform: translateY(-100%); }
.kai__ok:nth-child(1) { top: -64px; left: 9%; z-index: 1; transform: rotateX(12deg) rotateY(-30deg) rotateZ(4deg) translateZ(-110px); }
.kai__ok:nth-child(2) { top: 0; left: 21%; z-index: 2; transform: rotateX(12deg) rotateY(-30deg) rotateZ(4deg) translateZ(-40px); }
.kai__ok:nth-child(3) { top: 66px; left: 33%; z-index: 3; transform: rotateX(12deg) rotateY(-30deg) rotateZ(4deg) translateZ(30px); }
.kai__nasza-foto .kai__ok:hover { z-index: 5; transform: rotateX(4deg) rotateY(-12deg) rotateZ(1deg) translateZ(90px); box-shadow: 0 44px 80px -24px rgba(0, 0, 0, .8); }
@media (max-width: 800px) {
  .kai__nasza { grid-template-columns: minmax(0, 1fr); }
  .kai__nasza { margin-top: 90px; }
  .kai__nasza-foto { min-height: 230px; order: -1; }
  .kai__ok { width: 74%; }
  .kai__ok:nth-child(1) { top: -96px; left: -2%; }
  .kai__ok:nth-child(2) { top: -40px; left: 12%; }
  .kai__ok:nth-child(3) { top: 18px; left: 26%; }

}


/* opinie: logo Google i gwiazdki (Kacper 06.10.2026) */
.kai__ocena-g { display: flex; flex-direction: column; gap: 3px; }
.kai__gw { display: flex; align-items: center; gap: 8px; }
.kai__g { width: 18px; height: 18px; }
.kai__gwiazdki { font-size: 16px; letter-spacing: .08em; line-height: 1; color: #fbbc05; }

