/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #C7A869;
  --secondary-color: #1a3a52;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f8f8f8;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary i {
  margin-left: 8px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.link-arrow:hover {
  color: var(--secondary-color);
}

.link-arrow i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.link-arrow:hover i {
  transform: translateX(5px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.btn-link:hover {
  color: var(--secondary-color);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo-letter {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border-radius: 4px;
}

.logo-text {
  line-height: 1.3;
}

.logo-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 0;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin: 0;
}

.nav {
  display: flex;
  gap: 30px;
  flex: 1;
  margin-left: 50px;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text h1 {
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.hero-text p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 2rem 0;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.benefit p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.about-text h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.service-card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 50px;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  position: relative;
}

.process-timeline:before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 15px;
}

.step-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.process-step h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  margin-top: 0;
}

.process-step p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.benefits {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.benefit-card {
  background-color: var(--bg-white);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.benefit-card h3 {
  color: var(--secondary-color);
  margin-bottom: 12px;
  margin-top: 0;
}

.benefit-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 25px;
}

.blog-date {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  margin-top: 0;
}

.blog-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  flex: 0 0 320px;
}

.blog-cta h3 {
  color: var(--secondary-color);
  margin-top: 0;
}

.blog-cta p {
  margin-bottom: 25px;
}

/* ============================================
   CTA FOOTER
   ============================================ */

.cta-footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2a5474 100%);
  color: var(--bg-white);
  padding: 80px 0;
  text-align: center;
}

.cta-footer h2 {
  color: var(--bg-white);
  margin-bottom: 1rem;
}

.cta-footer p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.contact-info {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 40px 0;
  margin-top: 50px;
}

.contact-info .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.contact-column {
  color: var(--bg-white);
}

.contact-column i {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
  color: var(--primary-color);
}

.contact-column a {
  color: var(--bg-white);
  font-weight: 500;
}

.contact-column a:hover {
  color: var(--primary-color);
}

.contact-column span {
  color: var(--bg-white);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 18px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer p {
  color: var(--bg-white);
  margin: 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  position: relative;
}

.contact-hero-card {
  background: var(--bg-white);
  padding: 36px 36px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  z-index: 3;
  position: relative;
  margin-right: -80px;
}

.contact-hero-text {
  max-width: 680px;
}

.contact-hero-text .eyebrow {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-size: 0.85rem;
}

.contact-hero-text h1 {
  margin: 0 0 26px 0;
  color: var(--secondary-color);
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.05;
  max-width: 760px;
}

.hero-features {
  display: flex;
  gap: 18px;
  margin: 0 0 34px 0;
  flex-wrap: wrap;
}

.hero-features > div {
  flex: 1 1 150px;
  min-width: 150px;
  background-color: var(--bg-white);
  padding: 22px 18px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.hero-features > div p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.hero-features i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: block;
}

.contact-hero-image {
  overflow: hidden;
  border-radius: 0 26px 26px 0;
  min-height: auto;
  height: 100%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  background-color: transparent;
  align-self: start;
}

.contact-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 20px 0;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  vertical-align: middle;
}

.form-status { margin-bottom: 14px; color: var(--secondary-color); }

.contact-options { margin: 40px 0; }
.options-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.contact-card { background: var(--bg-white); padding: 20px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.contact-card i { font-size: 1.6rem; color: var(--primary-color); margin-bottom: 12px; }

.contact-map { display:grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.map-card { background: var(--bg-white); padding: 20px; border-radius: 10px; }
.map-placeholder { background: var(--bg-light); border-radius: 10px; min-height: 180px; display:flex; align-items:center; justify-content:center; }
.map-overlay { text-align:center; color:var(--secondary-color); }

@media (max-width: 900px) {
  .contact-hero { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-map { grid-template-columns: 1fr; }
}

/* ============================================
   CALCULATORS SECTION
   ============================================ */

.calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.calculator-card {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.calculator-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.calculator-card h3 {
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.calculator-card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-content,
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .process-timeline:before {
    display: none;
  }

  .hero {
    padding: 40px 0;
  }

  .about,
  .services,
  .process,
  .benefits,
  .blog {
    padding: 40px 0;
  }
}

/* Kontakt: ograniczenia wysokości obrazka dla mniejszych ekranów */
@media (max-width: 900px) {
  .contact-hero-image { max-height: 320px; }
}

@media (max-width: 480px) {
  .contact-hero-image { max-height: 220px; min-height: 220px; }
  .contact-hero-image img { width: 100%; height: auto; transform: none; }
  .contact-hero-card { margin-right: -20px; padding: 18px; }
  .contact-hero-image::before { width: 48%; }
}