/* =========================================================
   DARIGER ONLINE — NEWS ARTICLE
   news-visa.css
   Подключать после style.css
========================================================= */

.news-page {
  font-family: "Manrope", Arial, sans-serif;
  color: #171b29;
  background: #ffffff;
}


/* =========================================================
   ARTICLE
========================================================= */

.news-article {
  --news-green: #159447;
  --news-green-dark: #0d7136;
  --news-green-soft: #eef8f2;
  --news-green-border: #dcefe3;

  --news-ink: #171b29;
  --news-text: #3f4852;
  --news-muted: #7a828c;
  --news-line: #e8ece9;

  position: relative;
  padding: 46px 24px 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 2%,
      rgba(21, 148, 71, 0.07),
      transparent 270px),
    #ffffff;
}


/* Декоративное свечение */
.news-article::before {
  content: "";
  position: absolute;
  top: 130px;
  right: -170px;

  width: 360px;
  height: 360px;

  border-radius: 50%;
  background: rgba(21, 148, 71, 0.035);
  pointer-events: none;
}


.news-article__inner {
  position: relative;
  z-index: 1;

  width: min(100%, 820px);
  margin-inline: auto;
}


/* =========================================================
   TOP META
========================================================= */

.news-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 12px 24px;

  margin-bottom: 38px;
}


.news-article__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  min-height: 42px;

  color: var(--news-green-dark);

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;

  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}


.news-article__back svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;

  transition: transform 0.2s ease;
}


.news-article__date {
  display: inline-flex;
  align-items: center;

  min-height: 36px;
  padding: 8px 13px;

  border: 1px solid #e5ebe7;
  border-radius: 100px;

  background: rgba(255, 255, 255, 0.9);

  color: #6c747d;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}


/* =========================================================
   ARTICLE HEADER
========================================================= */

.news-article__title {
  position: relative;

  max-width: 790px;

  margin: 0;

  color: var(--news-ink);

  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.12;

  letter-spacing: -0.045em;

  text-align: left;

  text-wrap: balance;
  overflow-wrap: break-word;
}


/* маленькая зелёная линия перед описанием */
.news-article__title::after {
  content: "";

  display: block;

  width: 54px;
  height: 4px;

  margin-top: 27px;

  border-radius: 100px;
  background: var(--news-green);
}


/* =========================================================
   LEAD / ВВОДНЫЙ ТЕКСТ
========================================================= */

.news-article__lead {
  position: relative;

  margin: 26px 0 0;
  padding: 22px 24px 22px 26px;

  border: 1px solid var(--news-green-border);
  border-radius: 18px;

  background: linear-gradient(135deg,
      #f3faf5 0%,
      #f8fcf9 100%);

  color: #34483c;

  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;

  letter-spacing: -0.008em;
}


.news-article__lead::before {
  content: "";

  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;

  width: 4px;

  border-radius: 0 10px 10px 0;
  background: var(--news-green);
}


/* =========================================================
   IMAGE
========================================================= */

.news-article__figure {
  position: relative;

  width: calc(100% + 80px);
  max-width: none;

  margin: 42px -40px 44px;

  padding: 14px;

  overflow: hidden;

  border: 1px solid #e9eeeb;
  border-radius: 26px;

  background: #f7f9f8;

  box-shadow:
    0 22px 60px rgba(23, 27, 41, 0.07),
    0 3px 10px rgba(23, 27, 41, 0.025);
}


.news-article__image {
  display: block;

  width: 100%;
  height: 100%;
  max-height: 520px;

  margin: 0 auto;

  border-radius: 18px;

  object-fit: contain;

  background: #ffffff;
}


/* =========================================================
   BODY
========================================================= */

.news-article__body {
  width: 100%;

  margin: 0;

  color: var(--news-text);

  font-family: "Manrope", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.82;

  letter-spacing: -0.006em;

  overflow-wrap: break-word;
}


.news-article__body p {
  margin: 0 0 24px;
}


.news-article__body p:last-child {
  margin-bottom: 0;
}


/* Первый абзац немного выразительнее */
.news-article__body p:first-child {
  color: #303943;
  font-weight: 500;
}


/* Ссылки */
.news-article__body a {
  color: var(--news-green-dark);

  font-weight: 600;

  text-decoration: underline;
  text-decoration-color: rgba(21, 148, 71, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}


/* =========================================================
   BOTTOM
========================================================= */

.news-article__bottom {
  display: flex;
  align-items: center;

  width: 100%;

  margin-top: 52px;
  padding-top: 26px;

  border-top: 1px solid var(--news-line);
}


.news-article__bottom .news-article__back {
  gap: 9px;

  min-height: 46px;
  padding: 0 18px;

  border: 1px solid var(--news-green-border);
  border-radius: 12px;

  background: var(--news-green-soft);

  color: var(--news-green-dark);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}


/* =========================================================
   INTERACTIONS
========================================================= */

@media (hover: hover) {

  .news-article__back:hover {
    color: var(--news-green);
  }

  .news-article__back:hover svg {
    transform: translateX(-3px);
  }

  .news-article__bottom .news-article__back:hover {
    background: #e4f5ea;
    border-color: #c8e8d4;

    transform: translateY(-1px);
  }

  .news-article__body a:hover {
    color: var(--news-green);
    text-decoration-color: var(--news-green);
  }
}


.news-article a:focus-visible {
  outline: 2px solid var(--news-green);
  outline-offset: 4px;
  border-radius: 5px;
}


.news-article ::selection {
  color: #12331e;
  background: #d9f1e1;
}


/* =========================================================
   HEADER / FOOTER
========================================================= */

.news-page .header,
.news-page .footer,
.news-page .mobile-menu,
.news-page .contact-card,
.news-page button,
.news-page select {
  font-family: "Manrope", Arial, sans-serif;
}


.news-page .mobile-menu__nav a.active {
  color: var(--green, #159447);
}


.news-page .footer__nav a,
.news-page .footer__contact-trigger {
  font-size: 15px;
}


.news-page .footer__copyright,
.news-page .footer__legal a {
  font-size: 13px;
  line-height: 1.55;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .news-article {
    padding-top: 36px;
    padding-bottom: 72px;
  }

  .news-article__inner {
    width: min(100%, 760px);
  }

  .news-article__figure {
    width: 100%;
    height: 100%;
    margin-left: 0;
    margin-right: 0;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .news-article {
    padding: 22px 20px 54px;

    background:
      radial-gradient(circle at 100% 0%,
        rgba(21, 148, 71, 0.055),
        transparent 220px),
      #ffffff;
  }


  .news-article::before {
    display: none;
  }


  .news-article__meta {
    gap: 10px 14px;

    margin-bottom: 27px;
  }


  .news-article__back {
    min-height: 38px;

    font-size: 13px;
  }


  .news-article__date {
    min-height: 32px;
    padding: 7px 11px;

    font-size: 12px;
  }


  .news-article__title {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.16;

    letter-spacing: -0.038em;

    text-wrap: pretty;
  }


  .news-article__title::after {
    width: 44px;
    height: 3px;

    margin-top: 21px;
  }


  .news-article__lead {
    margin-top: 21px;

    padding: 18px 18px 18px 21px;

    border-radius: 15px;

    font-size: 16px;
    line-height: 1.65;
  }


  .news-article__lead::before {
    top: 17px;
    bottom: 17px;

    width: 3px;
  }


  .news-article__figure {
    margin-top: 28px;
    margin-bottom: 30px;

    padding: 8px;

    border-radius: 19px;

    box-shadow:
      0 12px 35px rgba(23, 27, 41, 0.06);
  }


  .news-article__image {
    max-height: 360px;

    border-radius: 13px;
  }


  .news-article__body {
    font-size: 16px;
    line-height: 1.75;
  }


  .news-article__body p {
    margin-bottom: 21px;
  }


  .news-article__bottom {
    margin-top: 38px;
    padding-top: 22px;
  }


  .news-article__bottom .news-article__back {
    min-height: 44px;

    padding-inline: 15px;

    border-radius: 11px;
  }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 374px) {

  .news-article {
    padding-inline: 16px;
  }

  .news-article__title {
    font-size: 27px;
  }

  .news-article__lead {
    padding: 16px 16px 16px 19px;

    font-size: 15px;
  }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html:has(.news-page) {
    scroll-behavior: auto;
  }

  .news-article__back,
  .news-article__back svg,
  .news-article__body a {
    transition: none;
  }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

  .news-page .header,
  .news-page .footer,
  .news-page .mobile-menu,
  .news-page .contact-card,
  .news-article__back,
  .news-article__bottom {
    display: none !important;
  }


  .news-article {
    padding: 0;

    background: #ffffff;
  }


  .news-article::before {
    display: none;
  }


  .news-article__inner {
    max-width: none;
  }


  .news-article__title {
    font-size: 26pt;
  }


  .news-article__lead {
    padding: 12pt;

    border: 1px solid #dddddd;

    background: #ffffff;
  }


  .news-article__body {
    font-size: 11pt;
    line-height: 1.5;
  }


  .news-article__figure {
    width: 100%;
    height: 100%;
    max-width: 150mm;

    margin: 20pt auto;

    padding: 0;

    border: 0;
    box-shadow: none;

    break-inside: avoid;
  }


  .news-article__body p {
    orphans: 3;
    widows: 3;
  }

}

.news-article__lead a {
  color: #0077cc;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.news-article__lead a:hover {
  color: #004f8b;
  text-decoration-thickness: 2px;
}