:root {
  --color-bg: #0b1220;
  --color-surface: #1a1f38;
  --color-accent-blue: #2c3d72;
  --color-accent-purple: #6b3ef4;
  --color-text: #cfd9ff;
  --color-muted: rgba(207, 217, 255, 0.7);
  --shadow-soft: 0 18px 45px rgba(14, 22, 41, 0.35);
  --radius: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(108, 63, 244, 0.18), transparent 55%),
  radial-gradient(circle at 80% 20%, rgba(44, 61, 114, 0.25), transparent 60%),
  radial-gradient(circle at 20% 80%, rgba(107, 62, 244, 0.2), transparent 60%),
  var(--color-bg);
}

body, button, input, textarea {
  font-size: 1rem;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent-purple);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(207, 217, 255, 0.1);
}

.topbar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1rem;
}

.site-nav {
  position: fixed;
  inset: 72px 0 auto;
  background: rgba(26, 31, 56, 0.95);
  padding: 1.5rem 1.25rem;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-soft);
  max-width: 320px;
  margin-left: auto;
  margin-right: 1rem;
  border-radius: var(--radius);
}

.site-nav.open {
  transform: translateY(0);
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(107, 62, 244, 0.2);
  color: var(--color-text);
}

.burger {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(207, 217, 255, 0.15);
  background: rgba(26, 31, 56, 0.8);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

[data-burger][aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

[data-burger][aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

[data-burger][aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

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

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 10% 5% auto;
  height: 100%;
  background: radial-gradient(circle, rgba(44, 61, 114, 0.18), transparent 60%);
  z-index: -1;
}

.section:nth-of-type(even)::before {
  background: radial-gradient(circle, rgba(107, 62, 244, 0.16), transparent 60%);
}

.section__header {
  max-width: 720px;
  margin-bottom: 2rem;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--color-text);
  max-width: 32rem;
}

#hero {
  position: relative;
  padding-top: 11rem;
  padding-bottom: 11rem;
  overflow: hidden;
  background-image: url('/assets/img/tlo_strona.png');
  background-size: 1100px;
  background-position: 60% -111px;
  background-repeat: no-repeat;
  background-color: #05091f;
}

/* delikatne przyciemnienie TŁA — tekst pozostaje 100% widoczny */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 21, 65, 0.67); /* przezroczysty overlay */
  z-index: 1;
  pointer-events: none;
}

/* tekst ma być na wierzchu */
#hero .hero__content,
#hero * {
  position: relative;
  z-index: 2;
}

/* opcjonalnie: gradient maskujący lewą stronę (wygląda świetnie) */
#hero::before {
  content: "";
  position: absolute;
  inset: 0 30% 0 0;
  background: linear-gradient(
          to left,
          rgba(0,0,0,0) 0%,
          rgba(0,0,0,0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}


.hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  background-image: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
  color: var(--color-text);
  box-shadow: 0 14px 30px rgba(107, 62, 244, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(107, 62, 244, 0.45);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(207, 217, 255, 0.35);
  box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(207, 217, 255, 0.08);
  transform: none;
}

.cards {
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(11, 18, 32, 0.5);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(44, 61, 114, 0.55), rgba(107, 62, 244, 0.45));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-text);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: rgba(26, 31, 56, 0.6);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(207, 217, 255, 0.1);
}

.timeline__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(44, 61, 114, 0.45), rgba(107, 62, 244, 0.35));
}

.timeline__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-text);
}

.badge-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(107, 62, 244, 0.18);
  border: 1px solid rgba(207, 217, 255, 0.18);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faq details {
  background: rgba(26, 31, 56, 0.6);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(207, 217, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.faq details + details {
  margin-top: 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 1.25rem;
  background: rgba(26, 31, 56, 0.75);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(207, 217, 255, 0.12);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form label,
.form__consent span {
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(207, 217, 255, 0.2);
  background: rgba(11, 18, 32, 0.6);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:hover,
textarea:hover {
  border-color: rgba(107, 62, 244, 0.6);
}

input:focus,
textarea:focus {
  border-color: rgba(107, 62, 244, 0.8);
  box-shadow: 0 0 0 3px rgba(107, 62, 244, 0.25);
  outline: none;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.form__consent input {
  width: auto;
  margin-top: 0.2rem;
}

.muted {
  color: var(--color-muted);
}

.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(207, 217, 255, 0.1);
  background: rgba(11, 18, 32, 0.95);
}

.footer__content {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.footer__socials {
  display: inline-flex;
  gap: 1rem;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 31, 56, 0.8);
  border: 1px solid rgba(207, 217, 255, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.footer__socials a:hover,
.footer__socials a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(107, 62, 244, 0.7);
}

.footer__socials svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
}

.grid {
  display: grid;
}
@media (max-width: 640px) {
  #hero-title {
    font-size: 1.8rem

  }
  #hero::after {
    background: rgba(14, 21, 65, 0.89);
  }
}
@media (min-width: 640px) {
  .site-nav {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    max-width: none;
  }

  .site-nav ul {
    display: flex;
    gap: 1.5rem;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
  }

  .burger {
    display: none;
  }

  .topbar__content {
    min-height: 80px;
  }

  .hero__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__text {
    max-width: 36rem;
  }

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

  .timeline {
    gap: 2rem;
  }
}

@media (min-width: 960px) {
  .section {
    padding: 6rem 0;
  }

  .hero {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .footer__content {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .footer__content p:last-child {
    text-align: right;
  }
}

/* Two-column contact layout */
.contact__inner{
  display: grid;                 /* already set in your CSS, but we ensure columns here */
  grid-template-columns: 1fr 1fr;/* left info / right form */
  gap: 2.5rem;
  align-items: start;
}

/* Left column card */
.contact__info{
  background: var(--color-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.contact__info h3{
  margin-bottom: 0.5rem;
}

.contact__list{
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--color-text);
}

.contact__list a{
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 3px;
}

.contact__bullet{
  display: inline-flex;
  width: 1.5rem;
  justify-content: center;
  margin-right: 0.5rem;
  opacity: 0.9;
}

.contact__note{
  margin-top: 1.25rem;
  color: var(--color-muted);
}

/* Right column: form spacing aligns with your .contact__form/.field styles */
.contact__form{
  display: grid;
  gap: 1.2rem;
}

/* Message feedback style */
.contact__feedback{
  color: var(--color-accent);
  font-weight: 600;
}

/* Responsive: stack on mobile */
@media (max-width: 900px){
  .contact__inner{
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact__info{ order: 2; }   /* optional: form first on small screens */
  .contact__form{ order: 1; }
}
