:root {
  --navy: #0b1e38;
  --navy-2: #12345f;
  --bg: #ffffff;
  --tint: #f1f5f9;
  --fg: #1e293b;
  --muted: #5b6b80;
  --border: #e2e8f0;
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --accent: #f0b429;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; }

h1, h2, h3 { color: var(--navy); letter-spacing: -.02em; }
h2 { font-size: 1.9rem; margin: 0 0 1.5rem; }
h2::after { content: ""; display: block; width: 3rem; height: 4px; margin-top: .6rem; background: linear-gradient(90deg, var(--cyan), var(--accent)); border-radius: 2px; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem clamp(1rem, 5vw, 3rem);
  background: rgba(11, 30, 56, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav .logo { font-weight: 700; text-decoration: none; color: #fff; }
.nav nav { display: flex; gap: 1.25rem; }
.nav nav a { text-decoration: none; color: #b6c4d8; font-size: .95rem; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav nav a:hover { color: #fff; }
.nav nav a.active { color: #fff; border-bottom-color: var(--cyan); }

/* HERO */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  color: #e6eefb;
  background:
    radial-gradient(40rem 30rem at 85% 20%, rgba(34, 211, 238, .25), transparent 60%),
    radial-gradient(30rem 24rem at 10% 90%, rgba(240, 180, 41, .14), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.05; margin: 1rem 0 1.25rem; letter-spacing: -.03em; }
.tagline { font-size: 1.2rem; color: #c3d1e6; max-width: 36rem; margin: 0 0 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 999px;
}
.chip .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); animation: pulse 2s infinite; }
.chip.dark { color: var(--navy-2); background: rgba(18, 52, 95, .07); border-color: rgba(18, 52, 95, .25); }
.chip.dark .dot { background: var(--teal); }
@keyframes pulse { 70% { box-shadow: 0 0 0 .6rem rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--navy); box-shadow: 0 6px 20px rgba(240, 180, 41, .3); }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.small { padding: .45rem 1.1rem; font-size: .95rem; background: var(--accent); border-color: var(--accent); }

.hero-photo { position: relative; justify-self: center; width: min(100%, 22rem); aspect-ratio: 1; }
.hero-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--navy); }
.hero-photo .ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1b4d8a, #0f5c4d, #5ff2c4, #0f5c4d, #1b4d8a);
  filter: blur(.5px);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* SECTIONS */
.tint { background: var(--tint); }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.about-photo { position: relative; }
.about-photo::before { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: 3px solid var(--accent); border-radius: 1.25rem; z-index: 0; }
.about-photo img { position: relative; z-index: 1; width: 100%; border-radius: 1.25rem; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 20px 40px rgba(11, 30, 56, .2); }
.about-text p { margin: 0 0 1rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  box-shadow: 0 1px 2px rgba(11, 30, 56, .05);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 14px 30px rgba(11, 30, 56, .12); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card.brand p { margin-bottom: 1rem; }

.offer .num { position: absolute; top: 1.25rem; right: 1.5rem; font-weight: 800; font-size: 1.4rem; color: rgba(11, 30, 56, .12); }
.offer .icon { width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: .8rem; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: linear-gradient(135deg, var(--navy-2), var(--teal)); }

.logo-box { display: flex; align-items: center; justify-content: center; height: 8rem; margin-bottom: .5rem; padding: .6rem; background: #fff; border: 1px solid var(--border); border-radius: .8rem; }
.logo-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* W AKCJI */
.action-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1.5rem; align-items: center; }
.action-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 1.25rem; box-shadow: 0 16px 36px rgba(11, 30, 56, .18); }
.action-grid img:first-child { transform: rotate(-2deg); object-position: 50% 0; }
.action-grid img:last-child { transform: rotate(2deg); }
.quote { margin: 1rem 0 0; font-size: 1.5rem; line-height: 1.35; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }

/* KONTAKT */
.contact {
  color: #d3deef;
  background:
    radial-gradient(30rem 20rem at 90% 0%, rgba(34, 211, 238, .2), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
}
.contact h2 { color: #fff; }
.contact p { margin: 0 0 1rem; }
.mail { font-size: clamp(1.25rem, 5vw, 2rem); font-weight: 700; color: var(--accent); text-decoration: none; border-bottom: 2px solid rgba(240, 180, 41, .4); word-break: break-word; }
.mail:hover { border-bottom-color: var(--accent); }
.social { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.social a { display: inline-block; padding: .55rem 1.1rem; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; transition: background .2s, border-color .2s; }
.social a:hover { background: rgba(34, 211, 238, .15); border-color: var(--cyan); }

footer { padding: 1.5rem 0 2rem; color: #8ea0b8; font-size: .9rem; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .08); }

/* REVEAL */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .action-grid img.reveal:first-child.in { transform: rotate(-2deg); }
.js .action-grid img.reveal:last-child.in { transform: rotate(2deg); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 760px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 4rem; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { order: -1; width: min(70%, 15rem); }
  .grid.two { grid-template-columns: 1fr; }
  .about-photo { margin: 0 1rem 0 0; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .action-text { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 480px) {
  .nav { padding: .75rem 1rem; gap: .5rem; }
  .nav .logo { font-size: .95rem; white-space: nowrap; }
  .nav nav { gap: .7rem; }
  .nav nav a { font-size: .85rem; }
}

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