html {
  scroll-behavior: smooth;
}

:root {
  --blue: #0d3c74;
  --blue2: #1f7cec;
  --gold: #bba548;
  --text: #0f172a;
  --muted: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
  --max: 1180px;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* HEADER - WYMUSZONY JEDEN POZIOM */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .nav-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 34px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px;
  flex-wrap: nowrap !important;
}

.site-header .site-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-decoration: none;
  color: var(--blue);
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  min-width: 0;
}

.site-header .site-brand img,
.site-header .site-brand .custom-logo {
  max-height: 56px !important;
  width: auto !important;
  display: block !important;
}

.site-header .brand-fallback {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.2px;
  color: var(--blue);
}

.site-header .main-nav {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 28px;
  white-space: nowrap !important;
  min-width: 0;
}

.site-header .main-nav a {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap !important;
}

.site-header .main-nav a:hover {
  color: var(--blue2);
}

.site-header .nav-action {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  white-space: nowrap !important;
  min-width: max-content;
}

.site-header .nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  transition: 0.2s ease;
  white-space: nowrap !important;
}

.site-header .nav-cta {
  border: 1px solid var(--border);
  color: var(--blue);
  background: var(--white);
}

.site-header .nav-cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* gdy logo nadal za szerokie */
.custom-logo-link {
  display: flex !important;
  align-items: center !important;
}

/* HERO */
.hero {
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(13, 60, 116, 0.45), rgba(13, 60, 116, 0.45)),
    url("https://promesabroker.com/wp-content/uploads/2026/06/hero-bg-1-1024x683.jpg") center/cover no-repeat;
  color: var(--white);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0 auto 22px;
  max-width: 920px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn-primary:hover {
  background: var(--blue);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--blue);
}

/* SECTIONS */
.section {
  padding: 86px 0;
  scroll-margin-top: 90px;
}

.light {
  background: var(--light);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.intro-grid {
  align-items: start;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  margin: 0 0 24px;
  color: var(--blue);
}

h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 24px;
}

p {
  margin: 0 0 16px;
}

.accent-panel {
  border-left: 4px solid var(--gold);
  padding-left: 24px;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card h3,
.card p {
  padding-left: 22px;
  padding-right: 22px;
}

.card h3 {
  padding-top: 22px;
}

.card p {
  color: var(--muted);
  padding-bottom: 24px;
}

.text-columns {
  margin-top: 64px;
  align-items: start;
}

.text-columns ul {
  padding-left: 22px;
  margin: 0;
}

.text-columns li {
  margin-bottom: 6px;
}

.section-image {
  width: 100%;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.cta-section {
  background:
    linear-gradient(rgba(13, 60, 116, 0.70), rgba(13, 60, 116, 0.70)),
    url("https://promesabroker.com/wp-content/themes/business-growth-x/assets/images/business-growth-x-cta1.jpg") center/cover no-repeat;
}

.cta-box {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  padding: 42px;
  box-shadow: var(--shadow);
}

.contact-section {
  background: var(--white);
}

.contact-card {
  min-height: 300px;
  background: var(--light);
  padding: 42px;
  border: 1px solid var(--border);
}

.contact-card.dark {
  background: var(--blue);
  color: var(--white);
}

.contact-card.dark h3 {
  color: var(--white);
}

.contact-card a {
  color: var(--blue2);
  font-weight: 700;
}

/* DOCUMENTS */
.documents-section {
  background: var(--light);
}

.docs-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.docs-list li {
  margin-bottom: 16px;
}

.docs-list a {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border: 1px solid #dbe4ef;
  background: var(--white);
  text-decoration: none;
  color: var(--blue);
  font-weight: 700;
  transition: 0.25s ease;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.docs-list a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateX(6px);
}

.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 28px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* TABLET: jeszcze jeden rząd, ale ciaśniej */
@media (max-width: 1180px) {
  .site-header .nav-wrap {
    gap: 18px;
    padding: 10px 22px;
  }

  .site-header .main-nav {
    gap: 18px;
  }

  .site-header .main-nav a {
    font-size: 14px;
  }

  .site-header .nav-cta {
    padding: 11px 14px;
    font-size: 12px;
  }

  .site-header .site-brand img,
  .site-header .site-brand .custom-logo {
    max-height: 48px !important;
  }
}

/* MOBILE */
@media (max-width: 920px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .site-header .nav-wrap {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
    justify-items: center;
  }

  .site-header .site-brand,
  .site-header .main-nav,
  .site-header .nav-action {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .site-header .main-nav {
    gap: 14px;
  }

  .two-col,
  .cards.three {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 520px;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .cta-box,
  .contact-card {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .site-header .nav-wrap {
    padding: 10px 20px;
  }

  .site-header .site-brand img,
  .site-header .site-brand .custom-logo {
    max-height: 54px !important;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}
