body,
html {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.courses-main {
  width: min(92%, 1040px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  background: linear-gradient(160deg, rgba(217, 235, 225, 0.94), rgba(215, 201, 227, 0.94));
  padding: clamp(24px, 4vw, 44px);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.courses-main h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.courses-main > p {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.25;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.tab-button {
  min-width: 190px;
  padding: 13px 22px;
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  box-shadow: var(--shadow);
}

.tab-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 38, 62, 0.14);
}

.tab-button.active {
  background: var(--orange);
  color: white;
}

.tab-content {
  display: none;
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.course-description {
  margin-bottom: 28px;
  text-align: left;
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(20px, 3vw, 32px);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.course-description h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.course-description p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.25;
}

.course-description ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-description li {
  position: relative;
  padding-left: 28px;
  line-height: 1.25;
}

.course-description li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--green);
  font-weight: 900;
}

.pricing-table {
  width: 100%;
  margin-bottom: 28px;
}

.pricing-table h4 {
  margin: 0 0 16px;
  color: white;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  text-transform: uppercase;
}

.pricing-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  table-layout: fixed;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid var(--violet);
  vertical-align: middle;
}

.pricing-table th {
  background: var(--blue);
  color: white;
  font-weight: 800;
  line-height: 1.1;
}

.pricing-table td {
  line-height: 1.2;
}

.pricing-table tbody tr:nth-child(even) {
  background: rgba(215, 201, 227, 0.26);
}

.pricing-table tbody tr:hover {
  background: rgba(217, 235, 225, 0.55);
}

.pricing-table ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta-section {
  margin-top: 2px;
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(90deg, var(--orange), var(--green));
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.015);
  }
}

.cta-section h3 {
  margin: 0 0 10px;
  color: var(--muted);
}

.cta-section p {
  margin: 0 0 20px;
  color: var(--muted);
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 38, 62, 0.14);
}

@media (max-width: 750px) {
  .courses-main {
    width: 100%;
    padding: 26px 14px;
    border-radius: 22px;
  }

  .courses-main h2 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .courses-main > p {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .tabs {
    width: 100%;
    gap: 10px;
    margin-bottom: 26px;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
    min-height: 54px;
    padding: 10px 12px;
    font-size: 0.95rem;
    line-height: 1.05;
  }

  .course-description {
    padding: 22px;
    border-radius: 14px;
  }

  .pricing-table {
    overflow: visible;
  }

  .pricing-table table,
  .pricing-table thead,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table th,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table table {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .pricing-table tbody {
    display: grid;
    gap: 14px;
  }

  .pricing-table tr {
    padding: 16px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
  }

  .pricing-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.92);
  }

  .pricing-table td {
    display: grid;
    grid-template-columns: minmax(88px, 38%) 1fr;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    text-align: left;
    align-items: start;
  }

  .pricing-table td::before {
    color: var(--muted);
    font-weight: 800;
  }

  .pricing-table td:nth-child(1)::before {
    content: "Pakiet";
  }

  .pricing-table td:nth-child(2)::before {
    content: "Cena";
  }

  .pricing-table td:nth-child(3)::before {
    content: "Waznosc";
  }

  .pricing-table td:nth-child(4)::before {
    content: "Platnosc";
  }

  .pricing-table td ul {
    display: grid;
    gap: 4px;
  }

  .cta-section {
    padding: 24px 18px;
    animation: none;
  }
}
