/* ==========================================================================
   Wróbel Nauka Jazdy — główny arkusz stylów
   ========================================================================== */

:root {
  --primary: #1b8fd6;
  --primary-dark: #0f6ba3;
  --primary-light: #e3f2fb;
  --dark: #232f3a;
  --dark-soft: #37475a;
  --text: #33414e;
  --text-muted: #64748b;
  --bg: #f6f9fc;
  --white: #ffffff;
  --surface: #ffffff;
  --heading: #232f3a;
  --border: #e2e8f0;
  --accent: #f59e0b;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 6px 24px rgba(16, 42, 67, 0.10);
  --shadow-lg: 0 16px 48px rgba(16, 42, 67, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--alt {
  background: var(--surface);
}

.stack {
  display: grid;
  gap: 1.4rem;
}

.section__intro {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Przycisk
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(27, 143, 214, 0.35);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

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

.btn--light {
  background: var(--white);
  color: var(--primary-dark);
}

.btn--light:hover {
  transform: translateY(-2px);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Pasek górny + nawigacja
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: center;
}

.topbar a {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar a:hover { color: var(--white); }

.topbar svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--heading);
}

.brand:hover { color: var(--heading); }

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.brand span small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-soft);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav a.is-active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav .nav__cta {
  margin-left: 0.5rem;
  background: var(--primary);
  color: var(--white);
}

.nav .nav__cta:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Przełącznik motywu jasny/ciemny
   -------------------------------------------------------------------------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--dark-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

/* --------------------------------------------------------------------------
   Pasek ważnego komunikatu (np. remont biura)
   -------------------------------------------------------------------------- */

.alert-banner {
  background: linear-gradient(180deg, #eef6fc 0%, #f3f8fc 100%);
  padding: 1.4rem 0 0.2rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.alert-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(120deg, #fffaf0, #fff4dc);
  border: 1.5px solid #f3ce84;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: 0 8px 24px rgba(180, 120, 10, 0.12);
}

.alert-banner__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
  animation: alert-pulse 2.4s ease-in-out infinite;
}

.alert-banner__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

@keyframes alert-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

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

.alert-banner__text {
  flex-grow: 1;
}

.alert-banner__text strong {
  display: block;
  color: #92400e;
  font-size: 1.05rem;
}

.alert-banner__text p {
  margin: 0.1rem 0 0;
  color: #78542a;
  font-size: 0.95rem;
}

.alert-banner__btn {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.alert-banner__btn:hover {
  background: #d97706;
  color: var(--white);
  transform: translateY(-2px);
}

.alert-banner__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .alert-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .alert-banner__btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(27, 143, 214, 0.16), transparent 60%),
    linear-gradient(180deg, #eef6fc 0%, var(--bg) 100%);
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.2rem;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

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

.hero__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
}

.hero__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.4rem 0;
}

.hero__price strong {
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--heading);
  font-weight: 800;
}

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

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.hero__note {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__note svg {
  width: 18px;
  height: 18px;
  fill: #16a34a;
  flex-shrink: 0;
}

.hero__figure {
  position: relative;
  margin: 0;
}

.hero__figure img {
  width: min(360px, 100%);
  margin-inline: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

/* --------------------------------------------------------------------------
   Statystyki
   -------------------------------------------------------------------------- */

.stats {
  background: var(--dark);
  color: var(--white);
  padding: 1.8rem 0;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: #7cc7ef;
}

.stat span {
  font-size: 0.88rem;
  color: #b8c4d0;
}

/* --------------------------------------------------------------------------
   Karty atutów
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.feature h3 {
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Miejsca rozpoczęcia jazd
   -------------------------------------------------------------------------- */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pill-list svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Sekcja CTA
   -------------------------------------------------------------------------- */

.cta {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  border-radius: calc(var(--radius) + 6px);
  color: var(--white);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 0.3rem;
}

.cta p {
  margin: 0;
  color: #d9edf9;
}

/* --------------------------------------------------------------------------
   Nagłówek podstrony
   -------------------------------------------------------------------------- */

.page-hero {
  background:
    radial-gradient(800px 400px at 80% -20%, rgba(27, 143, 214, 0.18), transparent 60%),
    linear-gradient(180deg, #eef6fc 0%, var(--bg) 100%);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Cennik
   -------------------------------------------------------------------------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card--featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.price-card__tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  margin-bottom: 0.2rem;
}

.price-card__amount {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--heading);
  margin: 0.4rem 0 0.2rem;
}

.price-card__amount small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-card__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  flex-grow: 1;
}

.price-card li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.32rem 0;
  font-size: 0.93rem;
}

.price-card li svg {
  width: 17px;
  height: 17px;
  fill: #16a34a;
  flex-shrink: 0;
  margin-top: 3px;
}

.price-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 420px;
}

.price-table th,
.price-table td {
  padding: 0.95rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table thead th {
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table tbody tr:hover {
  background: var(--primary-light);
}

.price-table td:last-child {
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}

.notice {
  background: var(--primary-light);
  border: 1px solid #bfdff2;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.notice svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.notice p { margin: 0 0 0.3em; }
.notice p:last-child { margin: 0; }

.bank-box {
  background: var(--surface);
  border: 1px dashed var(--primary);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.bank-box strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--heading);
  word-break: break-word;
}

.bank-box span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Kroki (formalności)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 1.4rem;
  max-width: 780px;
  margin-inline: auto;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.step__num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(27, 143, 214, 0.35);
}

.step h3 { margin-bottom: 0.4rem; }

.step p {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.step p:last-child { margin-bottom: 0; }

.step ul {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.step li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.25rem 0;
  font-size: 0.94rem;
}

.step li svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Formularz
   -------------------------------------------------------------------------- */

.form-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--heading);
}

.form-field label span { color: #dc2626; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.3s ease, color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 143, 214, 0.15);
  background: var(--surface);
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: #dc2626;
}

.form-field .field-error {
  display: none;
  color: #dc2626;
  font-size: 0.83rem;
  margin-top: 0.3rem;
}

.form-field .field-error.is-visible {
  display: block;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.is-success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-status.is-error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.contact-aside {
  display: grid;
  gap: 1.2rem;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact-card .feature__icon { margin-bottom: 0.9rem; }

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

.contact-card p {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-card a {
  font-weight: 600;
}

.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}

/* --------------------------------------------------------------------------
   Stopka
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: #b8c4d0;
  padding: 3.2rem 0 0;
  margin-top: auto;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.site-footer a {
  color: #dbe5ee;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.2rem;
  padding-bottom: 2.2rem;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

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

.footer-grid li {
  padding: 0.22rem 0;
  font-size: 0.93rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.footer-grid li svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.footer-brand .brand__mark {
  box-shadow: none;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dark-soft);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1.2rem 0;
  font-size: 0.85rem;
  text-align: center;
  color: #8fa0b0;
}

/* --------------------------------------------------------------------------
   Animacja pojawiania
   -------------------------------------------------------------------------- */

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Strona 404
   -------------------------------------------------------------------------- */

.error-page {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.error-page strong {
  display: block;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Responsywność
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead { margin-inline: auto; }
  .hero__price { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__note { justify-content: center; }

  .hero__figure img {
    transform: none;
    width: min(300px, 80%);
  }

  .features,
  .price-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.8rem 1.25rem 1.2rem;
    display: none;
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 0.8rem 1rem;
  }

  .nav .nav__cta {
    margin: 0.5rem 0 0;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .features,
  .price-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step__num { margin-bottom: 0.2rem; }

  .cta { text-align: center; justify-content: center; }

  .price-table-wrap {
    overflow-x: visible;
  }

  table.price-table {
    min-width: 0;
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid var(--border);
  }

  .price-table tbody tr:last-child {
    border-bottom: 0;
  }

  .price-table td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  .price-table td:first-child {
    flex: 1;
    min-width: 0;
  }

  .price-table td:last-child {
    flex-shrink: 0;
    text-align: right;
  }
}

/* --------------------------------------------------------------------------
   Ciemny motyw
   -------------------------------------------------------------------------- */

[data-theme="dark"] {
  --primary: #4ba3e0;
  --primary-dark: #1b8fd6;
  --primary-light: rgba(75, 163, 224, 0.18);
  --dark: #0a1118;
  --dark-soft: #243044;
  --nav-link: #cbd5e1;
  --text: #dbe5ee;
  --text-muted: #94a3b8;
  --bg: #0f1620;
  --surface: #1a2331;
  --heading: #f1f5f9;
  --white: #ffffff;
  --border: #2a3a4d;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .site-header {
  background: rgba(26, 35, 49, 0.92);
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(75, 163, 224, 0.12), transparent 60%),
    linear-gradient(180deg, #1a2331 0%, var(--bg) 100%);
}

[data-theme="dark"] .page-hero {
  background:
    radial-gradient(800px 400px at 80% -20%, rgba(75, 163, 224, 0.14), transparent 60%),
    linear-gradient(180deg, #1a2331 0%, var(--bg) 100%);
}

[data-theme="dark"] .alert-banner {
  background: linear-gradient(180deg, #1a1a1f 0%, #1f1a14 100%);
}

[data-theme="dark"] .alert-banner__inner {
  background: linear-gradient(120deg, #2a2018, #1f1a14);
  border-color: #5a3a14;
}

[data-theme="dark"] .alert-banner__text strong {
  color: #fbbf24;
}

[data-theme="dark"] .alert-banner__text p {
  color: #d6a86a;
}

[data-theme="dark"] .notice {
  border-color: rgba(75, 163, 224, 0.3);
}

[data-theme="dark"] .form-status.is-success {
  background: #0f3d2a;
  color: #86efac;
  border-color: #166534;
}

[data-theme="dark"] .form-status.is-error {
  background: #3d0f0f;
  color: #fca5a5;
  border-color: #991b1b;
}

[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field textarea {
  background: #0d1420;
}

[data-theme="dark"] .form-field input:focus,
[data-theme="dark"] .form-field textarea:focus {
  background: #243044;
}

[data-theme="dark"] .nav-toggle span {
  background: var(--text);
}

[data-theme="dark"] .nav a:not(.nav__cta):not(:hover):not(.is-active) {
  color: var(--nav-link);
}

[data-theme="dark"] .theme-toggle {
  color: var(--nav-link);
}

[data-theme="dark"] .footer-social a {
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

[data-theme="dark"] .btn--ghost:hover {
  background: var(--primary-light);
}

/* --------------------------------------------------------------------------
   Płynne przejścia przy zmianie motywu
   -------------------------------------------------------------------------- */

body,
.site-header,
.topbar,
.stats,
.site-footer,
.hero,
.page-hero,
.alert-banner,
.alert-banner__inner,
.notice,
.bank-box,
.price-table-wrap,
.contact-card,
.step,
.pill-list li,
.nav a,
.cta,
.theme-toggle {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.feature {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.price-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.btn {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.form-field input,
.form-field textarea {
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.footer-social a {
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .site-header,
  .topbar,
  .stats,
  .site-footer,
  .hero,
  .page-hero,
  .alert-banner,
  .alert-banner__inner,
  .notice,
  .bank-box,
  .price-table-wrap,
  .contact-card,
  .step,
  .pill-list li,
  .nav a,
  .cta,
  .theme-toggle,
  .feature,
  .price-card,
  .btn,
  .form-field input,
  .form-field textarea,
  .footer-social a {
    transition: none !important;
  }
}
