/**
 * Главная @1900px — правки по Figma 1_index_1900 (10005:8318).
 */

@media (min-width: 1900px) {
  /* --- Hero --- */
  body.page-home .hero--home .hero__lead {
    font-family: "Fira Sans", var(--font);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
  }
  body.page-home .hero--home .stat__num {
    max-width: 100%;
  }
  body.page-home .hero--home .stat__txt {
    max-width: 140px;
    width: min(100%, 140px);
    margin-inline: auto;
    text-align: center;
  }
  body.page-home .hero--home .stat {
    align-items: center;
  }
  body.page-home .hero--home .tile--hero {
    padding: 35px;
    min-height: 252px;
    height: 252px;
    max-height: 252px;
  }
  body.page-home .hero--home .tile--hero .tile__body {
    height: 178px;
    flex: 0 0 178px;
    gap: 16px;
  }
  body.page-home .hero--home .tile--hero .tile__title {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
    flex: 0 0 calc(2.4em);
    min-height: calc(2.4em);
    max-height: calc(2.4em);
    height: calc(2.4em);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  body.page-home .hero--home .tile--hero .tile__desc {
    font-family: var(--font-body-figma);
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
    flex: 0 0 104px;
    height: 104px;
    max-height: 104px;
    min-height: 104px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
  }

  /* --- Продвигаемый продукт (фон/стрелки — в styles.css @800+) --- */
  body.page-home .product-showcase .split-row__copy p {
    line-height: 1.5;
  }
  body.page-home .product-showcase .split-row__copy p + p {
    margin-top: 1em;
  }
  body.page-home .product-showcase .split-row__art {
    position: relative;
    z-index: 1;
    overflow: visible;
  }
  body.page-home .product-showcase__body {
    padding-bottom: 28px;
  }

  /* --- Тарифы --- */
  body.page-home .price-card__amount {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: baseline;
    gap: 0 4px;
  }
  body.page-home .price-card__value {
    font-family: var(--font);
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
  }
  body.page-home .price-card__currency {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
  }
  body.page-home .price-card__amount small {
    font-size: 16px;
    font-weight: 500;
  }
  body.page-home .price-card__advantage {
    font-size: 16px;
    color: #020203;
  }
  body.page-home .price-card__list li::before {
    content: none;
  }
  body.page-home .price-card__list li {
    list-style: none;
    padding-left: 0;
  }

  /* --- Промо под отраслями --- */
  body.page-home .tile--promo .tile__desc {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.3;
  }

  /* --- Инсайты / новости: без красной полосы --- */
  body.page-home .insight-card,
  body.page-home .news-card {
    border-top: 0;
    border: 1px solid var(--c-line);
    box-shadow: 0 0 12.5px rgba(57, 59, 65, 0.1);
  }
  body.page-home .insight-card__img,
  body.page-home .news-card__img {
    aspect-ratio: 378 / 220;
    max-height: 220px;
  }
  body.page-home .tag-pill,
  body.page-home .news-card__meta .news-card__rubric {
    background: #f3f3f3;
    color: #ed1a34;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
  }
  body.page-home .news-card__more {
    margin-top: 8px;
    color: #686a73;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  body.page-home .news-card__more-arrow {
    display: inline-block;
    width: 5px;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='6' viewBox='0 0 5 6' fill='none'%3E%3Cpath d='M0 0L5 3L0 6V0Z' fill='%23686A73'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  body.page-home .section--articles .section-actions {
    margin-top: 36px;
    text-align: center;
  }

  /* --- Новости --- */
  body.page-home .section--news-home .section-header .section-link {
    display: none;
  }

  /* --- Обучение --- */
  body.page-home .edu-training__title {
    max-width: 565px;
  }
  body.page-home .edu-training__photo {
    transform: none;
  }

  /* --- Библиотека фонда --- */
  body.page-home .fund-library-cta__lead {
    font-size: 16px;
    line-height: 1.3;
  }

  /* --- ГОСТы --- */
  body.page-home .gosts-home__more::after {
    content: none;
  }
  body.page-home .gosts-home__title {
    margin-bottom: 24px;
  }
  body.page-home .gosts-home__more {
    margin-top: 8px;
    align-self: flex-start;
  }

  /* --- Мероприятия --- */
  body.page-home .event-card,
  body.page-home .event-card__cover,
  body.page-home .event-card__cover img {
    border-radius: 0;
  }

  /* --- Футер --- */
  body.page-home .footer__nav {
    background: #f5f5f5;
  }
  body.page-home .footer-menu__list:empty {
    display: none;
  }
  body.page-home .footer__hotline {
    font-size: 24px;
    font-weight: 500;
    line-height: 29px;
    color: #020203;
  }
  body.page-home .footer__email,
  body.page-home .footer__address {
    color: #020203;
  }
  body.page-home .footer__socials {
    gap: 15px;
    margin-top: 16px;
  }
  body.page-home .footer__legal,
  body.page-home .footer__legal a,
  body.page-home .footer__copy {
    color: #020203;
  }
  body.page-home .footer__brand-link {
    display: block;
    margin-bottom: 0;
  }
  body.page-home .footer__brand-text {
    display: none;
  }
  body.page-home .footer__util {
    background: transparent;
    color: #020203;
  }
  body.page-home .footer__lang-chevron {
    margin-left: 0;
    flex-shrink: 0;
  }
}

/* Продвигаемый продукт: стрелки в боковых колонках (800–1279; @1280+ — grid в styles.css) */
@media (min-width: 800px) and (max-width: 1279px) {
  body.page-home .product-showcase__main {
    display: grid;
    grid-template-columns: minmax(50px, auto) minmax(0, 1fr) minmax(50px, auto);
    grid-template-areas: "prev track next";
    align-items: center;
    column-gap: clamp(16px, 2.5vw, 40px);
  }

  body.page-home .product-showcase__main > .product-showcase__track {
    grid-area: track;
    min-width: 0;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--prev {
    grid-area: prev;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--next {
    grid-area: next;
  }

  body.page-home .product-showcase__main > .product-showcase__rail .product-showcase__nav {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
  }
}

/* @1900: стрелки в колонках сетки, без наезда на текст (перебивает отриц. margin @1280+) */
@media (min-width: 1900px) {
  body.page-home .product-showcase__main {
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) 50px !important;
    grid-template-areas: "prev track next" !important;
    align-items: center !important;
    column-gap: clamp(24px, 2vw, 40px) !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  body.page-home .product-showcase__main > .product-showcase__track {
    grid-area: track !important;
    min-width: 0 !important;
  }

  body.page-home .product-showcase__main > .product-showcase__rail {
    position: static !important;
    margin-top: 0 !important;
    align-self: center !important;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--prev {
    grid-area: prev !important;
    justify-self: center !important;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--next {
    grid-area: next !important;
    justify-self: center !important;
  }

  body.page-home .product-showcase__main > .product-showcase__rail .product-showcase__nav {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}
