/* HOMEPAGE COMPACT / NEWS CARDS FIX
   --------------------------------------------------
   Tento súbor môže zostať načítaný ako posledný CSS súbor.

   Oprava:
   - sekcie zostanú zarovnané rovnako
   - nadpisy sekcií zostanú rovnako veľké
   - zmenšené sú iba produktové karty v sekcii Novinky
*/

/* Rovnaké zarovnanie hlavných kontajnerov ako v pôvodných sekciách */
.news-container,
.categories-container,
.services-container,
.contact-container,
.footer-container {
  width: min(1560px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Rovnaké veľkosti hlavných nadpisov sekcií */
.news-header h2,
.categories-header h2,
.services-header h2,
.contact-header h2 {
  font-size: clamp(52px, 5.7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 900;
}

/* Rovnaké veľkosti popisov pod nadpismi */
.news-header p,
.categories-header p,
.services-header p,
.contact-header p {
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.45;
}

/* Rovnaké malé nadpisy s čiarou */
.section-eyebrow,
.categories-eyebrow,
.eyebrow {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.section-eyebrow span,
.categories-eyebrow span,
.eyebrow span {
  width: 52px;
  height: 4px;
}

/* Zachovanie podobného odsadenia sekcií */
.news-section {
  padding: 74px 36px 62px;
}

.categories-section {
  padding: 74px 36px 76px;
}

/* --------------------------------------------------
   Menšie sú iba news karty
   -------------------------------------------------- */

.news-slider {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.news-viewport {
  width: calc(100% - 120px);
}

.news-card {
  flex: 0 0 calc(100% / 3);
  padding: 0 11px;
}

.news-card-inner {
  min-height: 430px;
}

.news-image {
  height: 205px;
  padding: 18px 28px 8px;
}

.news-content {
  padding: 10px 22px 24px;
}

.news-meta {
  min-height: 32px;
  gap: 13px;
  margin-bottom: 16px;
}

.news-badge {
  min-width: 92px;
  padding: 8px 14px 7px;
  font-size: 12px;
}

.news-divider {
  height: 22px;
}

.news-category {
  font-size: 15px;
}

.news-title {
  font-size: clamp(20px, 1.4vw, 23px);
  line-height: 1.12;
  margin-bottom: 10px;
}

.news-description {
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.news-detail {
  gap: 16px;
  font-size: 17px;
}

.news-detail span {
  font-size: 24px;
}

.news-arrow {
  width: 52px;
  height: 52px;
  font-size: 28px;
}

.news-bottom {
  gap: 10px;
  margin-top: 18px;
}

.news-dots {
  gap: 12px;
}

.news-dot {
  width: 10px;
  height: 10px;
}

.news-counter {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 13px;
}

/* Tablet */
@media (max-width: 1200px) {
  .news-section,
  .categories-section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .news-slider {
    max-width: 980px;
  }

  .news-viewport {
    width: calc(100% - 110px);
  }

  .news-card {
    flex-basis: calc(100% / 2);
  }

  .news-card-inner {
    min-height: 410px;
  }

  .news-image {
    height: 190px;
  }
}

/* Mobil */
@media (max-width: 900px) {
  .news-container,
  .categories-container,
  .services-container,
  .contact-container,
  .footer-container {
    width: 100%;
  }

  .news-header h2,
  .categories-header h2,
  .services-header h2,
  .contact-header h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.065em;
  }

  .news-header p,
  .categories-header p,
  .services-header p,
  .contact-header p {
    font-size: 17px;
  }

  .section-eyebrow,
  .categories-eyebrow,
  .eyebrow {
    gap: 12px;
    font-size: 13px;
  }

  .section-eyebrow span,
  .categories-eyebrow span,
  .eyebrow span {
    width: 42px;
    height: 3px;
  }

  .news-card {
    flex-basis: 100%;
    padding: 0 8px;
  }

  .news-card-inner {
    min-height: 0;
  }

  .news-image {
    height: 250px;
  }
}

@media (max-width: 520px) {
  .news-section,
  .categories-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .news-viewport {
    width: 100%;
  }

  .news-image {
    height: 220px;
  }
}
