:root {
  --primary: #059669;
  --primary-dark: #047857;
  --accent: #f97316;

  --bg: #0f172a;
  --bg-soft: #111827;

  --text: #e5e7eb;
  --text-muted: #9ca3af;

  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.65);
  --max-width: 1120px;
  --body-bg: radial-gradient(circle at top, #1d2233, #020617 55%);
}

/* MOTYW JASNY – nadpisania */
:root[data-theme="light"] {
  --primary: #16a34a;
  --primary-dark: #22c55e;
  --accent: #7c3aed;

  --bg: #f3f4f6;
  --bg-soft: #ffffff;

  --text: #0f172a;
  --text-muted: #4b5563;

  --border-subtle: rgba(148, 163, 184, 0.4);
  --shadow-soft: 0 18px 35px rgba(148, 163, 184, 0.35);
  --body-bg: radial-gradient(circle at top, #e5e7eb, #f9fafb 55%);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* wyjustowanie tekstów w treści strony */
main p,
main li {
  text-align: justify;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.7));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

:root[data-theme="light"] header {
  background: linear-gradient(to bottom, rgba(249, 250, 251, 0.96), rgba(249, 250, 251, 0.88));
  border-bottom-color: rgba(148, 163, 184, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f97316, #22c55e);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.6);
}

:root[data-theme="light"] .logo-mark {
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.15s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  transition: width 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* PRZYCISKI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition:
    transform 0.1s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

/* główne przyciski – spójny zielono–turkusowy gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #022c22;
  box-shadow: 0 14px 35px rgba(5, 150, 105, 0.55);
}

:root[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #022c22;
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(5, 150, 105, 0.7);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.6);
}

:root[data-theme="light"] .btn-outline {
  background: linear-gradient(135deg, #e0f2fe, #e5f9f0);
  color: #075985;
  border-color: #bae6fd;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.9);
}

:root[data-theme="light"] .btn-outline:hover {
  background: #dbeafe;
}

.btn span.chevron {
  font-size: 1.1rem;
  transform: translateY(1px);
}

/* PŁYWAJĄCY PRZYCISK TRYBU D/N W PRAWYM GÓRNYM ROGU */
.theme-toggle-floating {
  position: fixed;
  top: 0.9rem;
  right: 1rem;
  z-index: 60;
  padding: 0.35rem 0.7rem;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.6);
}

:root[data-theme="light"] .theme-toggle-floating {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
}

.theme-toggle .theme-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* mobile nav */
.nav-toggle {
  display: none;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  margin: 3px 0;
}

.nav-mobile {
  display: none;
}

/* HERO */
.hero {
  position: relative;
  padding: 2.6rem 0 1.8rem;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top, rgba(148, 163, 184, 0.16), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

:root[data-theme="light"] .badge {
  background: rgba(243, 244, 246, 0.9);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.hero-title {
  font-size: clamp(2rem, 2.7vw + 1.3rem, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-title-main {
  display: block;
}

.hero-title-name {
  display: block;
  font-weight: 700;
  background: linear-gradient(120deg, #22c55e, #a3e635, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-meta strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}

.hero-card {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 60%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.4rem;
  position: relative;
  overflow: hidden;
  display: flex;
}

:root[data-theme="light"] .hero-card {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 60%),
    linear-gradient(to bottom, #ffffff, #f9fafb);
  border-color: rgba(148, 163, 184, 0.5);
}

.hero-card-blur {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(248, 250, 252, 0.09), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
}

.hero-card-header {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.4rem;
}

.hero-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.7rem;
}

.pill {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
}

/* jaśniejsze „pigułki” i badge w trybie jasnym */
:root[data-theme="light"] .pill,
:root[data-theme="light"] .testimonial-badge {
  background: #e5f0ff;
  color: #0f172a;
  border-color: #93c5fd;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.8rem;
}

.stat {
  padding: 0.5rem 0.6rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed rgba(148, 163, 184, 0.5);
}

:root[data-theme="light"] .stat {
  background: #f9fafb;
  border-color: rgba(148, 163, 184, 0.6);
}

.stat strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

/* SEKCJE */
section {
  padding: 2.2rem 0;
}

.section-header {
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.section-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

/* O NAS */
#onas .content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.card {
  background: var(--bg-soft);
  border-radius: 1rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.1rem;
  font-size: 0.85rem;
}

.values-grid div {
  padding: 0.65rem 0.7rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed rgba(148, 163, 184, 0.45);
}

/* jaśniejsze kafelki w trybie dziennym */
:root[data-theme="light"] .values-grid div {
  background: #eef2ff;
  border-color: rgba(148, 163, 184, 0.5);
  color: #0f172a;
}

/* USŁUGI */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

/* ZESPÓŁ – SIATKA 2×2 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
/* Karty zespołu z avatarami */
.team-card {
  display: flex;
  flex-direction: column;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.45rem;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.5);
}

:root[data-theme="light"] .team-avatar {
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.6);
}

.team-card .service-tag {
  margin-bottom: 0.1rem; /* trochę bliżej nazwiska */
}

.team-card .service-title {
  margin-bottom: 0.2rem;
}

.service-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1rem;
  padding: 1.3rem 1.2rem 1.1rem;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  font-size: 0.88rem;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.service-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.service-list {
  list-style: none;
  margin: 0.6rem 0 0.9rem;
  padding-left: 0;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-list span.bullet {
  margin-top: 0.2rem;
}

.service-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-price strong {
  color: var(--text);
  font-size: 1rem;
}

/* REALIZACJE */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.testimonial {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.2rem 1.1rem;
  font-size: 0.86rem;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: "“";
  position: absolute;
  font-size: 3rem;
  opacity: 0.06;
  top: -0.5rem;
  right: 0.5rem;
}

.testimonial p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  white-space: nowrap;
}

/* OPINIE – MARQUEE */
.opinions-marquee {
  overflow: hidden;
  border-radius: 1.1rem;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.36), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 0.5rem;
}

:root[data-theme="light"] .opinions-marquee {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), #ffffff);
}

.opinions-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  /* wolniejsze przesuwanie komentarzy */
  animation: opinionsScroll 50s linear infinite;
}

/* zatrzymanie przesuwania opinii po najechaniu kursorem */
.opinions-marquee:hover .opinions-track {
  animation-play-state: paused;
}

.opinion-card {
  min-width: 260px;
  max-width: 320px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  /* więcej przestrzeni w środku */
  padding: 1.15rem 1.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

:root[data-theme="light"] .opinion-card {
  background: #ffffff;
}

.opinion-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
}

.opinion-meta {
  margin-top: 0.7rem;
  font-size: 0.8rem;
}

.opinion-name {
  font-weight: 600;
  color: var(--text);
  display: block;
}

.opinion-role {
  color: var(--text-muted);
}

@keyframes opinionsScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opinions-track {
    animation: none;
  }
}

/* LOGOTYPY / IKONY TECHNOLOGII */
.tech-icons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin: 0.5rem 0 2.2rem;
}

.tech-icons-row img {
  max-height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.25));
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}

.tech-icons-row img:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.35));
  opacity: 0.95;
}

:root[data-theme="light"] .tech-icons-row img {
  filter: drop-shadow(0 4px 10px rgba(148, 163, 184, 0.45));
}

/* CTA PAS */
.cta-strip {
  margin-top: 0.8rem;
  padding: 1.1rem 1.3rem;
  border-radius: 1rem;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.9), rgba(56, 189, 248, 0.9));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  color: #eff6ff;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.cta-strip strong {
  font-size: 1rem;
}

/* przycisk w CTA w tej samej kolorystyce co inne */
.cta-strip .btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #022c22;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.55);
}

:root[data-theme="light"] .cta-strip {
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.95), rgba(129, 140, 248, 0.95));
  color: #f9fafb;
}

:root[data-theme="light"] .cta-strip .btn {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #022c22;
}

/* KONTAKT */
#kontakt {
  padding-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

:root[data-theme="light"] .card,
:root[data-theme="light"] .service-card,
:root[data-theme="light"] .contact-card,
:root[data-theme="light"] .testimonial {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 35px rgba(148, 163, 184, 0.35);
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-items {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.contact-items span.label {
  display: inline-block;
  width: 4.5rem;
  color: var(--text-muted);
}

.contact-items div {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.contact-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

form {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.field label {
  color: var(--text);
}

.field span.required {
  color: var(--accent);
  margin-left: 0.15rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  resize: vertical;
  min-height: 44px;
}

textarea {
  min-height: 120px;
}

input:focus,
textarea:focus {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.9);
  background: rgba(15, 23, 42, 1);
}

:root[data-theme="light"] input[type="text"],
:root[data-theme="light"] input[type="email"],
:root[data-theme="light"] input[type="tel"],
:root[data-theme="light"] textarea {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text);
}

:root[data-theme="light"] input:focus,
:root[data-theme="light"] textarea:focus {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.7);
}

.field small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.error {
  color: var(--accent);
  font-size: 0.78rem;
  margin-top: 0.15rem;
  display: none;
}

.error.visible {
  display: block;
}

.form-success {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #22c55e;
  display: none;
}

.form-success.visible {
  display: block;
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 0 1.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* ANIMACJE POJAWIANIA SIĘ PRZY SCROLLU */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 0.6rem;
  }

  #onas .content,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid,
  .testimonials-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  nav ul,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-mobile {
    display: none;
    padding-bottom: 0.9rem;
  }

  .nav-mobile.open {
    display: grid;
    gap: 0.75rem;
  }

  .nav-mobile a {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .nav-mobile a + a {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 0.55rem;
  }

  .services-grid,
  .testimonials-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.1rem;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-toggle-floating {
    top: 0.7rem;
    right: 0.7rem;
  }
}

/* SELECT STATUSU WIADOMOŚCI W PANELU ADMINA */
.status-select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.25rem 0.6rem;
  background: rgba(15, 23, 42, 0.9); /* ciemne tło w trybie nocnym */
  color: var(--text);
  font-size: 0.78rem;
}

/* jaśniejsze tło w trybie dziennym */
:root[data-theme="light"] .status-select {
  background: #e5f0ff;   /* jasny niebieski, jak w innych elementach */
  color: #0f172a;        /* ciemny tekst */
  border-color: #93c5fd;
}

/* === PARALLAX TŁA HERO === */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: -120px 0 auto 0;
  height: 260%;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.18) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.12) 1px, transparent 0);
  background-size: 40px 40px, 80px 80px;
  mix-blend-mode: soft-light;
  transform: translate3d(0, 0, 0);
  z-index: -3;
}

.hero-bg-blob {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.4), rgba(79, 70, 229, 0.18));
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -2;
}

.hero-bg-blob-left {
  top: -140px;
  left: -120px;
}

.hero-bg-blob-right {
  top: 40%;
  right: -150px;
}

/* === ILUSTRACJA PIPELINE DEVOPS W HERO === */
.hero-illustration {
  margin: 0.9rem 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.7rem;
}

:root[data-theme="light"] .hero-illustration {
  background: #eef5ff;
}

.hero-ill-step {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-ill-step--code {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
}

.hero-ill-step--pipeline {
  background: linear-gradient(135deg, #6366f1, #22c55e);
}

.hero-ill-step--prod {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.hero-ill-step--sec {
  background: linear-gradient(135deg, #f97316, #ef4444); /* pomarańcz + czerwony = security vibes */
}

.hero-ill-step--monitor {
  background: linear-gradient(135deg, #22c55e, #0ea5e9); /* zielony → niebieski, monitoring/metyki */
}

.hero-ill-arrow {
  opacity: 0.7;
}

/* === LEKKI MOCKUP 3D LAPTOPA / SERWERA === */
.hero-mockup {
  position: absolute;
  right: 6%;
  bottom: -110px;        /* mocniej opuszczony pod sekcję – nie nachodzi na treść */
  width: 230px;          /* lekko zmniejszony, żeby był subtelniejszy */
  height: 150px;
  pointer-events: none;
  transform: perspective(1100px) rotateX(18deg) rotateY(-26deg) rotateZ(1deg);
  transform-origin: center;
}


.hero-mockup-base {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.4rem;
  background: linear-gradient(140deg, #020617, #0f172a);
  box-shadow:
    0 26px 60px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

:root[data-theme="light"] .hero-mockup-base {
  background: linear-gradient(140deg, #0f172a, #111827);
}

.hero-mockup-screen {
  position: absolute;
  inset: 16px 18px auto 18px;
  height: 68%;
  border-radius: 1rem;
  background: radial-gradient(circle at 10% 0%, #22c55e, transparent 55%),
              radial-gradient(circle at 90% 100%, #38bdf8, transparent 55%);
  overflow: hidden;
}

.hero-mockup-screen-inner {
  position: absolute;
  inset: 10px;
  border-radius: 0.75rem;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.7) 40%, rgba(148, 163, 184, 0.25) 40%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 24%, rgba(148, 163, 184, 0.25) 24%);
  background-size: 100% 6px, 100% 20px;
  opacity: 0.9;
}

/* chowamy mockup na małych ekranach */
@media (max-width: 960px) {
  .hero-mockup {
    display: none;
  }
}

/* === MAŁA ILUSTRACJA INFRA W „ŚRODOWISKO PRACY” === */
/* Mini ilustracja infrastruktury – Środowisko pracy */
.infra-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap; /* NIE ZAWIJAJ elementów do nowej linii */
  overflow-x: auto; /* pozwól przewijać w poziomie na małych ekranach */
  max-width: 100%;
  margin: 1.5rem auto 1.2rem;
  padding-bottom: 0.25rem;
  scrollbar-width: none; /* ukryj pasek przewijania w Firefoksie */
}

.infra-flow::-webkit-scrollbar {
  display: none; /* ukryj pasek przewijania w Chrome/Safari */
}


.infra-flow-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.02); /* delikatne tło */
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  font-size: 0.9rem;
  white-space: nowrap;
}

.infra-flow-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #0f172a;
  font-size: 0.8rem;
}

.infra-flow-label {
  font-weight: 500;
}

.infra-flow-arrow {
  font-size: 0.9rem;
  opacity: 0.55;
  margin: 0 0.25rem;
}


/* === DELIKATNE ORGANICZNE TŁO POD SEKCJĄ „TECHNOLOGIE” === */
#technologie {
  position: relative;
}

#technologie::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.30), rgba(129, 140, 248, 0.10));
  filter: blur(26px);
  opacity: 0.55;
  right: -160px;
  top: -120px;
  pointer-events: none;
  z-index: -1;
}

/* === ANIMACJE IKON – LEKKIE PODSKOCZENIE / OBRÓT === */
.icon-left,
.service-icon,
.tech-icons-row img {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover .icon-left {
  transform: translateY(-1px);
}

.service-card:hover .service-icon {
  transform: translateY(-2px) rotate(-3deg);
}

.tech-icons-row img:hover {
  transform: translateY(-3px);
}

/* === FEEDBACK Z IKONKĄ ✅ === */
.form-success {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #22c55e;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-success.visible {
  display: flex;
}

.form-success-icon {
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.1rem;
}
