.dlaczego-goz-jest-wazny-section {
  padding: 3rem 0;
}

.dlaczego-goz-jest-wazny-section .container {
  max-width: 91rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.dlaczego-goz-jest-wazny-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
}

.dlaczego-goz-jest-wazny-section .section-header-content {
  flex: 1;
}

.dlaczego-goz-jest-wazny-section .section-header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.dlaczego-goz-jest-wazny-section .section-title {
  font-family: "Inter", sans-serif;
  font-size: 2.125rem;
  font-weight: 700;
  color: #213361;

  letter-spacing: -0.1rem;
}

.dlaczego-goz-jest-wazny-section .section-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  color: rgba(33, 51, 97, 0.5);
  margin: 0;
}

.content-blocks-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-block-row {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.content-block-row--image-right {
  flex-direction: row-reverse;
}

/* Specjalny układ dla zdjęcia po prawej z tytułem na pełną szerokość */
.content-block-row--layout-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: start;
  padding: 60px 0;
}

.content-block-row--layout-right .content-block-header h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #213361;
  margin: 0;
  width: 100%;
  text-align: left;
}

.content-block-row--layout-right .content-block-body {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  align-items: start;
}

.content-block-row--layout-right .content-block-body .content-block-text {
  flex: 1;
  padding-top: 0;
  display: grid;
  gap: 48px;
}

.content-block-row--layout-right .content-block-body .content-block-image {
  width: 48%;
}

/* W stylach responsywnych układ ten powinien zachowywać się jak standardowy */
@media (max-width: 767px) {
  .content-block-row--layout-right .content-block-body {
    flex-direction: column-reverse; /* Treść nad zdjęciem, ale w mobilce wszystko jedno pod drugim */
    gap: 1.25rem;
    align-items: center;
  }

  .content-block-row--layout-right .content-block-body .content-block-image {
    width: 100%;
    order: 1;
  }

  .content-block-row--layout-right .content-block-body .content-block-text {
    width: 100%;
    order: 2;
    text-align: left;
  }
}

.content-block-image {
  width: 35%;
}

.content-block-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.content-block-image .image-placeholder {
  width: 100%;
  height: 30rem;
  background-color: #f0f0f0;
  border-radius: 1.5rem;
}

.content-block-text {
  flex: 1;
  padding-top: 2rem;
}

.content-block-text h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #213361;
  margin: 0 0 1rem 0;
}

.content-block-text .text-content p {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #213361;
  margin: 0 0 1em 0;
  text-wrap: balance;
}

.content-block-text .text-content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.content-block-text .text-content ul li {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #213361;
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.content-block-text .text-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  background-color: #213361;
  border-radius: 50%;
}

.goz-btn {
  display: inline-block;
  background-color: #c747e7;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 1.5rem;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.goz-btn:hover {
  background-color: #a63ac4;
}

.image-caption {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(33, 51, 97, 0.7);
  margin-top: 1rem;
  text-align: left;
}

/* Header Buttons */
.header-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 3.125rem;
  padding: 0 1.75rem;
  border-radius: 1.5rem;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.21;
  letter-spacing: 0.32%;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.header-btn--primary {
  background-color: #213361;
  color: #ffffff;
}

.header-btn--primary:hover {
  background-color: #1a2850;
  color: #ffffff;
}

.header-btn--secondary {
  background-color: #e9ebef;
  color: #213361;
}

.header-btn--secondary:hover {
  background-color: #d5d9e0;
  color: #213361;
}

/* --- Media Queries for Responsiveness --- */

/* Tablety (do 1024px) */
@media (max-width: 1024px) {
  .dlaczego-goz-jest-wazny-section {
    padding: 2.5rem 0;
  }

  .dlaczego-goz-jest-wazny-section .section-header {
    margin-bottom: 2.25rem;
    gap: 2rem;
  }

  .dlaczego-goz-jest-wazny-section .section-title {
    font-size: 2rem;
  }

  .dlaczego-goz-jest-wazny-section .section-subtitle {
    font-size: 1.125rem;
  }

  .content-blocks-wrapper {
    gap: 3.75rem;
  }

  .content-block-row {
    gap: 2rem;
  }

  .content-block-text {
    padding-top: 1.25rem;
  }

  .content-block-text h3 {
    font-size: 1.375rem;
  }
}

/* Telefony (do 767px) */
@media (max-width: 767px) {
  .dlaczego-goz-jest-wazny-section {
    padding: 1.875rem 0;
  }

  .dlaczego-goz-jest-wazny-section .container {
    padding: 0 1.25rem;
  }

  .dlaczego-goz-jest-wazny-section .section-header {
    margin-bottom: 2rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .dlaczego-goz-jest-wazny-section .section-header-buttons {
    gap: 0.75rem;
  }

  .header-btn {
    height: 2.75rem;
    padding: 0 1.5rem;
    font-size: 0.8125rem;
  }

  .dlaczego-goz-jest-wazny-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .dlaczego-goz-jest-wazny-section .section-subtitle {
    font-size: 1rem;
  }

  .content-blocks-wrapper {
    gap: 2.5rem;
  }

  .content-block-row {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }

  .content-block-row--image-right {
    flex-direction: column;
  }

  .content-block-image {
    min-width: 100%;
    order: 1;
  }

  .content-block-text {
    padding-top: 0;
    order: 2;
    text-align: left;
  }

  .content-block-text h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .content-block-text .text-content p {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .content-block-text .text-content ul li {
    font-size: 0.9375rem;
    line-height: 1.4;
    padding-left: 1.5rem;
  }

  .content-block-text .text-content ul li::before {
    width: 1rem;
    height: 1rem;
    top: 4px;
  }

  .goz-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
    margin-top: 1rem;
  }

  .image-caption {
    font-size: 0.8125rem;
    text-align: center;
    margin-top: 0.75rem;
  }
}

/* Małe telefony (do 480px) */
@media (max-width: 480px) {
  .dlaczego-goz-jest-wazny-section .container {
    padding: 0 1rem;
  }

  .dlaczego-goz-jest-wazny-section .section-header-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .header-btn {
    width: 100%;
    max-width: 17.5rem;
    height: 2.5rem;
    padding: 0 1.25rem;
    font-size: 0.75rem;
  }

  .dlaczego-goz-jest-wazny-section .section-title {
    font-size: 1.5rem;
  }

  .dlaczego-goz-jest-wazny-section .section-subtitle {
    font-size: 1rem;
  }

  .content-blocks-wrapper {
    gap: 2rem;
  }

  .content-block-text h3 {
    font-size: 1.125rem;
  }

  .content-block-text .text-content p {
    font-size: 0.875rem;
  }

  .content-block-text .text-content ul li {
    font-size: 0.875rem;
    padding-left: 1.25rem;
  }

  .content-block-text .text-content ul li::before {
    width: 0.875rem;
    height: 0.875rem;
    top: 3px;
  }

  .goz-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
  }
}
