/* ============================================================
   NEOFLORA — bio-futurystyczna kwiaciarnia
   paleta: głęboki fiolet-czerń + neonowa fuksja + orchidea + limonka łodyg
   ============================================================ */

:root {
  --bg: #0d0714;
  --bg-2: #150a20;
  --ink: #f4ecfa;
  --ink-dim: #b9a8c9;
  --fuchsia: #ff2ec4;
  --orchid: #b44cff;
  --rose: #ff6f9c;
  --stem: #a8ff5e;
  --glass: rgba(180, 76, 255, 0.07);
  --glass-edge: rgba(255, 46, 196, 0.25);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Sora", sans-serif;
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--fuchsia); color: #14020f; }

/* ---------- atmosfera ---------- */
.noise {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mesh {
  position: fixed; inset: -20vh -20vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 32% at 82% 12%, rgba(255,46,196,.14), transparent 70%),
    radial-gradient(42% 40% at 8% 55%, rgba(180,76,255,.13), transparent 70%),
    radial-gradient(30% 28% at 65% 90%, rgba(168,255,94,.06), transparent 70%);
  animation: meshFloat 24s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  to { transform: translate3d(3%, -2%, 0) scale(1.06) rotate(1.5deg); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2.4rem;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(rgba(13,7,20,.82), rgba(13,7,20,.55));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,46,196,.14);
}
.nav__logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: .06em; color: var(--ink); text-decoration: none; display: flex; align-items: baseline;
}
.nav__logo em { font-style: normal; font-weight: 300; color: var(--fuchsia); }
.nav__dot {
  width: 7px; height: 7px; margin-left: 6px; border-radius: 50%;
  background: var(--stem); box-shadow: 0 0 10px var(--stem);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  color: var(--ink-dim); text-decoration: none; font-size: .86rem; letter-spacing: .04em;
  transition: color .25s;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--fuchsia), var(--orchid)); transition: width .3s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
@media (max-width: 720px) { .nav__links { display: none; } .nav { justify-content: space-between; } }

/* ---------- przyciski ---------- */
.btn {
  --btn-bg: linear-gradient(120deg, var(--fuchsia), var(--orchid) 80%);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .05em;
  color: #160210; text-decoration: none; cursor: pointer; border: 0;
  background: var(--btn-bg);
  padding: .8em 1.7em; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 30px -8px rgba(255,46,196,.55);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, filter .25s;
  position: relative;
}
.btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 14px 40px -8px rgba(255,46,196,.75); }
.btn:active { transform: translateY(0) scale(.99); }
.btn--big { font-size: .95rem; padding: 1em 2.1em; }
.btn--small { font-size: .72rem; padding: .65em 1.3em; }
.btn--full { width: 100%; }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(244,236,250,.28) inset;
}
.btn--ghost:hover { box-shadow: 0 0 0 1px var(--fuchsia) inset, 0 10px 30px -12px rgba(255,46,196,.5); }
.btn__arrow { transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* spinner w przycisku */
.btn__spinner {
  display: none; width: 1.05em; height: 1.05em; border-radius: 50%;
  border: 2px solid rgba(22,2,16,.3); border-top-color: #160210;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; filter: saturate(.6); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; padding: 7rem clamp(1.2rem, 6vw, 6rem) 4rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  animation: heroZoom 18s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13,7,20,.94) 22%, rgba(13,7,20,.55) 55%, rgba(13,7,20,.25)),
    linear-gradient(rgba(13,7,20,.25), transparent 30%, transparent 70%, var(--bg));
}
.hero__content { max-width: 720px; }
.hero__eyebrow {
  font-size: .78rem; letter-spacing: .35em; text-transform: uppercase; color: var(--stem);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 6.4vw, 4.6rem); line-height: 1.08; text-transform: uppercase;
  letter-spacing: -.01em;
}
.hero__title span { display: block; }
.hero__title em { font-style: normal; font-weight: 300; color: var(--rose); }
.hero__title-grad {
  background: linear-gradient(92deg, var(--fuchsia) 10%, var(--orchid) 55%, var(--stem) 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,46,196,.35));
}
.hero__lead { margin: 1.6rem 0 2.4rem; max-width: 46ch; color: var(--ink-dim); font-size: 1.02rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-dim);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero__scroll span { width: 1px; height: 42px; background: linear-gradient(var(--fuchsia), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* dryfujące płatki */
.hero__petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__petals span {
  position: absolute; top: -8%; color: var(--fuchsia); opacity: .5;
  animation: fall linear infinite; text-shadow: 0 0 14px rgba(255,46,196,.8);
}
.hero__petals span:nth-child(1) { left: 8%;  font-size: 1.1rem; animation-duration: 13s; }
.hero__petals span:nth-child(2) { left: 24%; font-size: .8rem;  animation-duration: 17s; animation-delay: -6s; color: var(--orchid); }
.hero__petals span:nth-child(3) { left: 46%; font-size: 1.4rem; animation-duration: 11s; animation-delay: -3s; }
.hero__petals span:nth-child(4) { left: 61%; font-size: .9rem;  animation-duration: 19s; animation-delay: -10s; color: var(--stem); }
.hero__petals span:nth-child(5) { left: 74%; font-size: 1.2rem; animation-duration: 14s; animation-delay: -8s; color: var(--rose); }
.hero__petals span:nth-child(6) { left: 88%; font-size: .75rem; animation-duration: 21s; animation-delay: -2s; }
.hero__petals span:nth-child(7) { left: 35%; font-size: 1rem;   animation-duration: 16s; animation-delay: -12s; color: var(--orchid); }
@keyframes fall {
  to { transform: translateY(115vh) rotate(420deg); opacity: 0; }
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid rgba(255,46,196,.22);
  background: linear-gradient(90deg, rgba(255,46,196,.08), rgba(180,76,255,.08));
  overflow: hidden; padding: .7rem 0; white-space: nowrap;
}
.marquee__track { display: inline-flex; animation: scroll 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 300; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--rose);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sekcje ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.2rem, 6vw, 6rem); }
.section__head { max-width: 780px; margin-bottom: 3rem; }
.section__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15; margin-bottom: .8rem;
}
.section__title em {
  font-style: normal; font-weight: 300;
  background: linear-gradient(92deg, var(--fuchsia), var(--orchid));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__sub { color: var(--ink-dim); max-width: 56ch; }

/* ---------- karty bukietów ---------- */
.grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}
.card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--bg-2);
  border: 1px solid rgba(180,76,255,.16);
  transition: transform .35s cubic-bezier(.34,1.4,.64,1), border-color .35s, box-shadow .35s;
}
.card:nth-child(even) { transform: translateY(1.4rem); }
.card:hover {
  transform: translateY(-6px) rotate(-.4deg); border-color: var(--glass-edge);
  box-shadow: 0 24px 60px -20px rgba(255,46,196,.35);
}
.card:nth-child(even):hover { transform: translateY(calc(1.4rem - 6px)) rotate(.4deg); }
.card__imgwrap { aspect-ratio: 4/4.6; overflow: hidden; }
.card__imgwrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s;
  filter: saturate(1.08);
}
.card:hover .card__imgwrap img { transform: scale(1.07); filter: saturate(1.25); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; }
.card__tag {
  position: absolute; top: 1rem; left: 1rem;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(13,7,20,.72); color: var(--stem);
  border: 1px solid rgba(168,255,94,.4);
  padding: .35em 1em; border-radius: 999px; backdrop-filter: blur(6px);
}
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-bottom: .45rem; }
.card p { font-size: .86rem; color: var(--ink-dim); min-height: 3.4em; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; }
.card__price { font-family: var(--font-display); font-weight: 600; color: var(--rose); font-size: 1.05rem; }

/* ---------- pracownia ---------- */
.section--split { display: grid; gap: 3.5rem; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 880px) { .section--split { grid-template-columns: 1fr; } }
.split__imgs { position: relative; min-height: 420px; }
.split__img { position: absolute; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,46,196,.25); }
.split__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split__img--a { width: 72%; aspect-ratio: 4/3; top: 0; left: 0; z-index: 1; box-shadow: 0 30px 70px -25px rgba(0,0,0,.8); }
.split__img--b { width: 52%; aspect-ratio: 4/3.4; bottom: 0; right: 0; z-index: 2; transform: rotate(2.5deg); box-shadow: 0 24px 60px -18px rgba(255,46,196,.3); }
.split__list { list-style: none; margin-top: 1.8rem; display: grid; gap: .9rem; }
.split__list li { color: var(--ink-dim); border-left: 2px solid var(--glass-edge); padding-left: 1rem; }
.split__list b { color: var(--stem); font-weight: 600; font-family: var(--font-display); font-size: .8rem; margin-right: .4rem; }
.split__text > p { color: var(--ink-dim); max-width: 52ch; }

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---------- zamówienie ---------- */
.section--order { position: relative; }
.order { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
@media (max-width: 880px) { .order { grid-template-columns: 1fr; } }
.order__intro > p { color: var(--ink-dim); max-width: 44ch; }
.order__hint {
  margin-top: 1.6rem; display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; color: var(--ink-dim);
  border: 1px dashed rgba(168,255,94,.4); border-radius: 999px; padding: .55em 1.2em;
}
.order__hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stem); box-shadow: 0 0 8px var(--stem); animation: pulse 2.2s infinite; }

.order__form { padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .45rem; grid-column: span 2; }
.field--half { grid-column: span 1; }
@media (max-width: 560px) { .field--half { grid-column: span 2; } }
.field label {
  font-family: var(--font-display); font-weight: 400; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--rose);
}
.field__opt { color: var(--ink-dim); text-transform: none; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  background: rgba(13,7,20,.55);
  border: 1px solid rgba(180,76,255,.25); border-radius: 12px;
  padding: .8em 1em; outline: none; transition: border-color .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 3.2em; }
.field input::placeholder, .field textarea::placeholder { color: rgba(185,168,201,.45); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--fuchsia); box-shadow: 0 0 0 3px rgba(255,46,196,.18), 0 0 24px -6px rgba(255,46,196,.4);
}
.field input.is-invalid, .field select.is-invalid { border-color: #ff4d6d; box-shadow: 0 0 0 3px rgba(255,77,109,.15); }
.field input[type="date"] { color-scheme: dark; }
.field__selectwrap { position: relative; }
.field__selectwrap::after {
  content: "❯"; position: absolute; right: 1em; top: 50%;
  transform: translateY(-50%) rotate(90deg); color: var(--fuchsia); pointer-events: none; font-size: .8rem;
}
.order__error { grid-column: span 2; color: #ff8ba0; font-size: .85rem; }
.order__form .btn--full { grid-column: span 2; margin-top: .3rem; }
.order__legal { grid-column: span 2; font-size: .72rem; color: rgba(185,168,201,.55); text-align: center; }

/* ---------- success overlay ---------- */
.success {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(8,3,14,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 1.2rem; animation: fadeIn .3s ease both;
}
@keyframes fadeIn { from { opacity: 0; } }
.success__panel {
  max-width: 440px; width: 100%; padding: 2.6rem 2.2rem 2.2rem; text-align: center;
  background: linear-gradient(160deg, rgba(35,14,50,.92), rgba(17,7,26,.95));
  animation: popIn .5s cubic-bezier(.34,1.5,.64,1) both;
}
@keyframes popIn { from { transform: scale(.8) translateY(24px); opacity: 0; } }
.success__bloom {
  font-size: 3.2rem; line-height: 1; color: var(--fuchsia);
  display: inline-block; margin-bottom: .8rem;
  text-shadow: 0 0 30px rgba(255,46,196,.9);
  animation: bloom 1s cubic-bezier(.34,1.6,.64,1) both .15s;
}
@keyframes bloom { from { transform: scale(0) rotate(-180deg); } }
.success h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; }
.success__id { color: var(--stem); font-size: .85rem; letter-spacing: .1em; margin-top: .3rem; }
.success__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
  margin: 1.5rem 0; border-block: 1px solid rgba(180,76,255,.25); padding: 1rem 0;
}
.success__meta dt { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.success__meta dd { font-weight: 600; font-size: .9rem; margin-top: .25rem; }
.success__note { color: var(--ink-dim); font-size: .85rem; margin-bottom: 1.5rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 95; font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  background: linear-gradient(120deg, var(--stem), #6fe94a); color: #0c2202;
  padding: .8em 1.8em; border-radius: 999px;
  box-shadow: 0 10px 40px -8px rgba(168,255,94,.6);
  animation: toastIn .45s cubic-bezier(.34,1.5,.64,1) both;
}
@keyframes toastIn { from { transform: translate(-50%, 200%); opacity: 0; } }
.toast.is-hiding { animation: toastOut .4s ease both; }
@keyframes toastOut { to { transform: translate(-50%, 200%); opacity: 0; } }

/* ---------- mapa ---------- */
.section--map .section__head { margin-inline: auto; text-align: center; }
.section--map .section__sub { margin-inline: auto; }
.map { position: relative; overflow: hidden; padding: 0; }
#mapCanvas { height: clamp(380px, 55vh, 560px); width: 100%; z-index: 1; }
/* neonowa noc: filtr na kafelkach OSM */
.map .leaflet-tile-pane { filter: grayscale(1) invert(1) hue-rotate(275deg) saturate(2.4) brightness(.72) contrast(1.05); }
.map .leaflet-container { background: #140a1e; font-family: var(--font-body); }
.map__info {
  position: absolute; z-index: 20; top: 1.4rem; right: 1.4rem; width: min(250px, 70%);
  background: rgba(13,7,20,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-edge); border-radius: 16px;
  padding: 1.2rem 1.4rem; font-size: .84rem; color: var(--ink-dim);
}
.map__info h3 { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: .95rem; margin-bottom: .4rem; }
.map__info p { margin-bottom: .55rem; }
.map__info a { color: var(--rose); text-decoration: none; }
.map__info a:hover { color: var(--fuchsia); }
.map__hours { font-size: .78rem; }
@media (max-width: 640px) { .map__info { position: static; width: auto; border: 0; border-top: 1px solid var(--glass-edge); border-radius: 0; } }

/* neonowy marker */
.neo-marker { position: relative; }
.neo-marker::before, .neo-marker::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.neo-marker::before { width: 14px; height: 14px; background: var(--fuchsia); box-shadow: 0 0 14px 3px rgba(255,46,196,.9); }
.neo-marker::after { width: 14px; height: 14px; border: 2px solid var(--fuchsia); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { width: 52px; height: 52px; opacity: 0; } }
.leaflet-popup-content-wrapper { background: #1c0f2a; color: var(--ink); border: 1px solid var(--glass-edge); border-radius: 14px; }
.leaflet-popup-tip { background: #1c0f2a; }
.leaflet-popup-content { font-family: var(--font-body); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid rgba(255,46,196,.15);
  padding: 3rem clamp(1.2rem, 6vw, 6rem); text-align: center; color: var(--ink-dim); font-size: .82rem;
}
.footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); margin-bottom: .9rem; }
.footer__brand em { font-style: normal; font-weight: 300; color: var(--fuchsia); }
.footer a { color: var(--rose); text-decoration: none; }
.footer a:hover { color: var(--fuchsia); }
.footer__fine { margin-top: .8rem; font-size: .7rem; opacity: .6; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .42s; }
.reveal.d5 { transition-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
