.teplocom-news-card { padding: 16px; margin: 0; background: #fff; color: #232323; }
.teplocom-news-card h3 { font-size: 18px; line-height: 1.3; margin: 7px 0; }
.teplocom-news-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 8px; }
.teplocom-news-card time { font-size: 13px; color: #565656; }
.teplocom-news-card a, .teplocom-news-page a { color: #793a00; }
.teplocom-news-page { background: #fff; padding: 22px; }
.teplocom-news-page .teplocom-news-card { max-width: 410px; padding: 0; }
.teplocom-news-page > img { max-width: min(100%, 750px); height: auto; margin: 8px 0 16px; }
.multisite-home .teplocom-home-slides { position: relative; min-height: 325px; height: 100%; background: #fff; }
.multisite-home .teplocom-home-slides .slideinner { min-height: 325px; }
.multisite-home .teplocom-home-slides .slideinner .slideContent { min-height: 325px; }
.teplocom-home-slides h1, .teplocom-home-slides h2 { color: #713900; font-size: 28px; margin: 0 0 10px; }
.teplocom-home-slides .teplocom-cta { display: inline-block; padding: 10px 16px; margin: 5px 0;
  color: #241600; background: #ff9700; border-radius: 4px; text-decoration: none; }
.teplocom-home-slides .teplocom-cta:hover, .teplocom-home-slides .teplocom-cta:focus-visible { background: #ffb44d; color: #241600; }
.teplocom-about { background: #fff; color: #232323; padding: 20px; margin-bottom: 18px; }
.teplocom-about h2 { color: #713900; font-size: 22px; }
@media (max-width: 991px) {
  .multisite-home .teplocom-home-slides .slideinner .slideContent {
    grid-template-rows: auto auto; min-height: 332px; align-content: center;
  }
  .teplocom-home-slides h1, .teplocom-home-slides h2 { font-size: 24px; }
}

/* Shared Enzo keeps its layout; use the Teplocom accent and a darker reading color. */
:root { --catalog-green: #793a00 !important; }
.header-top.firstMainColor .firstMainColorText,
.header-top.firstMainColor a,
.header-top.firstMainColor .header-city { color: #241600 !important; }
.preview-menu-toggle { background: #793a00 !important; color: #fff !important; }
.multisite-home [data-a09-order="news"] { display: flex; flex-direction: column; }
.multisite-home [data-a09-order="news"] .teplocom-news-card { flex: 1 1 auto; }
.multisite-home [data-a09-order="news"] > a { background: #fff; color: #793a00; padding: 0 16px 12px; }
.goodsTableNah .offer_price .a09-native-rfq-cta,
.goodsTableNah .textaboutsaleformoney p { color: #241600 !important; }
.goodsTableNah .offer_price .a09-native-rfq-cta:hover,
.goodsTableNah .offer_price .a09-native-rfq-cta:focus-visible { background-color: #ffb44d !important; }
.goodsTableNah .cat_files a { color: #793a00 !important; }
.goodsTableNah .product-item-detail-tab.active a { border-color: #793a00 !important; }
@media (max-width: 767px) {
  .goodsTableNah .product-item-detail-tabs-list .product-item-detail-tab > a {
    font-size: 11px !important; padding: 0 1px !important;
  }
  .goodsTableNah .product-item-detail-tabs-list .product-item-detail-tab > a > span {
    display: block; white-space: nowrap !important; overflow-wrap: normal !important; word-break: normal !important;
  }
}
@media (max-width: 359px) {
  .goodsTableNah .product-item-detail-tabs-list { grid-template-columns: 1fr !important; }
}

/* A custom news card has its own footer link; include it in the shared row height. */
@media (min-width: 1200px) {
    .a09-catalog-columns > .a09-catalog-top:has(> [data-a09-order="news"] > article) {
        height: auto;
        min-height: 480px;
    }
    .a09-catalog-top:has(> [data-a09-order="news"] > article) > .a09-catalog-block {
        height: auto;
    }
    .a09-catalog-top:has(> [data-a09-order="news"] > article) > [data-a09-order="hero"] {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .a09-catalog-top:has(> [data-a09-order="news"] > article) > [data-a09-order="hero"] > .mainSlider {
        height: auto;
    }
}

/* Keep the accepted news/hero row height when the Enzo slider wrapper is present. */
.multisite-home [data-a09-order="hero"] > .teplocom-standard-hero {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
}
.multisite-home .teplocom-standard-hero > .teplocom-home-slides {
    height: auto;
}
.multisite-home .teplocom-standard-hero .innerImg img {
    height: auto;
}
.multisite-home .teplocom-standard-hero .mainSlider .innerText .button a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1199px) {
    .multisite-home .a09-catalog-top .teplocom-standard-hero .mainSlider .slideinner .innerImg {
        height: 150px;
        flex-basis: 150px;
    }
    .multisite-home .a09-catalog-top .teplocom-standard-hero .mainSlider .slideinner .innerText .button {
        padding-top: 0;
    }
}
