/* Kiosk Ivy – cyfrowa recepcja na tablecie przy wejściu (styl jak reklama „Bestseller Hair Package 599 AED”):
 * czarne tło, biały tekst, złoty akcent, filmik salonu po prawej. Klientka wypełnia wszystko na tablecie;
 * kod QR pojawia się dopiero przy płatności (Stripe na jej telefonie). Decyzje Julii 19.11.2026.
 * Logo „IVY Beauty & Bubbles” (Plaza + listek) – obrazek wycięty z grafiki reklamowej. Tekst – Montserrat. */
:root{
  --black:#0e100d; --black-2:#151814; --white:#ffffff; --soft:rgba(255,255,255,.84); --muted:rgba(255,255,255,.66);
  --line:rgba(255,255,255,.16); --card:rgba(255,255,255,.05); --card-hover:rgba(255,255,255,.08);
  --gold:#c9a45d; --gold-light:#e4c78d; --green:#526448;
  --sans:"Montserrat", "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;min-height:100%;background:var(--black);color:var(--white);font:400 17px/1.55 var(--sans);-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}
html[dir="rtl"] body{font-family:"IBM Plex Sans Arabic", var(--sans)}
button,input{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.k{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:max(30px, env(safe-area-inset-top)) 48px 44px;min-height:100vh;display:flex;flex-direction:column}
.k-load{margin:auto;color:var(--muted)}

/* tło: filmik salonu po prawej, czarny panel po lewej (jak w reklamie) */
.k-bg{position:fixed;inset:0;z-index:0;pointer-events:none;background:var(--black)}
.k-bg video,.k-bg img{position:absolute;top:0;bottom:0;left:34%;width:66%;height:100%;object-fit:cover;object-position:50% 30%}
.k-bg::after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg, var(--black) 0%, var(--black) 34%, rgba(14,16,13,.82) 42%, rgba(14,16,13,.25) 60%, rgba(14,16,13,0) 75%),
             linear-gradient(0deg, rgba(14,16,13,.55) 0%, rgba(14,16,13,0) 30%)}
/* kolejne kroki: filmik przyciemniony, żeby tekst był bardzo czytelny */
body:not(.k-home) .k-bg::after{background:linear-gradient(90deg, var(--black) 0%, var(--black) 40%, rgba(14,16,13,.9) 60%, rgba(14,16,13,.78) 100%)}
html[dir="rtl"] .k-bg video,html[dir="rtl"] .k-bg img{left:0}
html[dir="rtl"] .k-bg::after{transform:scaleX(-1)}

/* nagłówek: logo + języki */
.k-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:34px}
.k-logo{height:54px;width:auto;display:block}
.k-langs{display:flex;gap:2px;background:rgba(14,16,13,.6);border-radius:999px;padding:2px 6px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.k-langs button{border:0;background:transparent;padding:8px 12px;font-size:12px;font-weight:600;letter-spacing:.16em;color:var(--muted);min-height:42px}
.k-langs button[aria-pressed="true"]{color:var(--gold-light);box-shadow:inset 0 -1.5px 0 var(--gold)}

/* typografia */
.k-eyebrow{font-size:13px;font-weight:500;letter-spacing:.42em;text-transform:uppercase;color:var(--gold);margin:0 0 18px}
h1{font-weight:400;font-size:clamp(36px,5vw,54px);line-height:1.1;letter-spacing:.02em;text-transform:uppercase;margin:0 0 22px;color:var(--white)}
h2{font-weight:400;font-size:32px;line-height:1.2;letter-spacing:.02em;margin:0 0 8px;color:var(--white)}
.k-sub{color:var(--soft);margin:0 0 30px;max-width:30em;font-size:18px}
.k-rule{width:84px;height:2px;background:var(--gold);border:0;margin:0 0 26px}

/* kroki */
.k-steps{display:flex;gap:8px;margin:0 0 28px;max-width:640px}
.k-steps span{flex:1;height:2px;background:var(--line)}
.k-steps span.on{background:var(--gold)}
.k-back{border:0;background:none;color:var(--muted);padding:6px 0;margin-bottom:10px;font-size:12px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;min-height:42px;align-self:flex-start}
body:not(.k-home) .k > :not(.k-top):not(.k-in):not(.k-back){max-width:700px}

/* usługi */
.k-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.k-card{border:1px solid var(--line);background:var(--card);border-radius:3px;padding:22px 22px 18px;text-align:start;min-height:122px;display:flex;flex-direction:column;justify-content:space-between;gap:14px;transition:border-color .2s, background .2s}
.k-card:active{background:var(--card-hover)}
.k-card[aria-pressed="true"]{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
.k-card b{font-size:19px;font-weight:500;line-height:1.3;color:var(--white)}
.k-card .k-meta{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.k-meta{color:var(--muted);font-size:15px}
.k-price{color:var(--gold-light);font-weight:600;letter-spacing:.04em}

/* dzień i godzina */
.k-days{display:flex;gap:10px;margin-bottom:20px}
.k-days button{flex:1;border:1px solid var(--line);background:var(--card);border-radius:3px;padding:14px;min-height:60px;font-size:15px;font-weight:500;letter-spacing:.04em;color:var(--soft)}
.k-days button[aria-pressed="true"]{background:var(--gold);color:var(--black);border-color:var(--gold);font-weight:600}
.k-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.k-slots button{border:1px solid var(--line);background:var(--card);border-radius:3px;padding:14px 6px;min-height:60px;font-weight:600;font-size:17px;letter-spacing:.03em;font-variant-numeric:tabular-nums;direction:ltr;color:var(--white)}
.k-slots button.first{border-color:var(--gold);color:var(--gold-light)}
.k-empty{background:var(--card);border:1px solid var(--line);border-radius:3px;padding:22px;color:var(--soft)}

/* formularz */
.k-field{display:flex;flex-direction:column;gap:6px;margin-bottom:24px;font-size:12px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--gold)}
.k-field input{font-size:21px;font-weight:400;letter-spacing:normal;text-transform:none;color:var(--white);background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.45);border-radius:0;padding:10px 2px;min-height:54px;width:100%}
.k-field input::placeholder{color:rgba(255,255,255,.35)}
.k-field input:focus{outline:none;border-bottom:2px solid var(--gold)}
.k-field input[type="tel"],.k-field input[type="email"]{direction:ltr;text-align:start}
html[dir="rtl"] .k-field input[type="tel"],html[dir="rtl"] .k-field input[type="email"]{text-align:right}
.k-field small{color:var(--muted);font-size:13px;letter-spacing:normal;text-transform:none;font-weight:400}
.k-two{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}

/* podsumowanie i płatność */
.k-sum{background:var(--card);border:1px solid var(--line);border-radius:3px;padding:14px 22px;margin-bottom:18px}
.k-sum div{display:flex;justify-content:space-between;gap:14px;padding:9px 0}
.k-sum div + div{border-top:1px solid var(--line)}
.k-sum div > span:first-child{color:var(--gold);font-size:11.5px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;padding-top:4px}
.k-sum b{font-weight:500;text-align:end;color:var(--white)}
.k-pay{display:grid;gap:14px}
.k-opt{border:1px solid var(--line);background:var(--card);border-radius:3px;padding:22px 24px;text-align:start;display:flex;flex-direction:column;gap:8px;min-height:96px;color:var(--white)}
.k-opt.hero{border:1.5px solid var(--gold);background:linear-gradient(135deg, rgba(201,164,93,.16) 0%, rgba(201,164,93,.04) 60%);flex-direction:row;align-items:center;gap:20px}
.k-opt.hero .k-opt-body{flex:1;display:flex;flex-direction:column;gap:8px}
.k-opt .k-opt-t{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-weight:600;font-size:19px}
.k-opt .k-amt{font-weight:500;font-size:28px;letter-spacing:.02em;direction:ltr;white-space:nowrap;color:var(--gold-light)}
.k-opt:not(.hero) .k-amt{color:var(--white)}
.k-gift{color:var(--gold-light);font-size:15px;font-weight:500}
.k-gift small{display:block;color:var(--muted);font-size:13px;font-weight:400}

/* olejek-prezent (zdjęcie produktu) */
.k-prod{position:relative;flex:none;width:104px;height:150px;background:#fff;border-radius:10px;display:grid;place-items:center;box-shadow:0 0 0 1px rgba(201,164,93,.7), 0 14px 34px rgba(0,0,0,.45)}
.k-prod img{position:absolute;left:8%;top:7%;width:84%;height:86%;object-fit:contain;display:block}
.k-prod.lg{width:132px;height:188px}
.k-prod.xl{width:170px;height:244px;border-radius:14px}
.k-badge{position:absolute;top:-10px;left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--gold);color:var(--black);font-size:10.5px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;padding:5px 12px;border-radius:999px;box-shadow:0 4px 12px rgba(0,0,0,.35)}
html[dir="rtl"] .k-badge{letter-spacing:normal;font-size:12px}
.k-gname{display:block;color:var(--white);font-size:17px;line-height:1.35;font-weight:400}
.k-gname small{display:block;font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);font-weight:600;margin-bottom:4px}
.k-gname b{font-size:26px;font-weight:600;letter-spacing:.14em;color:var(--gold-light)}
.k-gname i{font-style:normal;color:var(--soft);font-size:15px}
/* ekran powitalny: karta prezentu pod przyciskiem */
.k-giftcard{display:flex;gap:22px;align-items:center;margin-top:48px;margin-inline-start:-12px;padding:22px 24px 20px;border-radius:16px;
  background:rgba(14,16,13,.82);border:1px solid rgba(201,164,93,.75);box-shadow:0 20px 50px rgba(0,0,0,.4)}
.k-giftcard .k-eyebrow{font-size:11px;letter-spacing:.3em;margin-bottom:8px}
.k-giftcard-t p:last-child{margin:10px 0 0;color:var(--soft);font-size:15px}


/* przyciski */
.k-btn{border:0;border-radius:999px;padding:18px 28px;font-size:14px;font-weight:700;letter-spacing:.28em;text-transform:uppercase;min-height:64px;background:var(--gold);color:var(--black);width:100%}
.k-btn.ghost{background:transparent;color:var(--white);border:1px solid rgba(255,255,255,.4)}
.k-btn:disabled{opacity:.5}
.k-link{border:0;background:none;color:var(--soft);font-size:14px;letter-spacing:.04em;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:5px;padding:10px 12px 10px 0;min-height:46px}
.k-err{color:#ff9b8f;min-height:1.2em;margin:4px 0 12px;font-size:16px}

/* ekran startowy */
.k-welcome{margin:0;max-width:520px}
.k-welcome .k-btn{max-width:380px}
.k-promo{margin-top:40px;display:flex;gap:20px;align-items:center;max-width:500px;padding-top:26px;border-top:1px solid var(--line)}
.k-promo b{display:block;font-size:12px;font-weight:600;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);margin-bottom:6px}
.k-promo span{color:var(--white);font-size:16px;line-height:1.45}

/* płatność na telefonie (QR) */
.k-payqr{display:grid;grid-template-columns:1fr 300px;gap:40px;align-items:center;max-width:960px}
.k-qr{background:#fff;border-radius:4px;padding:22px;text-align:center;box-shadow:0 0 0 1px var(--gold), 0 18px 50px rgba(0,0,0,.5)}
.k-qr svg{width:100%;max-width:240px;height:auto;display:block;margin:0 auto}
.k-qr p{margin:14px 0 0;font-size:11px;font-weight:700;letter-spacing:.26em;text-transform:uppercase;color:#0e100d}
.k-wait{display:flex;align-items:center;gap:12px;color:var(--soft);font-size:15px;margin:6px 0 18px}
.k-wait .k-spin{margin:0;width:18px;height:18px}

/* potwierdzenie */
.k-done{text-align:center;margin:auto 0;align-self:center;max-width:620px}
.k-done .k-mark{width:66px;height:66px;margin:0 auto 22px;color:var(--gold)}
.k-done .k-rule{margin:0 auto 22px}
.k-done .k-sub{margin-left:auto;margin-right:auto}
.k-done .k-sum{text-align:start;margin:18px auto 22px}
.k-giftline{display:flex;gap:20px;align-items:center;margin:4px 0 18px;text-align:start}
.k-giftline .k-prod{margin-top:8px}
.k-done .k-giftline{justify-content:center;margin:0 auto 22px}
.k-foot{margin-top:auto;padding-top:26px;color:var(--muted);font-size:13px;letter-spacing:.04em}
.k-spin{width:34px;height:34px;border:1.5px solid var(--line);border-top-color:var(--gold);border-radius:50%;margin:22px auto;animation:sp 1s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.k-in{animation:fade .4s ease both}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Arabski: bez rozstrzelenia liter i wersalików */
html[dir="rtl"] .k-eyebrow, html[dir="rtl"] h1, html[dir="rtl"] .k-btn, html[dir="rtl"] .k-promo b, html[dir="rtl"] .k-field, html[dir="rtl"] .k-sum div > span:first-child,
html[dir="rtl"] .k-qr p, html[dir="rtl"] .k-back, html[dir="rtl"] .k-langs button{letter-spacing:normal;text-transform:none}
html[dir="rtl"] .k-btn{font-size:18px}

@media (max-width:760px){
  .k{padding:22px 20px 36px}
  .k-payqr,.k-two{grid-template-columns:1fr}
  .k-bg video,.k-bg img{left:0;width:100%}
  .k-bg::after,body:not(.k-home) .k-bg::after{background:rgba(14,16,13,.86)}
  h1{font-size:32px} h2{font-size:26px}
  .k-logo{height:42px}
  .k-top{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:26px}
}
@media (prefers-reduced-motion:reduce){ .k-in{animation:none} .k-spin{animation:none} .k-bg video{display:none} .k-bg{background:var(--black) url(/kiosk-bg.jpg) 70% 30%/cover no-repeat} }
/* Tablet w pionie: dłuższy czarny panel – tekst zawsze na ciemnym tle */
@media (orientation:portrait) and (min-width:761px){
  body.k-home .k-bg::after{background:linear-gradient(90deg, var(--black) 0%, var(--black) 30%, rgba(14,16,13,.86) 50%, rgba(14,16,13,.45) 72%, rgba(14,16,13,.15) 100%)}
  .k-bg video,.k-bg img{left:22%;width:78%}
}
/* niższe ekrany (iPad w poziomie): bez przewijania */
@media (max-height:860px) and (orientation:landscape){
  .k-top{margin-bottom:26px} .k-eyebrow{margin-bottom:12px} h1{margin-bottom:16px} .k-rule{margin-bottom:18px} .k-sub{margin-bottom:22px}
  .k-promo{margin-top:26px;padding-top:20px}
}

/* „Reserve your appointment”: pulsuje, żeby przyciągnąć wzrok */
.k-pulse{position:relative;animation:k-pulse 2.2s ease-in-out infinite;box-shadow:0 0 0 0 rgba(201,164,93,.55)}
@keyframes k-pulse{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(201,164,93,.55)}
  50%{transform:scale(1.035);box-shadow:0 0 0 16px rgba(201,164,93,0)}
  100%{transform:scale(1);box-shadow:0 0 0 0 rgba(201,164,93,0)}
}
@media (prefers-reduced-motion:reduce){ .k-pulse{animation:none} }
.k-opt.hero{border-radius:14px}
.k-opt.hero .k-gname{margin:4px 0}
.k-giftline .k-gift{display:flex;flex-direction:column;gap:6px}

/* Duży napis Plazą (grafika SVG) */
.k-h1-plaza{margin:0 0 20px;line-height:0}
.k-plaza{display:block;width:min(400px, 100%);height:auto;color:var(--white);overflow:visible}
.k-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-height:860px) and (orientation:landscape){ .k-plaza{width:min(340px,100%)} .k-h1-plaza{margin-bottom:16px} .k-giftcard{margin-top:40px;padding:16px 20px} .k-giftcard .k-prod.lg{width:112px;height:160px} }
