/* OKNA TG - Strona główna CSS */
/* Czcionki: Montserrat dla nagłówków, Roboto dla tekstu */

* {
  margin: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

:root {
header, footer {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
}
  --primary-color: #000080; /* Granatowy główny */
  --white: #ffffff;
  --light-gray: #f2f2f2;
  --text-dark: #333333;
  --text-light: #666666;

  /* Czcionki */
  --font-heading: "Montserrat", sans-serif; /* Nagłówki */
  --font-body: "Roboto", sans-serif; /* Tekst główny */
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
}


body, p, li, a, input, button, label, span, div {
  font-family: var(--font-body);
}

.page-hero, .page-hero p, .page-hero li, .page-hero a, .page-hero input, .page-hero button, .page-hero label, .page-hero span, .page-hero div {
  font-family: var(--font-body);
}

li { text-align: left; padding-left: 0; }
li::marker { color: inherit; font-size: inherit; font-family: inherit; margin-right: 0.7em; }

/* Przyciski */
.btn {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #000066;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 128, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

/* Hero Section */
.hero {
  height: 50vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("zasoby/obrazy/hero-background.jpg") center /
    cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

/* Common CTA Section Style */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), #000066);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
  margin: 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Common section spacing */
section {
  margin-bottom: 0;
}

section:last-child {
  margin-bottom: 0;
}

/* Common CTA styling for offer pages */
.offer-cta {
  background: linear-gradient(135deg, var(--primary-color), #000066);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  margin: 0;
}

.offer-cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.offer-cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.offer-cta .cta-buttons {
  margin-bottom: 0;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 0.67s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.5;
}

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

@media (max-width: 768px) {
  .cta-buttons .btn,
  .hero-buttons .btn {
    width: 100%;
    min-width: unset;
  }
}

/* Sekcja informacyjno-produktowa */
.info-section {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.info-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.info-card:hover .card-image img {
  transform: scale(1.05);
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.info-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.benefits-list {
  max-width: 800px;
  margin: 0 auto;
}

.benefits-list ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  list-style: none;
}

.benefits-list li {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 50px;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Sekcja galerii produktów */
.products-gallery {
  padding: 80px 0;
  background: var(--white);
}

.products-gallery h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
}

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

.product-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.product-item:hover img {
  transform: scale(1.05);
}

.product-item h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 20px;
  text-align: center;
  color: var(--text-dark);
}

/* Nowe style dla sekcji ofert z ikonami */
.offer-categories {
  padding: 80px 0;
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.category-image {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color), #000066);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.category-icon {
  font-size: 3.5rem;
  color: var(--white);
  transition: transform 0.2s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.category-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  flex-grow: 1;
}

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

.category-features li {
  padding: 8px 0;
  color: var(--text-dark);
  position: relative;
  padding-left: 25px;
  font-size: 0.95rem;
}

.category-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.category-content .btn {
  align-self: center;
  margin-top: auto;
}

/* Sekcja benefitów */
.benefits-section {
  padding: 80px 0;
  background: var(--light-gray);
  text-align: center;
}

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

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-item {
  background: var(--white);
  padding: 35px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  border: 1px solid #f0f0f0;
}

.benefit-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.benefit-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
}

.benefit-item h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.benefit-item p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
}

/* CTA sekcja */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), #000066);
  color: var(--white);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}

.cta-section p {
  font-size: 1.15rem;
  margin-bottom: 22px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  line-height: 1.6;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Specjalne style dla przycisków w sekcji CTA */
.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 8px;
}

.cta-section .btn-primary:hover {
  background: #f0f0f0;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 128, 0.15);
}

.cta-section .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

/* Sekcja opinii */
.testimonials {
  padding: 80px 0;
  background: var(--light-gray);
}

.testimonials h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-item {
  display: none;
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.testimonial-item.active {
  display: block;
  animation: fadeIn 0.33s ease-in;
}

.testimonial-content p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-dark);
  line-height: 1.6;
}

.testimonial-author strong {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
}

.testimonial-author span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s ease;
}

.testimonial-dot.active {
  background: var(--primary-color);
}

/* Animacje */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsywność */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

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

  .info-cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .info-section {
    padding: 60px 0;
  }

  .benefits-list ul {
    grid-template-columns: 1fr;
  }

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

  .products-gallery h2,
  .testimonials h2 {
    font-size: 2rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .benefits-section {
    padding: 60px 0;
  }

  .offer-categories {
    padding: 60px 0;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

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

  .cta-section h2 {
    font-size: 1.8rem;
    padding: 0 10px;
  }

  .cta-section p {
    font-size: 1rem;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    min-height: 350px;
  }

  .hero-title {
    font-size: 1.8rem;
    padding: 0 10px;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .container {
    padding: 0 15px;
  }

  .info-section,
  .products-gallery,
  .testimonials,
  .benefits-section,
  .offer-categories,
  .cta-section {
    padding: 40px 0;
  }

  .category-card {
    margin: 0 10px;
  }

  .categories-grid {
    gap: 20px;
    padding: 0 10px;
  }

  .benefits-grid {
    gap: 20px;
    padding: 0 10px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  .cta-section p {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}


/* --- STYLES DLA SEKCJI OFERTY NA STRONIE GŁÓWNEJ --- */
.offer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.offer-categories {
  padding: 80px 0;
  background: var(--white);
}

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

.offer-category-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.offer-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.offer-category-image {
  height: 250px;
  overflow: hidden;
}

.offer-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.offer-category-card:hover .offer-category-image img {
  transform: scale(1.05);
}

.offer-category-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.offer-category-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.offer-category-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

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

.offer-btn {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  align-self: flex-start;
}

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

.offer-btn-primary:hover {
  background-color: #000066;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 128, 0.3);
}

.offer-btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.offer-benefits-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.offer-benefits-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
}

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

.offer-benefit-item {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.offer-benefit-item:hover {
  transform: translateY(-5px);
}

.offer-benefit-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.offer-benefit-item h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.offer-benefit-item p {
  color: var(--text-light);
  line-height: 1.6;
}

.offer-cta-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.offer-cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.offer-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.offer-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.offer-cta-buttons .offer-btn,
.offer-cta-buttons .offer-btn-primary {
  width: 240px;
  min-width: 240px;
  max-width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .offer-categories-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .offer-benefits-grid {
    grid-template-columns: 1fr;
  }
  .offer-cta-buttons .offer-btn,
  .offer-cta-buttons .offer-btn-primary {
    width: 100%;
    min-width: unset;
  }
  .offer-container {
    padding: 0 15px;
  }
}

/* Scroll to Top Button styles moved to header-footer.css for consistency across all pages */

.page-hero-desc, .hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.3rem;
  letter-spacing: 0.01em;
}
