

/* Start:/local/templates/ural_2026/components/bitrix/news/news/bitrix/news.detail/.default/style.css?17882611765954*/
/* —— Article —— */
.article {
    padding-top: 0;
    padding-bottom: 20px;
}

article.article > * + * {
    margin-top: 0;
}

.article__content {
    width: 100%;
}

.article__content::after {
    content: "";
    display: table;
    clear: both;
}

.article__media {
  float: left;
  width: calc(50% - 10px);
  max-width: 630px;
  margin: 0 20px 40px 0;
  aspect-ratio: 630 / 354;
  overflow: hidden;
  /*background: #f3f3f3;*/
}

.article__media img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    object-fit: contain;
}

/* Нет изображения — пустое место (Desktop / Tablet) */
.article__media:not(:has(img)) {
    min-height: 354px;
}

.article__date {
  display: block;
  margin-bottom: 30px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #bababa;
}

/* —— Latest news —— */
.latest-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 0;
    padding-top: 0;
}

.news__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 21px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-height: 623px;
    background: #fff;
    border: 1px solid #d9d9d9;
    margin-bottom: 0;
    margin-top: 0;
}

.news-card__image {
    display: block;
    width: calc(100% - 62px);
    max-width: 350px;
    height: 250px;
    margin: 27px auto 0;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    object-fit: contain;
}

.news-card__image:not(:has(img)) {
    pointer-events: none;
}

.news-card:not(:has(.news-card__image))::before {
    content: "";
    display: block;
    width: calc(100% - 62px);
    max-width: 350px;
    height: 250px;
    margin: 27px auto 0;
    flex-shrink: 0;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 70px);
    max-width: 343px;
    margin: 16px auto 0;
    padding-bottom: 27px;
    line-height: 1.6;
}

.page-text .news-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #ec621f;
}

.news-card__title a:hover {
    text-decoration: underline;
}

.page-text .news-card__excerpt {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: #333;
}

.news-card__more {
    font-size: 15px;
    font-weight: 500;
    color: #ec621f;
}

.news-card__more:hover {
    text-decoration: underline;
}

.news-card__date {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #8c8c8c;
}

.news__more {
    display: none;
}

/* —— Tablet —— */
@media (max-width: 1023px) {
    .article {
        padding-top: 0;
    }

    .article__media {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 30px;
        aspect-ratio: 738 / 414;
    }

    .article__media:not(:has(img)) {
        min-height: 414px;
    }


    .article__date {
        margin-bottom: 30px;
    }

    .news__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .news-card__image {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        height: 216px;
        margin-top: 23px;
    }

    .news-card:not(:has(.news-card__image))::before {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        height: 216px;
        margin-top: 23px;
    }

    .news-card__body {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        margin-top: 22px;
    }

    .news__more {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 49px;
        border: 1px solid #ec621f;
        background: #fff;
        font-family: inherit;
        font-size: 20px;
        font-weight: 500;
        color: #ec621f;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .news__more:hover {
        background: #ec621f;
        color: #fff;
    }

    .page-text
    .latest-news h2 {
        margin-top: 20px;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 767px) {
    .page-content:has(.page-text .article) {
        padding-top: 0;
    }
}

/* —— Mobile —— */
@media (max-width: 640px) {
    .article {
        padding-top: 0;
    }

    .article__media {
        aspect-ratio: 345 / 194;
        margin-bottom: 20px;
    }

    /* На mobile пустое место под картинку не резервируем */
    .article__media:not(:has(img)) {
        display: none;
        min-height: 0;
    }

    .article__date {
        margin-bottom: 20px;
        font-size: 14px;
    }

  .article__content p + .download {
    margin-top: 20px;
  }

  .article__content .download + p {
    margin-top: 20px;
  }

  .article__content > h2 {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .article__content > h2:nth-of-type(2) {
    margin-bottom: 12px;
  }

  .article__content > .callout {
    margin-top: 20px;
  }

    .latest-news {
        gap: 20px;
    }

    .news__list {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .news-card {
        width: 100%;
        max-width: 345px;
        min-height: 0;
    }

    .news-card__image {
        width: calc(100% - 43px);
        max-width: calc(100% - 43px);
        height: 216px;
        margin-top: 23px;
    }

    .news-card__image:not(:has(img)),
    .news-card:not(:has(.news-card__image))::before {
        display: none;
    }

    .news-card:not(:has(.news-card__image img)) .news-card__body {
        margin-top: 23px;
    }

    .news-card__body {
        width: calc(100% - 43px);
        max-width: calc(100% - 43px);
        margin-top: 22px;
    }

    .news__more {
        max-width: 345px;
        margin: 0 auto;
    }
}

/* End */


/* Start:/local/templates/ural_2026/components/bitrix/news.list/latest-news/style.css?1788261176130*/
.news__more--hidden {
    display: none;
}

@media (max-width: 1023px) {
    .news-card--desktop {
        display: none;
    }
}

/* End */
/* /local/templates/ural_2026/components/bitrix/news/news/bitrix/news.detail/.default/style.css?17882611765954 */
/* /local/templates/ural_2026/components/bitrix/news.list/latest-news/style.css?1788261176130 */
