/* ===================================================================
   ROZKWIT — monochromatyczny motyw (czerń & biel)
   Inspiracja: minimalistyczny, wysokokontrastowy styl „tech-editorial"
   =================================================================== */

:root {
  --black:  #000000;
  --ink:    #0a0a0a;
  --white:  #ffffff;
  --paper:  #f4f2ee;   /* lekko ciepła biel dla sekcji jasnych */
  --g-500:  #8a8a8a;
  --g-400:  #a8a8a8;
  --g-300:  #cfccc7;
  --line-d: rgba(255,255,255,.14);   /* linie na ciemnym */
  --line-l: rgba(0,0,0,.14);         /* linie na jasnym  */
  --maxw:   1280px;
  --ease:   cubic-bezier(.22,.61,.36,1);
  --ease-io: cubic-bezier(.76,0,.24,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } }

h1, h2, h3, .brand__name, .plan__price, .marquee, .loader__word {
  font-family: 'Space Grotesk', 'Sora', sans-serif;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }

/* ===== INTRO LOADER ===== */
.loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: transform .9s var(--ease-io);
}
.loader.done { transform: translateY(-100%); }
.loader__inner { display: flex; align-items: baseline; gap: 24px; }
.loader__word { font-size: clamp(1.4rem, 5vw, 3rem); font-weight: 600; letter-spacing: .25em; }
.loader__count { font-family: 'Space Grotesk'; font-size: clamp(1.4rem, 5vw, 3rem); color: var(--g-500); }
.loader__bar { width: min(360px, 60vw); height: 1px; background: var(--line-d); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--white); }

/* ===== WŁASNY KURSOR ===== */
.cursor {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); mix-blend-mode: difference; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%); transition: width .25s var(--ease), height .25s var(--ease);
}
.cursor.hover { width: 56px; height: 56px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ===== NAWIGACJA ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; mix-blend-mode: difference;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), backdrop-filter .35s, border-color .35s;
}
/* po zjechaniu w dół — jednolity ciemny pasek, bez „mieszania" tekstu (blend off) */
.nav.is-scrolled {
  mix-blend-mode: normal;
  background: rgba(8,8,8,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-d);
}
.nav.is-scrolled .brand,
.nav.is-scrolled .nav__links a,
.nav.is-scrolled .nav__cta { color: var(--white); }
.nav.is-scrolled .nav__burger span { background: var(--white); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .35s var(--ease);
}
.nav.is-scrolled .nav__inner { padding-top: 15px; padding-bottom: 15px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand__mark { font-size: .8rem; transform: translateY(-1px); }
.brand__name { font-size: 1.3rem; font-weight: 600; }
.nav__links { display: flex; gap: 34px; }
.nav__links a { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; overflow: hidden; }
.nav__links a span { display: inline-block; transition: transform .4s var(--ease-io); }
.nav__links a:hover span { transform: translateY(-100%); }
.nav__links a { position: relative; }
.nav__links a::after {
  content: attr(data-label); position: absolute; left: 0; top: 100%;
}
.nav__cta {
  color: var(--white); border: 1px solid var(--white); border-radius: 999px;
  padding: 9px 20px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  transition: background .3s, color .3s;
}
.nav__burger { display: none; flex-direction: column; gap: 6px; background: none; border: none; padding: 6px; }
.nav__burger span { width: 26px; height: 2px; background: var(--white); transition: .3s; }

/* ===== PRZYCISKI ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 34px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn--full { width: 100%; }
.btn--solid { background: var(--white); color: var(--black); }
.btn--solid:hover { transform: translateY(-3px); }
.btn--line { border-color: currentColor; color: inherit; }
.btn--line:hover { transform: translateY(-3px); }
/* na ciemnym tle wypełnij bielą przy hover */
.section--dark .btn--line:hover, .hero .btn--line:hover, .footer .btn--line:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.section--light .btn--line:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 0; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 25% 33.33%; opacity: .5; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 100%);
}
.hero__inner { position: relative; padding-top: 140px; padding-bottom: 46px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__eyebrow { display: inline-block; font-size: .82rem; letter-spacing: .1em; color: var(--g-400); margin-bottom: 36px; }
.hero__title { font-size: clamp(2.6rem, 9vw, 8.5rem); font-weight: 500; letter-spacing: -.03em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: italic; font-weight: 400; }
.hero__foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-top: 52px; }
.hero__lead { color: var(--g-300); font-size: 1.05rem; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* Marquee */
.marquee { border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); overflow: hidden; white-space: nowrap; padding: 20px 0; }
.marquee__track { display: inline-flex; gap: 40px; animation: marquee 28s linear infinite; }
.marquee__track span { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; color: var(--white); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== SEKCJE ===== */
.section { padding: 130px 0; position: relative; }
.section--dark { background: var(--black); color: var(--white); }
.section--light { background: var(--paper); color: var(--black); }
.section__head { margin-bottom: 72px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--g-500); margin-bottom: 22px; }
.section--light .eyebrow { color: #6d6a64; }
.section__title { font-size: clamp(1.9rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.02em; }
.section__sub { margin-top: 18px; color: var(--g-500); text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; }

/* ===== O MNIE ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about__text p { font-size: 1.15rem; color: #333; margin-bottom: 22px; }
.about__text strong { color: var(--black); }
.link-arrow { display: inline-block; margin-top: 8px; font-weight: 500; text-transform: uppercase; font-size: .82rem; letter-spacing: .1em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.about__list { list-style: none; }
.about__list li { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line-l); transition: padding-left .35s var(--ease); }
.about__list li:last-child { border-bottom: 1px solid var(--line-l); }
.about__list li:hover { padding-left: 14px; }
.about__list b { font-family: 'Space Grotesk'; font-size: .9rem; color: var(--g-500); }
.about__list strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.about__list div { font-size: .95rem; color: #555; }

/* ===== KAFLE USŁUG (hover-inwersja) ===== */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); border-left: 1px solid var(--line-d); }
.tile {
  position: relative; padding: 44px 36px 40px; min-height: 300px;
  border-right: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease-io);
}
.tile::before {
  content: ''; position: absolute; inset: 0; background: var(--white); z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease-io);
}
.tile:hover { color: var(--black); }
.tile:hover::before { transform: translateY(0); }
.tile__no { font-family: 'Space Grotesk'; font-size: .82rem; color: var(--g-500); margin-bottom: auto; }
.tile:hover .tile__no { color: #555; }
.tile h3 { font-size: 1.7rem; font-weight: 500; margin: 30px 0 14px; }
.tile p { font-size: .95rem; color: var(--g-400); }
.tile:hover p { color: #444; }
.tile__arrow { position: absolute; top: 40px; right: 34px; font-size: 1.4rem; opacity: 0; transform: translate(-8px, 8px); transition: opacity .4s, transform .4s var(--ease-io); }
.tile:hover .tile__arrow { opacity: 1; transform: none; }

/* ===== CENNIK (karuzela) ===== */
.plans { position: relative; }
.plans__stage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; padding: 40px 34px; border: 1px solid var(--line-l); border-radius: 20px;
  background: var(--paper); display: flex; flex-direction: column;
  transition: transform .55s var(--ease-io), box-shadow .45s, filter .5s ease, opacity .5s ease, background .4s, color .4s, border-color .4s;
}
.plans:not(.is-carousel) .plan:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }

/* aktywny pakiet (środek) — czarny */
.plan.is-center { background: var(--black); color: var(--white); border-color: var(--black); box-shadow: 0 40px 90px -40px rgba(0,0,0,.55); }
.plan.is-center .plan__desc { color: var(--g-300); }
.plan.is-center .plan__idx,
.plan.is-center .plan__price span { color: var(--g-400); }
.plan.is-center .plan__features li::before { color: var(--g-400); }

.plan__ribbon {
  position: absolute; top: -13px; left: 34px; background: var(--white); color: var(--black);
  border: 1px solid var(--black); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 14px; border-radius: 999px; z-index: 4;
}
.plan__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.plan__tag { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.plan__idx { font-family: 'Space Grotesk'; font-size: .82rem; color: var(--g-500); }
.plan__price { font-size: 2.6rem; font-weight: 600; margin-bottom: 18px; }
.plan__price span { font-size: .9rem; font-weight: 400; color: var(--g-500); text-transform: uppercase; letter-spacing: .1em; margin-right: 6px; }
.plan__price i { font-style: normal; font-size: 1.3rem; }
.plan__desc { font-size: .92rem; color: #555; margin-bottom: 28px; }
.plan__features { list-style: none; display: grid; gap: 13px; margin-bottom: 32px; flex: 1; }
.plan__features li { position: relative; padding-left: 26px; font-size: .92rem; }
.plan__features li::before { content: '—'; position: absolute; left: 0; color: var(--g-500); }
.plan__bonus { font-weight: 600; }
.plan__bonus::before { content: '★' !important; color: inherit !important; }
.plans__note { text-align: center; margin-top: 44px; color: #555; text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; max-width: 640px; margin-inline: auto; }
.plans__note a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* --- tryb karuzeli (włączany przez JS: .plans.is-carousel) --- */
.plans.is-carousel .plans__stage { display: block; position: relative; }
.plans.is-carousel .plan {
  position: absolute; top: 0; left: 50%; margin: 0;
  width: min(380px, 82vw); will-change: transform, filter, opacity;
}
.plans.is-carousel .plan__ribbon { display: none; }
.plans.is-carousel .plan--featured.is-center .plan__ribbon { display: block; }

.plans__arrow { display: none; }
/* szewrony bez tła i obwódki — same znaki „<" / „>" z delikatnym blurem */
.plans.is-carousel .plans__arrow {
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; padding: 0;
  border: none; background: none;
  color: #fff; mix-blend-mode: difference; /* ciemny na jasnym tle, biały na czarnej karcie */
  font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 400; line-height: 1;
  z-index: 20; cursor: none;
  filter: blur(1.1px); opacity: .5;
  transition: filter .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}
.plans.is-carousel .plans__arrow--prev { left: 4px; }
.plans.is-carousel .plans__arrow--next { right: 4px; }
/* przy najechaniu / focusie blur znika, szewron się wyostrza + „nudge" w stronę ruchu */
.plans.is-carousel .plans__arrow:hover,
.plans.is-carousel .plans__arrow:focus-visible { filter: blur(0); opacity: 1; outline: none; }
.plans.is-carousel .plans__arrow--prev:hover { transform: translateY(-50%) translateX(-5px); }
.plans.is-carousel .plans__arrow--next:hover { transform: translateY(-50%) translateX(5px); }
.plans.is-carousel .plans__arrow:active { transform: translateY(-50%) scale(.9); }
/* na ekranach dotykowych nie ma hovera — szewrony mają być od razu czytelne */
@media (hover: none) {
  .plans.is-carousel .plans__arrow { filter: blur(0.3px); opacity: .82; }
}

/* ===== KONTAKT ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__info > p { color: var(--g-300); font-size: 1.1rem; margin: 8px 0 40px; max-width: 440px; }
.contact__list { list-style: none; display: grid; gap: 2px; }
.contact__list li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-d); align-items: center; }
.contact__list li:last-child { border-bottom: 1px solid var(--line-d); }
.contact__list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--g-500); }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact__form { border: 1px solid var(--line-d); border-radius: 20px; padding: 40px; }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--g-400); margin-bottom: 10px; }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--g-500); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 0; background: transparent; border: none;
  border-bottom: 1px solid var(--line-d); color: var(--white); font: inherit; font-size: 1rem;
  transition: border-color .3s;
}
.field textarea { resize: vertical; }
.field select { cursor: none; }
.field select option { background: var(--black); color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: #555; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--white); }
.field.invalid input, .field.invalid textarea { border-bottom-color: #ff5a5a; }
.contact__form .btn { margin-top: 12px; }
.form__status { margin-top: 16px; font-size: .88rem; text-align: center; min-height: 20px; }
.form__status.ok { color: var(--white); }
.form__status.err { color: #ff8a8a; }
.form__privacy { margin-top: 14px; font-size: .76rem; color: var(--g-500); text-align: center; }
/* ukryte pole antyspamowe (honeypot) — niewidoczne dla ludzi, wypełniają je boty */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ===== STOPKA ===== */
.footer { background: var(--black); padding: 100px 0 40px; border-top: 1px solid var(--line-d); }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding-bottom: 90px; }
.footer__cta h2 { font-size: clamp(2rem, 6vw, 5rem); font-weight: 500; letter-spacing: -.02em; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 34px; border-top: 1px solid var(--line-d); }
.footer__links { display: flex; gap: 26px; }
.footer__links a { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--g-400); transition: color .2s; }
.footer__links a:hover { color: var(--white); }
.footer small { color: var(--g-500); font-size: .82rem; }

/* ===== ANIMACJE POJAWIANIA ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-up { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-io); }
.line.in .reveal-up { transform: none; }

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 960px) {
  .hero__foot { grid-template-columns: 1fr; align-items: start; }
  .hero__actions { justify-content: flex-start; }
  .about, .contact { grid-template-columns: 1fr; gap: 44px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .plans__stage { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .container { padding-inline: 20px; }
  .nav__inner { padding: 18px 20px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; position: fixed; inset: 64px 0 auto 0;
    background: var(--black); mix-blend-mode: normal; padding: 30px 24px; gap: 22px; border-bottom: 1px solid var(--line-d);
  }
  .nav__links.open a { font-size: 1.2rem; }
  .tiles { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
  .contact__form { padding: 26px; }

  /* cennik — karuzela na telefonie */
  .plan { padding: 34px 26px; }
  .plans.is-carousel .plan { width: min(340px, 86vw); }
  .plans.is-carousel .plans__arrow { width: 40px; height: 58px; font-size: 2.1rem; }
  .plans.is-carousel .plans__arrow--prev { left: 0; }
  .plans.is-carousel .plans__arrow--next { right: 0; }
  .plans__note { margin-top: 34px; }
}

/* bardzo wąskie ekrany */
@media (max-width: 380px) {
  .plans.is-carousel .plan { width: 88vw; }
  .plan__price { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
  .loader { display: none; }
}
