:root {
  --gold: #c88a32;
  --gold-light: #f3d7a6;
  --dark: #1f2933;
  --dark-soft: #4b5563;
  --light-bg: #f5f5f7;
  --white: #ffffff;
  --border: #e0e0e7;
  --danger: #b91c1c;
  --success: #166534;
  --radius: 10px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --transition: 0.25s ease;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--light-bg);
  line-height: 1.6;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Topbar */

.topbar {
  background: var(--dark);
  color: #e5e7eb;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  gap: 12px;
}

.topbar-contact a {
  color: #e5e7eb;
  margin-left: 12px;
  font-weight: 500;
}

/* Navbar */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.nav-menu a {
  color: var(--dark-soft);
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
}

/* Hero */

.hero {
  padding: 48px 0 40px;
  background: radial-gradient(circle at top left, #fff7eb, #f8fafc);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--dark);
}

.hero p {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition),
    border var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f2a944);
  color: #111827;
  box-shadow: 0 10px 25px rgba(202, 138, 4, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0 0,
    rgba(255, 255, 255, 0.55),
    transparent 55%
  );
  opacity: 0;
  transform: translate(-40%, -40%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.btn-primary:hover::after {
  opacity: 1;
  transform: translate(-10%, -10%);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 18px rgba(202, 138, 4, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--gold-light);
}

.hero-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--dark-soft);
}

.hero-list li::before {
  content: "• ";
  color: var(--gold);
  font-weight: 700;
}

.hero-highlight {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badge {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(39, 39, 42, 0.85);
  color: #f9fafb;
  font-size: 13px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-title {
  font-weight: 700;
  color: var(--gold-light);
}

.hero-box {
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(248, 250, 252, 1);
}

.hero-phone {
  margin-top: 12px;
}

/* Sections */

.section {
  padding: 40px 0;
}

.section-alt {
  background: #ffffff;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: flex-start;
}

/* Highlights */

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

.highlight-item {
  background: var(--white);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.highlight-number {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  font-size: 14px;
}

/* Emergency */

.section-emergency {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #e5e7eb;
}

.section-emergency h2,
.section-emergency p,
.section-emergency li {
  color: inherit;
}

.emergency-box {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 18px 16px;
  border: 1px solid rgba(249, 250, 251, 0.06);
}

.big-phone {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fca311;
  color: #111827;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.big-phone.alt {
  background: #fbbf24;
}

.small-note {
  font-size: 13px;
  margin-top: 8px;
}

/* Lists */

.list {
  padding-left: 18px;
  margin: 8px 0 0;
  font-size: 14px;
}

/* Automation box */

.automation-box {
  background: var(--white);
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

/* Testimonials slider */

.slider {
  position: relative;
  overflow: hidden;
}

.slide {
  display: none;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  font-size: 14px;
}

.slide.active {
  display: block;
}

.author {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--dark-soft);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.dot.active {
  background: var(--gold);
  transform: scale(1.15);
}

/* FAQ */

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  font-size: 14px;
  color: var(--dark-soft);
  transition: max-height var(--transition), padding-bottom var(--transition);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 10px;
}

/* Contact form */

.contact-form {
  background: var(--white);
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

.form-row {
  margin-bottom: 10px;
}

.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 14px;
  transition: border var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.2);
}

.form-note {
  font-size: 12px;
  color: var(--dark-soft);
}

.form-status {
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}

.form-status.success {
  background: #dcfce7;
  color: var(--success);
}

.form-status.error {
  background: #fee2e2;
  color: var(--danger);
}

/* Błąd pól formularza */

.field-error {
  border-color: #b91c1c;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.25);
}

/* Footer */

.footer {
  background: #0b1120;
  color: #9ca3af;
  padding: 18px 0;
  font-size: 13px;
}

.footer-inner {
  text-align: center;
}

/* Animacje sekcji */

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

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

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .two-col,
  .cards {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    inset: 56px 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 10px 16px 12px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 32px 0 28px;
  }

  .hero h1 {
    font-size: 24px;
  }

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

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

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
