:root {
  --bg-main: #020617;
  --bg-alt: #05081a;
  --bg-card: #050b1f;
  --bg-card-alt: #070e25;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-strong: #f97316;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.45);
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --transition-fast: 0.2s ease-out;
  --transition-med: 0.35s ease-out;
  --max-width: 1180px;
  --nav-height: 72px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.08),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(249, 115, 22, 0.08),
      transparent 55%
    ),
    var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

/* LAYOUT HELPERS */

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

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.6),
    transparent 60%
  );
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--accent);
}

.section-intro {
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  transition: width var(--transition-med);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active,
.main-nav .nav-cta {
  color: var(--text-main);
}

.nav-cta {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.08),
    rgba(249, 115, 22, 0.08)
  );
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* MOBILE NAV */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

/* HERO */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text p {
  color: var(--text-muted);
  max-width: 580px;
}

.hero-actions {
  margin: 1.8rem 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

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

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.2),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(249, 115, 22, 0.2),
      transparent 55%
    ),
    var(--bg-card-alt);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card img {
  border-radius: calc(var(--radius-xl) - 0.5rem);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-card-badge {
  position: absolute;
  left: 1.3rem;
  bottom: 1.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.75rem;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats > div {
  flex: 1 1 90px;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7)
  );
}

.stat-number {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast),
    border var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.45);
}

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

.btn.secondary:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: var(--accent);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.35);
}

.btn.ghost:hover {
  border-color: var(--accent);
}

.btn.full-width {
  width: 100%;
}

/* GRIDS */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* FEATURES */

.features-grid .feature-card {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(
      circle at top,
      rgba(56, 189, 248, 0.12),
      transparent 60%
    ),
    var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.4);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border var(--transition-med);
}

.features-grid .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.65);
  border-color: var(--accent);
}

.features-grid h3 {
  margin-bottom: 0.5rem;
}

/* CATEGORIES */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border var(--transition-med);
}

.category-card img {
  height: 220px;
  object-fit: cover;
}

.category-body {
  padding: 1.4rem 1.5rem 1.5rem;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.65);
  border-color: var(--accent);
}

/* STEPS */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.steps-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-item {
  position: relative;
  padding: 1.7rem 1.5rem 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.1),
      transparent 60%
    ),
    var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* OPINIONS */

.opinions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.opinion-card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}

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

.opinion-card h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.15rem;
}

.opinion-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CONTACT HIGHLIGHT */

.contact-highlight {
  padding-bottom: 4.8rem;
}

.contact-highlight-inner {
  border-radius: var(--radius-xl);
  padding: 2.2rem 2.3rem;
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.24),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(249, 115, 22, 0.2),
      transparent 60%
    ),
    #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.8);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.3rem;
}

.contact-info-box {
  padding: 1.7rem 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.contact-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.contact-info-box li {
  margin-bottom: 0.45rem;
}

/* PAGE HERO GENERIC */

.page-hero {
  padding: 3.2rem 0 2.3rem;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 720px;
}

.page-hero-media img {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.legal-hero {
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

/* TWO COLUMNS */

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.4rem;
}

/* LISTS */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.numbered-list {
  padding-left: 1.1rem;
}

/* TEAM */

.team-grid .team-card {
  padding: 1.2rem 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}

.team-card img {
  border-radius: 1rem;
  margin-bottom: 0.8rem;
}

/* ARTICLE LIST (PORADY) */

.article-list {
  display: grid;
  gap: 1.6rem;
}

.article-card {
  padding: 1.7rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.article-card h2 {
  font-size: 1.25rem;
}

/* CONTACT PAGE */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.3rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
}

.contact-list li {
  margin-bottom: 1rem;
}

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

.contact-form-card {
  border-radius: var(--radius-xl);
  padding: 1.9rem 1.9rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(
      circle at top right,
      rgba(56, 189, 248, 0.16),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.9);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 1);
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row-inline {
  align-items: flex-start;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox input {
  margin-top: 0.15rem;
}

/* LEGAL PAGES */

.legal {
  font-size: 0.95rem;
}

.legal h2 {
  margin-top: 1.8rem;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 3rem;
  padding-top: 2.6rem;
  padding-bottom: 1.6rem;
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.9),
    rgba(2, 6, 23, 1)
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 2.2rem;
  font-size: 0.9rem;
}

.footer-logo {
  margin-bottom: 0.6rem;
}

.site-footer p {
  color: var(--text-muted);
}

.site-footer h3 {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.footer-legal {
  margin-top: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.8);
  margin-top: 1.8rem;
  padding-top: 0.8rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ANIMATIONS (SCROLL REVEAL) */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid,
  .page-hero-inner,
  .two-cols,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.4rem;
  }

  .contact-highlight-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .opinions-grid,
  .categories-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    inset: var(--nav-height) 0 auto 0;
    background: rgba(2, 6, 23, 0.98);
    padding: 1rem 1.5rem 1.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease-out, opacity 0.22s ease-out;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid {
    gap: 2.3rem;
  }

  .section {
    padding: 3.3rem 0;
  }

  .contact-highlight-inner {
    padding: 1.8rem 1.6rem;
  }

  .grid-4,
  .grid-3,
  .steps,
  .steps-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card-badge {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    text-align: center;
  }
}

/* COOKIE BANNER */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid var(--border-subtle);
  padding: 0.9rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-banner__text {
  flex: 1 1 220px;
  max-width: 720px;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: var(--accent-strong);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease-out, border-color 0.2s ease-out,
    color 0.2s ease-out, transform 0.15s ease-out;
}

.cookie-btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b1120;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.35);
}

.cookie-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(56, 189, 248, 0.45);
}

.cookie-btn--ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

.cookie-btn--ghost:hover {
  border-color: var(--accent);
}

/* Responsive cookie banner */
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
