@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy: #0b1030;
  --navy-soft: #131a44;
  --blue: #2440d8;
  --blue-bright: #3f5bff;
  --violet: #7b4fff;
  --paper: #f6f8fe;
  --white: #ffffff;
  --ink: #10142b;
  --muted: #565f79;
  --line: #e3e7f7;
}

* { box-sizing: border-box; }

html, body.site { overflow-x: hidden; }

.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11, 16, 48, 0.45);
  z-index: 55;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-backdrop.open { display: block; opacity: 1; }

body.site {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site h1, .site h2, .site h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 248, 254, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-mark { display: flex; align-items: center; gap: 11px; }
.brand-mark .brand-logo-img { height: 48px; width: auto; display: block; flex-shrink: 0; }
.brand-mark .logo-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-bright), var(--violet));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}
.brand-mark .brand-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--ink);
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  width: 44px; height: 44px; padding: 0;
  position: relative;
  z-index: 65;
  box-shadow: 0 2px 8px rgba(11, 16, 48, 0.08);
}
.nav-toggle-inner { position: relative; width: 20px; height: 16px; display: block; }
.nav-toggle-inner span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle-inner span:nth-child(1) { top: 0; }
.nav-toggle-inner span:nth-child(2) { top: 7px; }
.nav-toggle-inner span:nth-child(3) { top: 14px; }
.nav-toggle.active .nav-toggle-inner span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle.active .nav-toggle-inner span:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-inner span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--blue-bright), var(--violet));
  color: #fff; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px -8px rgba(36, 64, 216, 0.55);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(36, 64, 216, 0.6); color: #fff; }
.btn.outline {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1.5px solid var(--line);
}
.btn.outline:hover { border-color: var(--blue-bright); color: var(--blue); transform: none; }
.btn.small { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- O nas (sekcja hero) ---------- */
.section-onas { padding: 88px 0 96px; position: relative; overflow: hidden; }
.onas-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start;
}
.onas-copy .kicker { color: var(--blue); font-weight: 600; font-size: 0.98rem; margin-bottom: 10px; }
.onas-copy h1 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 18px; }
.onas-copy .lead { color: var(--muted); font-size: 1.08rem; max-width: 46ch; margin-bottom: 28px; }
.onas-copy .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.video-block { position: relative; }
.video-block::before {
  content: '';
  position: absolute;
  top: -26px; right: -26px;
  width: 88%; height: 88%;
  background: linear-gradient(140deg, var(--violet), var(--navy) 85%);
  border-radius: 22px;
  transform: rotate(4deg);
  z-index: 0;
}
.video-frame {
  position: relative; z-index: 1;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(11, 16, 48, 0.35);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.onas-text {
  max-width: 68ch; margin-top: 64px; color: var(--muted); font-size: 1.03rem;
}
.onas-text p { margin: 0 0 16px; }

/* ---------- Atuty ---------- */
.section-atuty { padding: 84px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }

.atuty-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 48px;
}
.atut {
  padding: 26px 0 26px 20px;
  border-left: 3px solid var(--line);
  transition: border-color 0.2s ease;
}
.atut:hover { border-left-color: var(--blue-bright); }
.atut h3 { font-size: 1.12rem; margin-bottom: 8px; }
.atut p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Realizacje (ciemna sekcja) ---------- */
.section-realizacje {
  background: var(--navy); color: #fff;
  padding: 88px 0 96px;
}
.section-realizacje .section-head h2 { color: #fff; }
.section-realizacje .section-head p { color: #aab0d6; }

.realizacje-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px;
}
.realizacja-card {
  background: var(--navy-soft);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
}
.realizacja-card:hover { transform: translateY(-4px); border-color: rgba(123, 79, 255, 0.55); }

.mockup {
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column;
}
.mockup-bar {
  display: flex; gap: 6px; padding: 12px 14px;
  background: rgba(255,255,255,0.04);
}
.mockup-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.mockup-body {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.3rem; color: rgba(255,255,255,0.92);
}
.mockup-shot {
  flex: 1; width: 100%; object-fit: cover; object-position: top center;
  display: block;
}

.realizacja-info { padding: 20px 22px 24px; }
.realizacja-info h3 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.realizacja-info p { color: #aab0d6; font-size: 0.93rem; margin: 0 0 14px; }
.realizacja-info .visit { color: #b8c2ff; font-size: 0.88rem; font-weight: 600; }
.realizacja-card:hover .visit { color: #fff; }

/* ---------- Panel klienta CTA ---------- */
.section-panel { padding: 90px 0; }
.panel-card {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: 56px 40px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue-bright), var(--violet));
  color: #fff;
}
.panel-card h2 { color: #fff; font-size: 1.9rem; margin-bottom: 14px; }
.panel-card p { color: rgba(255,255,255,0.88); max-width: 48ch; margin: 0 auto 28px; }
.panel-card .btn.outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.panel-card .btn.outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.panel-card .admin-link { display: block; margin-top: 22px; font-size: 0.87rem; color: rgba(255,255,255,0.75); }
.panel-card .admin-link a { text-decoration: underline; }

/* ---------- Kontakt (stopka) ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-intro { flex: 1 1 320px; max-width: 420px; }
.footer-grid h2 { color: #fff; font-size: 1.6rem; margin-bottom: 18px; }
.contact-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.05rem; }
.contact-line a { color: #fff; font-weight: 600; }
.contact-line a:hover { color: #b8c2ff; }
.footer-note { color: #7d84ad; font-size: 0.88rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  color: #7d84ad; font-size: 0.85rem;
}
.footer-bottom a { color: #aab0d6; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Formularz kontaktowy ---------- */
.contact-form-card {
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 32px;
  flex: 1 1 320px;
  max-width: 420px;
}
.contact-form-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.contact-form-card .form-sub { color: #aab0d6; font-size: 0.9rem; margin: 0 0 20px; }
.contact-form-card .field { margin-bottom: 16px; }
.contact-form-card label { display: block; color: #d3d7f0; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.contact-form-card input[type=email],
.contact-form-card textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06); color: #fff;
  font-family: inherit; font-size: 0.94rem;
}
.contact-form-card textarea { min-height: 100px; resize: vertical; }
.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder { color: #7d84ad; }
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none; border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(63, 91, 255, 0.25);
}
.contact-form-card .btn { width: 100%; border: none; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-alert {
  padding: 13px 16px; border-radius: 10px; font-size: 0.92rem; margin-bottom: 20px;
}
.form-alert.success { background: rgba(63, 91, 255, 0.15); color: #cfd7ff; border: 1px solid rgba(63, 91, 255, 0.4); }
.form-alert.error { background: rgba(226, 76, 76, 0.15); color: #ffb4b4; border: 1px solid rgba(226, 76, 76, 0.4); }

/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
  .onas-grid { grid-template-columns: 1fr; }
  .video-block { order: -1; }
  .onas-copy h1 { font-size: 2.1rem; }
  .atuty-grid { grid-template-columns: 1fr; }
  .realizacje-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(78vw, 320px);
    background: var(--paper);
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    padding: 100px 28px 28px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 58;
    box-shadow: -20px 0 40px -20px rgba(11, 16, 48, 0.35);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .section-onas, .section-atuty, .section-realizacje, .section-panel { padding: 56px 0; }
  .panel-card { padding: 40px 24px; }
  .footer-grid { flex-direction: column; }
}
