/* Zastosowano style z index.css dla spójności z główną stroną */
@import url("../common.css");

/* Variables */
:root {
  --primary-color: #000080;
  --secondary-color: #ffffff;
  --accent-color: #f2f2f2;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-body: "Inter", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --font-heading: "Poppins", "Montserrat", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --hero-bg-image: url("../../zasoby/obrazy/Okna startowe.png");
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--accent-color);
  padding: 15px 0;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

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

.breadcrumbs span {
  color: var(--text-dark);
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 33vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #000;
  margin-bottom: 0;
}

/* Reset margins for all sections */
section {
  margin-bottom: 0;
}

.systems-section,
.features-section,
.testimonials-section,
.faq-section,
.cta-section {
  margin-bottom: 0;
  padding: 60px 0;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

/* Przyciski korzystają z oferta/common.css */

.hero-section .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  max-width: 900px;
}

.hero-content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e9e9e9;
  margin: 0 auto 18px auto;
  max-width: 760px;
  line-height: 1.6;
}

.hero-buttons {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  display: none;
}

/* Types Grid */
.parapety-types {
  padding: 80px 0;
}

.parapety-types h2 {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 60px;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.type-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.type-image {
  height: 200px;
  overflow: hidden;
}

.type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.type-card:hover .type-image img {
  transform: scale(1.1);
}

.type-content {
  padding: 30px;
}

.type-content h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.type-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.type-content li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text-dark);
}

.type-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.price-info {
  text-align: center;
  padding: 15px;
  background: var(--accent-color);
  border-radius: 8px;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Comparison Section */
.comparison-section {
  padding: 80px 0;
  background: var(--accent-color);
}

.comparison-section h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 60px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.comparison-item {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.comparison-item h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.comparison-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.comparison-content img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.comparison-features h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.comparison-features ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.comparison-features li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-dark);
}

.comparison-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Process Section */
.process-section {
  padding: 80px 0;
}

/* ...dalsza część stylu jak w parapety.css... */
/* Dodatkowe sekcje w stylu drzwi-wejsciowe */
.features-cards-section {
  padding: 60px 0 40px 0;
  background: #f8f9fa;
}

.features-cards-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.features-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--shadow);
  padding: 32px 20px 28px 20px;
  text-align: center;
  transition: var(--transition);
  animation: slideUpFade 0.8s ease-out forwards;
  opacity: 0;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 1rem;
}

.cta-horizontal-section {
  margin: 60px 0 0 0;
  padding: 0;
  background: linear-gradient(90deg, #e9ecef 0%, #f8f9fa 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  border: 1px solid #e0e0e0;
}

.cta-horizontal-section .container {
  padding: 0;
}

.cta-horizontal-content {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 40px;
  justify-content: center;
}

.cta-horizontal-icon {
  font-size: 4.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-right: 10px;
}

.cta-horizontal-text {
  flex: 1;
  min-width: 220px;
}

.cta-horizontal-text h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-horizontal-text p {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 22px;
}

.cta-horizontal-text .cta-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-horizontal-text .cta-buttons .btn {
  width: 260px;
  min-width: 260px;
  max-width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .cta-horizontal-content {
    flex-direction: column;
    gap: 24px;
    padding: 36px 12px;
    text-align: center;
  }

  .cta-horizontal-icon {
    margin: 0 0 10px 0;
  }

  .cta-horizontal-text h2 {
    font-size: 1.3rem;
  }

  .cta-horizontal-text .cta-buttons .btn {
    width: 100%;
    min-width: unset;
  }
}

/* Intro block */
.intro-block {
  padding: 48px 0 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation: slideUpFade 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.intro-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.intro-lead {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.intro-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 20px;
}

.intro-highlights li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dark);
  font-family: var(--font-body);
}

.intro-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: 700;
}

/* Systems grid */
.systems-section {
  padding: 48px 0 24px;
}

.systems-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 28px;
  font-family: var(--font-heading);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.system-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.system-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

.system-image {
  width: 100%;
  max-width: 200px;
  height: 180px;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.system-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.05);
  transition: transform .25s ease;
}

.system-card:hover .system-image img {
  transform: scale(1.03);
}

.system-card h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0 0 12px;
  font-family: var(--font-heading);
  text-align: center;
}

.system-card details {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
  width: 100%;
  transition: all 0.3s ease;
}

.system-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  font-family: var(--font-body);
}

.system-card summary::-webkit-details-marker {
  display: none;
}

.system-card details p,
.system-card details ul {
  color: var(--text-light);
  margin: 8px 0 0;
  padding-left: 18px;
  font-family: var(--font-body);
}

.system-card details ul {
  list-style: disc;
}

details[open] {
  animation: detailsOpen 0.3s ease;
}

@keyframes detailsOpen {
  from {
    opacity: 0.3;
    transform: translateY(-6px);
    max-height: 0;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.system-card:nth-child(1) {
  animation-delay: 0.3s;
}
.system-card:nth-child(2) {
  animation-delay: 0.4s;
}
.system-card:nth-child(3) {
  animation-delay: 0.5s;
}
.system-card:nth-child(4) {
  animation-delay: 0.6s;
}
.system-card:nth-child(5) {
  animation-delay: 0.7s;
}
.system-card:nth-child(6) {
  animation-delay: 0.8s;
}

.why-choose-section .feature-card:nth-child(1) {
  animation-delay: 0.3s;
}
.why-choose-section .feature-card:nth-child(2) {
  animation-delay: 0.4s;
}
.why-choose-section .feature-card:nth-child(3) {
  animation-delay: 0.5s;
}
.why-choose-section .feature-card:nth-child(4) {
  animation-delay: 0.6s;
}

@media (max-width: 992px) {
  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-card {
    min-height: 280px;
  }

  .system-image {
    height: 160px;
  }
}

@media (max-width: 600px) {
  .systems-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: unset;
  }

  .system-image {
    height: 140px;
    margin-bottom: 12px;
  }
}
