/* ==========================================================================
   Главная страница. Подключается через $pageCss в index.php (см. header.php).
   Все правила завешены на модификаторы (.actual--v2 и т.п.), чтобы не затронуть
   другие страницы, где используются те же классы из style.v10.css.
   Переменные --nh-* объявлены в header.css.
   ========================================================================== */

/* ---------- Блок «Актуальное» ---------- */

.actual.actual--v2 {
  position: relative;
  margin: 0;
  padding: 56px 20px 64px;
  background:
    radial-gradient(ellipse 640px 280px at 90% 0%, rgba(0, 89, 205, 0.07), transparent 70%),
    linear-gradient(180deg, #fff 0%, #eaf2ff 100%);
}

/* блок шире общего .sm-container (1000px): карточек две в ряд, им нужно больше места */
.actual--v2 .sm-container {
  max-width: 1240px;
}

.actual--v2 .section-title,
.news--v2 .section-title {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 16px;
  color: var(--nh-ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.actual--v2 .section-title::after,
.news--v2 .section-title::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0059cd, #4cc4ff);
}

/* Слайдер. Отступы даём слайдам, а не контейнеру: Swiper считает ширину по clientWidth контейнера,
   а контейнер с overflow:hidden иначе обрежет тень карточек. */
.actual--v2 .main_block-posts {
  display: block;
  width: calc(100% + 24px);
  margin-left: -12px;
  padding: 0 0 34px;
}

.actual--v2 .main_block-posts .swiper-slide {
  height: auto;
  padding: 16px 24px 28px;
}

.actual--v2 .main_block-posts a.post-card {
  position: relative;
  top: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  align-content: stretch;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 89, 205, 0.08);
  border-radius: 24px;
  background: #fff;
  color: var(--nh-ink);
  text-decoration: none;
  box-shadow: 0 16px 34px -20px rgba(0, 53, 125, 0.4), 0 2px 6px rgba(0, 53, 125, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* убираем синие линии по краям и подъём через top из style.v10.css */
.actual--v2 .main_block-posts a.post-card::before,
.actual--v2 .main_block-posts a.post-card::after {
  display: none;
}

.actual--v2 .main_block-posts a.post-card:hover {
  top: 0;
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -20px rgba(0, 53, 125, 0.5), 0 2px 6px rgba(0, 53, 125, 0.05);
}

/* картинка с чипами-тегами */
.actual--v2 .post-card__media {
  position: relative;
  flex: 0 0 320px;
  padding: 14px;
}

.actual--v2 .post-card__media {
  min-height: 300px;
}

/* картинка заполняет блок абсолютно: её собственные пропорции не растягивают карточку (фото бывают высокие) */
.actual--v2 .post-card__media .post_img {
  position: absolute;
  top: 14px;
  left: 14px;
  display: block;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  max-height: none;
  margin: 0;
  border-radius: 16px;
  object-fit: cover;
}

.actual--v2 .post-card .tags {
  position: absolute;
  top: 26px;
  left: 26px;
  right: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: auto;
  padding: 0;
}

.actual--v2 .main_block-posts a.post-card .tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--nh-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 4px 12px -4px rgba(0, 28, 79, 0.35);
}

/* цвет точки в чипе показывает тип; сам чип всегда светлый */
.actual--v2 .main_block-posts a.post-card .tags span::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nh-blue);
}

.actual--v2 .main_block-posts a.post-card .tags span.camps::before { background: #ff4a1c; }
.actual--v2 .main_block-posts a.post-card .tags span.new::before { background: #e11d48; }
.actual--v2 .main_block-posts a.post-card .tags span.summer::before { background: #f5b800; }
.actual--v2 .main_block-posts a.post-card .tags span.winter::before { background: #4cc4ff; }
.actual--v2 .main_block-posts a.post-card .tags span.interships::before { background: #7c3aed; }

/* текст */
.actual--v2 .post-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 36px 28px 16px;
}

.actual--v2 .post-card__title {
  margin: 0 0 12px;
  color: var(--nh-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.actual--v2 .post-card__text {
  margin: 0 0 10px;
  color: #4a5670;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  /* полный текст — на странице, куда ведёт карточка */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.actual--v2 .post-card__text b {
  color: var(--nh-ink);
  font-weight: 600;
}

/* кнопка видна всегда (раньше «Перейти по ссылке» появлялась только при наведении — на телефоне её не было) */
.actual--v2 .post-card__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--nh-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 10px 20px -10px rgba(0, 89, 205, 0.85);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.actual--v2 .post-card__cta::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.2s;
}

.actual--v2 .post-card:hover .post-card__cta {
  background: var(--nh-blue-dark);
  box-shadow: 0 14px 24px -10px rgba(0, 89, 205, 0.9);
}

.actual--v2 .post-card:hover .post-card__cta::after {
  transform: translateX(4px);
}

/* точки слайдера: в style.v10.css они заданы через !important, поэтому и здесь !important */
/* точки лежат в нижнем отступе контейнера (позиционирует их сам Swiper) */
.actual--v2 .main_block-posts .swiper-pagination {
  bottom: 6px;
}

.actual--v2 .main_block-posts .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  margin: 0 4px !important;
  border-radius: 8px;
  background: #a9c4ee !important;
  opacity: 1;
  transition: width 0.3s, background-color 0.3s;
}

.actual--v2 .main_block-posts .swiper-pagination-bullet-active {
  width: 28px !important;
  background: var(--nh-blue) !important;
}

/* ---------- Адаптив ----------
   Раскладка карточки зависит от ширины самой карточки (container query), а не экрана:
   Swiper может показывать одну запись на весь блок или две рядом — в обоих случаях должно быть красиво. */

.actual--v2 .main_block-posts .swiper-slide {
  container: post / inline-size;
}

/* карточка уже ~640px: картинка сверху, текст снизу, кнопки на одной линии */
@container post (max-width: 640px) {
  .actual--v2 .main_block-posts a.post-card {
    flex-direction: column;
    border-radius: 20px;
  }

  .actual--v2 .post-card__media {
    flex: 0 0 auto;
    padding: 10px 10px 0;
  }

  .actual--v2 .post-card__media {
    min-height: 0;
  }

  .actual--v2 .post-card__media .post_img {
    position: static;
    width: 100%;
    height: auto;
    /* пропорции картинки в карточке-колонке; меняйте здесь, если баннеры обрезаются */
    aspect-ratio: var(--post-img-ratio, 4 / 3);
    border-radius: 14px;
  }

  .actual--v2 .post-card .tags {
    top: 20px;
    left: 20px;
    right: 20px;
  }

  .actual--v2 .post-card__body {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 20px 22px 24px;
  }

  .actual--v2 .post-card__title {
    font-size: 20px;
  }

  .actual--v2 .post-card__text {
    -webkit-line-clamp: 12;
  }

  /* карточки в ряду одной высоты — кнопки прижимаем к низу */
  .actual--v2 .post-card__cta {
    margin-top: auto;
  }

  .actual--v2 .post-card__text:last-of-type {
    margin-bottom: 18px;
  }
}

/* на телефонах карточка узкая — возвращаем квадрат, как в исходных баннерах (280x280), чтобы не резать текст на картинке */
@container post (max-width: 440px) {
  .actual--v2 .post-card__media .post_img {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 768px) {
  .actual.actual--v2 {
    padding: 40px 16px 48px;
  }

  .actual--v2 .section-title {
    font-size: 26px;
  }

  .actual--v2 .main_block-posts {
    width: calc(100% + 4px);
    margin-left: -2px;
    padding-bottom: 30px;
  }

  .actual--v2 .main_block-posts .swiper-slide {
    padding: 12px 14px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .actual--v2 .post-card,
  .actual--v2 .post-card__cta,
  .actual--v2 .post-card__cta::after,
  .actual--v2 .swiper-pagination-bullet {
    transition: none;
  }
}

/* ---------- Блок «Новости школы» ----------
   Классы .news_item* из style.v10.css используются и на страницах новостей,
   поэтому всё завешено на .news--v2 (только главная). */

.news.news--v2 {
  position: relative;
  margin: 0;
  padding: 64px 20px 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 620px 320px at 12% 0%, rgba(76, 196, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 560px 320px at 92% 100%, rgba(150, 130, 255, 0.2), transparent 70%),
    linear-gradient(135deg, #00235f 0%, #003a8f 60%, #0053c0 120%);
}

.news--v2 .sm-container {
  max-width: 1240px;
}

/* шапка блока: заголовок слева, «Все новости» справа */
.news--v2 .news__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 8px;
}

.news--v2 .news__head .section-title {
  margin: 0;
  color: #fff;
}

.news--v2 .news__head .section-title::after {
  background: linear-gradient(90deg, #4cc4ff, #fff);
}

.news--v2 .news__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 12px 16px;
}

.news--v2 .news_all {
  margin: 0;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  opacity: 1;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.news--v2 .news_all:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.news--v2 .news_all--primary {
  border-color: #fff;
  background: #fff;
  color: var(--nh-blue);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}

.news--v2 .news_all--primary::after {
  content: "→";
  margin-left: 8px;
}

.news--v2 .news_all--primary:hover {
  background: var(--nh-ice);
  color: var(--nh-blue-dark);
}

/* слайдер: отступ снизу под точки; сколько карточек в ряд — решает инициализация Swiper */
.news--v2 .main_news .swiper {
  padding-bottom: 38px;
}

.news--v2 .main_news .swiper-slide {
  height: auto;
  padding: 16px 0 0;
}

.news--v2 a.news_item {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  color: var(--nh-ink);
  text-decoration: none;
  box-shadow: 0 18px 30px -18px rgba(0, 12, 40, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news--v2 a.news_item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 36px -18px rgba(0, 12, 40, 0.8);
}

.news--v2 .news_item-media {
  position: relative;
  overflow: hidden;
  background: var(--nh-ice);
}

.news--v2 .news_item-media img {
  display: block;
  width: 100%;
  min-height: 360px;
  height: auto;
  max-height: none;
  /* aspect-ratio: 16 / 10; */
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.news--v2 a.news_item:hover .news_item-media img {
  transform: scale(1.04);
}

/* дата — чипом на картинке (в style.v10.css .news_item-date: справа, полупрозрачный) */
.news--v2 .news_item-media .news_item-date {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--nh-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  opacity: 1;
  box-shadow: 0 4px 12px -4px rgba(0, 28, 79, 0.35);
}

.news--v2 .news_item-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.news--v2 .news_item-title {
  min-height: 0;
  margin: 0 0 10px;
  color: var(--nh-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* вместо затемнения низа (::after из style.v10.css) — обрезка по строкам */
.news--v2 .news_item-short {
  height: auto;
  margin: 0 0 16px;
  color: #4a5670;
  font-size: 14.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news--v2 .news_item-short::after {
  display: none;
}

.news--v2 .news_item-more {
  margin-top: auto;
  color: var(--nh-blue);
  font-size: 14px;
  font-weight: 600;
}

.news--v2 .news_item-more::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.2s;
}

.news--v2 a.news_item:hover .news_item-more::after {
  transform: translateX(5px);
}

/* точки слайдера (в style.v10.css заданы через !important) */
.news--v2 .main_news .swiper-pagination {
  position: absolute;
  bottom: 4px;
  margin: 0;
}

.news--v2 .main_news .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  margin: 0 4px !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4) !important;
  opacity: 1;
  transition: width 0.3s, background-color 0.3s;
}

.news--v2 .main_news .swiper-pagination-bullet-active {
  width: 28px !important;
  background: #fff !important;
}

@media (max-width: 768px) {
  .news.news--v2 {
    padding: 44px 16px 52px;
  }

  .news--v2 .news__links {
    padding-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news--v2 a.news_item,
  .news--v2 .news_item-media img,
  .news--v2 .news_item-more::after,
  .news--v2 .news_all,
  .news--v2 .swiper-pagination-bullet {
    transition: none;
  }
}

/* ---------- Блок «Присоединяйся к нам в соцсетях» ---------- */

/* синий фон — на всю ширину экрана, содержимое (.join-us__inner) — не шире 1400px */
.join-us {
  --join-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  padding: 64px 24px;
  color: #fff;
  background-color: #0046a8;
  background-image:
    radial-gradient(34% 140% at 8% -10%, rgba(76, 196, 255, 0.5), transparent 70%),
    radial-gradient(30% 130% at 60% 120%, rgba(150, 130, 255, 0.4), transparent 70%),
    radial-gradient(34% 140% at 96% -10%, rgba(76, 196, 255, 0.35), transparent 70%),
    linear-gradient(120deg, #0059cd 0%, #00349a 100%);
  background-size: 200% 100%, 200% 100%, 200% 100%, 100% 100%;
  animation: join-aurora 26s ease-in-out infinite alternate;
}

.join-us__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
}

@keyframes join-aurora {
  from { background-position: 0% 0, 0% 0, 0% 0, 0 0; }
  to { background-position: 100% 0, 100% 0, 100% 0, 0 0; }
}

.join-us__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: left;
}

.join-us__lead {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.6;
  text-align: left;
}

.join-us__tiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.join-us__tile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.5s var(--join-ease),
    background-color 0.4s var(--join-ease),
    box-shadow 0.5s var(--join-ease),
    color 0.3s;
}

.join-us__tile:hover {
  transform: translateX(8px);
  background: #fff;
  color: var(--nh-blue);
  box-shadow: 0 18px 34px -16px rgba(0, 12, 40, 0.65);
}

/* иконка: белый знак на стеклянной плитке; при наведении плитка синеет */
.join-us__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 0.4s var(--join-ease), transform 0.5s var(--join-ease);
}

/* в style.v10.css у * задан color: без этого дочерние элементы не наследуют белый цвет плитки */
.join-us__tile span,
.join-us__icon svg,
.join-us__icon svg * {
  color: inherit;
}

.join-us__icon svg {
  display: block;
  width: 30px;
  height: 30px;
  transition: transform 0.5s var(--join-ease);
}

.join-us__tile:hover .join-us__icon {
  background: var(--nh-blue);
  color: #fff;
  transform: rotate(-5deg);
}

.join-us__tile:hover .join-us__icon svg {
  transform: scale(1.1);
}

.join-us__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.join-us__name {
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.join-us__handle {
  overflow: hidden;
  color: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.75;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.join-us__arrow {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 0.4s var(--join-ease), transform 0.5s var(--join-ease);
}

.join-us__arrow::after {
  content: "→";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
}

.join-us__tile:hover .join-us__arrow {
  background: var(--nh-ice);
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .join-us {
    padding: 44px 20px;
  }

  .join-us__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .join-us__tile:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 480px) {
  .join-us__icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .join-us__tile {
    gap: 14px;
    padding: 12px 14px 12px 12px;
  }

  .join-us__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .join-us {
    animation: none;
  }

  .join-us__tile,
  .join-us__icon,
  .join-us__icon svg,
  .join-us__arrow {
    transition: none;
  }
}

/* ---------- Блок «Документы и ресурсы» ---------- */

.docs-strip {
  --docs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  padding: 64px 24px;
}

.docs-strip__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.docs-strip__title {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 14px;
  color: var(--nh-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.docs-strip__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0059cd, #4cc4ff);
}

.docs-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.docs-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 18px 20px 18px 18px;
  border: 1px solid rgba(0, 89, 205, 0.1);
  border-radius: 20px;
  background: #fff;
  color: var(--nh-ink);
  text-decoration: none;
  box-shadow: 0 14px 30px -24px rgba(0, 53, 125, 0.5);
  transition:
    transform 0.5s var(--docs-ease),
    border-color 0.4s var(--docs-ease),
    box-shadow 0.5s var(--docs-ease);
}

.docs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 89, 205, 0.3);
  box-shadow: 0 22px 36px -22px rgba(0, 53, 125, 0.6);
}

/* в style.v10.css у * задан color: без явного наследования иконки и тексты остаются тёмными */
.docs-card span,
.docs-card__icon svg,
.docs-card__icon svg * {
  color: inherit;
}

.docs-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, #eef4ff, #dce9ff);
  color: var(--nh-blue);
  transition: background 0.4s var(--docs-ease), color 0.4s var(--docs-ease), transform 0.5s var(--docs-ease);
}

.docs-card__icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.docs-card:hover .docs-card__icon {
  background: var(--nh-blue);
  color: #fff;
  transform: rotate(-5deg);
}

.docs-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.docs-card__name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
}

.docs-card__host {
  color: #6b7a90;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.docs-card .docs-card__host {
  color: #6b7a90;
}

.docs-card__arrow {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--nh-ice);
  color: var(--nh-blue);
  transition: background-color 0.4s var(--docs-ease), color 0.4s var(--docs-ease), transform 0.5s var(--docs-ease);
}

.docs-card__arrow::after {
  content: "→";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
}

/* внешние сайты: стрелка вверх-вправо */
.docs-card__arrow--out::after {
  content: "↗";
}

.docs-card:hover .docs-card__arrow {
  background: var(--nh-blue);
  color: #fff;
  transform: translateX(3px);
}

@media (max-width: 992px) {
  .docs-strip__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .docs-strip {
    padding: 44px 16px 4px;
  }

  .docs-strip__title {
    font-size: 23px;
  }

  .docs-card__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-card,
  .docs-card__icon,
  .docs-card__arrow {
    transition: none;
  }
}
