/* Theme overrides loaded after Tilda CSS */

.s-partners-type-1__image,
.s-partners-type-1__image-wrapper .s-partners-type-1__image,
img.s-partners-type-1__image {
  height: 60px !important;
  width: auto !important;
  max-width: 100% !important;
}

@media (min-width: 640px) and (max-width: 959px) {
  .sb-container {
    padding: 0 30px !important;
  }
}
@media (min-width: 960px) and (max-width: 1359px) {
  .sb-container {
    padding: 0 30px !important;
    max-width: 884px;
  }
}
@media screen and (min-width: 1360px) {
  .sb-container {
    max-width: 1104px;
    padding: 0 !important;
  }
}

/* Inner-text section (single product_category only): force every descendant
   of the sb-font-p3 column to 16px/24px so ACF WYSIWYG headings entered by
   admin (<h1>–<h6>, <p>) all render at body size. Headings keep bold weight. */
.s-text-type-1_inner .sb-font-p3,
.s-text-type-1_inner .sb-font-p3 * {
  font-size: 16px !important;
  line-height: 24px !important;
}
.s-text-type-1_inner .sb-font-p3 h1,
.s-text-type-1_inner .sb-font-p3 h2,
.s-text-type-1_inner .sb-font-p3 h3,
.s-text-type-1_inner .sb-font-p3 h4,
.s-text-type-1_inner .sb-font-p3 h5,
.s-text-type-1_inner .sb-font-p3 h6 {
  font-weight: 700;
  margin: 0;
}
.s-text-type-1_inner .sb-font-p3 p {
  margin: 0;
}

/* History/about-product title: keep two visual lines without a <br> in the
   heading. The red accent ("НАШИ ПЕЛЬМЕНИ") sits on its own line via CSS. */
.s-history-type-1__title-accent {
  display: block;
}

/* Gutenberg-edited pages (page.php): restore native block styling that the
   Tilda reset.css strips. Scoped to .entry-content so the custom-template
   pages (home, catalog, zakaz) stay unaffected. */
.entry-content ul,
.entry-content ol {
  list-style: revert;
  padding: revert;
  margin: revert;
}
.entry-content ul {
  list-style-type: disc;
}
.entry-content ol {
  list-style-type: decimal;
}
.entry-content li {
  margin: revert;
}
.entry-content p {
  margin: 0 0 1em;
}
.entry-content blockquote {
  margin: revert;
  padding: revert;
  border-left: 4px solid #ccc;
  padding-left: 1em;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: revert;
  font-weight: revert;
}
.entry-content table,
.entry-content .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1em;
}
.entry-content table th,
.entry-content table td {
  border: 1px solid #ddd;
  padding: 0.5em 0.75em;
  text-align: left;
}
.entry-content table th {
  font-weight: 700;
  background: #f7f7f7;
}
.entry-content figure,
.entry-content img {
  margin: revert;
  max-width: 100%;
  height: auto;
}
