/* Carozel: carousel homepage and complete format catalog. */
.home-page .carousel-start-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.carousel-start-section > div { flex: 1 1 360px; min-width: 0; }
.carousel-start-section h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; overflow-wrap: break-word; }
.carousel-start-section .section-description { margin: 0; max-width: 650px; }
.carousel-start-section > .button { flex: 0 1 auto; min-height: 48px; white-space: normal; text-align: center; }
.template-format-section { margin: 32px 0 40px; min-width: 0; }
.template-format-section h2, .template-gallery-section > h2 { margin: 0 0 12px; font-size: 1.4rem; line-height: 1.35; }
.template-format-section .section-description { margin: 0 0 20px; }
.template-format-section .format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.template-format-section .format-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-width: 0; min-height: 140px; height: auto; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); color: var(--ink); text-decoration: none; overflow-wrap: break-word; }
.template-format-section .active-format { background: #6250e8; border-color: #b4abff; color: #fff; }
.template-format-section .active-format span { color: inherit; opacity: .9; }
.template-format-section .format-tile strong { font-size: 1rem; line-height: 1.5; }
.template-format-section .format-tile span { font-size: .875rem; line-height: 1.65; }
.template-format-section .format-tile:focus-visible { outline: 3px solid var(--focus, #6366f1); outline-offset: 3px; }
.template-gallery-section { border-top: 1px solid var(--line); padding-top: 28px; scroll-margin-top: 24px; }
.template-gallery-section select { max-width: 100%; }
@media (max-width: 640px) {
  .home-page .carousel-start-section { align-items: stretch; gap: 20px; padding-block: 28px; }
  .carousel-start-section > div { flex-basis: 100%; }
  .carousel-start-section > .button { width: 100%; }
  .template-format-section .format-tile { padding: 20px; min-height: 128px; }
}
