.on-section {
  margin: 0 auto;
  padding: 50px 0px;
}

/* Úvodní sekce s videem */
.on-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.on-intro-text {
  font-family: "Montserrat", sans-serif;
  color: #2a251f;
  margin: 0 0 22px;
}

.on-quote {
  border-left: 3px solid var(--color-secondary);
  padding-left: 22px;
}

.on-quote-text {
  color: #4a443d;
  margin: 0;
}

.on-video {
  aspect-ratio: 6/3;
  border-radius: 10px !important;
  overflow: hidden;
}

.on-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Sekce citát + tradice */
.on-heritage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.on-testimonial {
  background: #3d2419;
  border-radius: 10px !important;
  padding: 44px 40px;
}

.on-testimonial-icon {
  margin-bottom: 14px;
}

.on-testimonial-text {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  color: #f7f0e8;
  margin: 0;
}

.on-heritage-heading {
  font-family: "Playfair Display", serif !important;
  font-weight: 700;
  margin: 0 0 30px;
}

.on-heritage-text {
  color: #4a443d;
  margin: 0 0 20px;
}

/* Fotogalerie */
.on-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.on-gallery-item {
  aspect-ratio: 1/1;
  border-radius: 10px !important;
  overflow: hidden;
}

.on-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Filozofie */
.on-philosophy-heading {
  font-family: "Playfair Display", serif !important;
  font-weight: 700;
  text-align: center;
  margin: 0 0 30px;
}

.on-philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.on-philosophy-card {
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: 10px !important;
  padding: 36px 32px;
}

.on-philosophy-line {
  width: 44px;
  height: 3px;
  background: var(--color-secondary);
  margin-bottom: 20px;
}

.on-philosophy-title {
  font-family: "Playfair Display", serif !important;
  font-weight: 600;
  margin: 0 0 12px;
}

.on-philosophy-text {
  color: #6e655c;
  margin: 0;
}

/* Od zrnka do šálku */
.on-process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.on-process-image {
  border-radius: 10px !important;
  overflow: hidden;
  order: 2;
}

.on-process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.on-process-heading {
  font-family: "Playfair Display", serif !important;
  font-weight: 700;
  margin: 0 0 30px;
}

.on-process-text {
  color: #4a443d;
  margin: 0 0 18px;
}

.on-process-text:last-child {
  margin: 0;
}

/* CTA sekce */
.on-cta {
  background: #3d2419;
  border-radius: 10px !important;
  padding: 64px 40px;
  text-align: center;
  position: relative;
}

.on-cta-heading {
  font-family: "Playfair Display", serif !important;
  font-weight: 700;
  color: #f7f0e8;
  margin: 0 0 14px;
}

.on-cta::before {
  content: "" !important;
  position: absolute !important;
  top: 0;
  width: 5000px;
  height: 100% !important;
  left: -51%;
  background-color: #321e14 !important;
  z-index: 0 !important;
  display: block;
}

.on-cta * {
  z-index: 1 !important;
  position: relative;
}
.on-cta-text {
  color: #d8c8b8;
  margin: auto !important;
  max-width: 52ch;
  margin-bottom: 20px !important;
}

.on-cta-button {
  display: inline-block;
  background: var(--color-primary-hover);
  color: #fff;
  font-weight: 600;
  padding: 15px 36px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s ease;
  margin: 0 6px;
}

.on-cta-button:hover {
  background: var(--color-primary);
  color: #fff;
}

.on-section.grey * {
  z-index: 1 !important;
  position: relative;
  text-align: left;
}

.id-1121 main#content {
  padding: 0;
}

/* ==========================================================================
   Responzivita — breakpointy dle Shoptetu (main-13.less)
   1200px / 992px / 768px / 480px
   ========================================================================== */

/* --- Tablet (< 992px) --- */
@media (max-width: 991px) {
  .on-section {
    padding: 48px 0;
  }

  .on-intro,
  .on-heritage,
  .on-process {
    gap: 36px;
  }

  .on-philosophy-cards {
    gap: 20px;
  }

  .on-philosophy-card {
    padding: 28px 24px;
  }

  .on-philosophy-heading {
    margin-bottom: 36px;
  }
}

/* --- Mobil (< 768px) — hlavní zlom, vše se skládá do jednoho sloupce --- */
@media (max-width: 767px) {
  .on-section {
    padding: 40px 0;
  }

  /* Jednosloupcové rozložení */
  .on-intro,
  .on-heritage,
  .on-process {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Obrázek zpět nahoru (na desktopu ho order: 2 posouvá doprava) */
  .on-process-image {
    order: 0;
  }

  /* Úvod */
  .on-intro-text {
    margin-bottom: 18px;
  }

  .on-quote {
    padding-left: 16px;
  }

  .on-video {
    aspect-ratio: 16/9;
  }

  /* Tradice */
  .on-testimonial {
    padding: 28px 24px;
  }

  /* Galerie: 4 sloupce -> 2 */
  .on-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Filozofie: 3 sloupce -> 1 */
  .on-philosophy-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .on-philosophy-card {
    padding: 26px 22px;
  }

  .on-philosophy-heading {
    margin-bottom: 28px;
  }

  /* CTA — tlačítka pod sebe, přes celou šířku */
  .on-cta {
    padding: 40px 24px;
  }

  .on-cta-button {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 15px 20px;
  }

  .on-cta-button:last-child {
    margin-bottom: 0;
  }
}

/* --- Malé telefony (< 480px) --- */
@media (max-width: 479px) {
  .on-section {
    padding: 32px 0;
  }

  .on-testimonial {
    padding: 24px 20px;
  }

  .on-cta {
    padding: 32px 18px;
  }

  /* Galerie: 2 sloupce -> 1 */
  .on-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .on-gallery-item {
    aspect-ratio: 4/3;
  }
}

.on-section:first-of-type {
  padding-top: 18px;
}
.id-1121 article.pageArticleDetail > header {
  display: none;
}

.in-pribeh-znacky #content h1 {
  margin-bottom: 30px;
}

.in-pribeh-znacky p {
  line-height: 1.4 !important;
}

@media (max-width: 767px) {
  .on-process .on-process-image,
  .on-heritage .on-testimonial {
    order: 2;
  }
}
