/* ============================================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ И СЕТОК
   ============================================================ */

.lab-team-section,
.lab-docs-section {
  padding: 60px 15px;
}

.lab-team-section {
  background-color: var(--lab-bg-light);
}
.lab-docs-section {
  background-color: #ffffff;
}

.section__top {
  margin: 0 auto 40px auto;
}

.section__title {
  font-size: 28px;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.section__subtitle {
  color: var(--lab-text-gray);
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

/* Адаптивные сетки */
.lab-team-grid,
.lab-docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .lab-team-grid,
  .lab-docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section__title {
    font-size: 38px;
  }
}

@media (min-width: 992px) {
  .lab-team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
  .lab-docs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .lab-team-section,
  .lab-docs-section {
    padding: 80px 20px;
  }
}
/* ============================================================
   НАПРАВЛЕНИЯ ДЕЯТЕЛЬНОСТИ
   ============================================================ */

.lab-about-section {
  padding: 60px 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8f9 100%);
}

.lab-about-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.lab-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.lab-about-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--lab-text-dark);
}

.lab-about-content p {
}

/* Список — карточки с номерами */
.lab-about-content ol {
  counter-reset: lab-about-counter;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lab-about-content ol > li {
  counter-increment: lab-about-counter;
  position: relative;
  padding: 19px 22px 19px 62px;
  background: #ffffff;
  border: 1px solid var(--lab-border);
  border-radius: var(--lab-radius);
  box-shadow: 0 4px 12px rgba(8, 13, 107, 0.03);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.lab-about-content ol > li::before {
  content: counter(lab-about-counter, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lab-color-muted);
  font-size: 20px;
  font-weight: 700;
}

.lab-about-content ol > li > p:first-child {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--lab-color-primary);
  line-height: 1.35;
}

.lab-about-content ol > li > p {
  margin: 0 0 8px 0;
  color: var(--lab-text-gray);
}

.lab-about-content ol > li > p:last-child {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.4;
}

/* Изображение справа */
.lab-about-image {
  position: relative;
  border-radius: var(--lab-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(8, 13, 107, 0.08);
  background: #f1f5f9;
}

.lab-about-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Адаптив */
@media (min-width: 768px) {
  .lab-about-grid {
    display: flex;
    gap: 30px;
  }

  .lab-about-content {
    width: calc(100% - 30px - 300px);
  }
  .lab-about-image {
    width: 300px;
  }
}

@media (min-width: 992px) {
  .lab-about-section {
    padding: 80px 20px;
  }
}

@media (max-width: 575px) {
  .lab-about-content ol > li {
    padding: 16px 16px 16px 60px;
  }
  .lab-about-content ol > li::before {
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .lab-about-content ol > li > p:first-child {
    font-size: 16px;
  }
}
/* ============================================================
   О ПОДРАЗДЕЛЕНИИ
   ============================================================ */

.lab-about-unit-section {
  padding: 60px 15px;
  background-color: #ffffff;
}

.lab-about-unit-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Сетка: слева фото, справа текст */
.lab-about-unit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

/* ===== ИЗОБРАЖЕНИЕ ===== */
.lab-about-unit-image {
  position: relative;
  border-radius: var(--lab-radius, 14px);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(8, 13, 107, 0.08);
  background: #f1f5f9;
}

/* Градиентная полоса снизу — как у карточек сотрудников */
.lab-about-unit-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--lab-color-primary, #080d6b),
    var(--lab-color-muted, #e13855)
  );
  pointer-events: none;
  z-index: 2;
}

/* Внутренняя тонкая рамка */
.lab-about-unit-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(8, 13, 107, 0.06);
  pointer-events: none;
  z-index: 1;
}

.lab-about-unit-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ===== ТЕКСТ ===== */
.lab-about-unit-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Заголовок секции по левому краю (не по центру) */
.section__top--left {
  text-align: left;
  margin: 0 0 8px 0;
}

.lab-about-unit-content .section__title {
  font-size: 28px;
  color: var(--lab-color-primary, #080d6b);
  margin: 0;
  font-weight: 700;
  position: relative;
  padding-bottom: 14px;
}

/* Декоративная полоска под заголовком */
.lab-about-unit-content .section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--lab-color-primary, #080d6b),
    var(--lab-color-muted, #e13855)
  );
}

/* ===== ТЕКСТ ПОД ЗАГОЛОВКОМ ===== */
.lab-about-unit-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--lab-text-dark, #1e293b);
}

.lab-about-unit-lead p {
  margin: 0 0 16px 0;
}

.lab-about-unit-lead p:last-child {
  margin-bottom: 0;
}

/* Акцент на ключевые фразы (по желанию — можно добавить <strong> в HTML) */
.lab-about-unit-lead strong {
  color: var(--lab-color-primary, #080d6b);
  font-weight: 600;
}

/* ===== АДАПТИВ ===== */
@media (min-width: 768px) {
  .lab-about-unit-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
  }
  .lab-about-unit-content .section__title {
    font-size: 32px;
  }
}

@media (min-width: 992px) {
  .lab-about-unit-section {
    padding: 80px 20px;
  }
  .lab-about-unit-grid {
    gap: 60px;
  }
  .lab-about-unit-content .section__title {
    font-size: 38px;
  }
}

@media (max-width: 575px) {
  .lab-about-unit-section {
    padding: 40px 15px;
  }
  .lab-about-unit-content .section__title {
    font-size: 24px;
  }
  .lab-about-unit-lead {
    font-size: 15px;
    line-height: 1.65;
  }
  .lab-about-unit-image img {
    aspect-ratio: 16 / 10;
  }
}
/* ============================================================
   БАЗЫ ДАННЫХ
   ============================================================ */

.lab-databases-section {
  padding: 60px 15px;
  background-color: #ffffff;
}

.lab-databases-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.lab-databases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ===== КАРТОЧКА БАЗЫ ===== */
.lab-database-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--lab-border, #e2e8f0);
  border-radius: var(--lab-radius, 14px);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(8, 13, 107, 0.03);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Градиентная полоса сверху */
.lab-database-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--lab-color-primary, #080d6b),
    var(--lab-color-muted, #e13855)
  );
  pointer-events: none;
  z-index: 2;
}

.lab-database-card:hover {
  border-color: var(--lab-color-accent, #ee1160);
  box-shadow: 0 8px 20px rgba(8, 13, 107, 0.08);
  transform: translateY(-3px);
}

/* ===== ПРЕВЬЮ ===== */
.lab-database-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #eef1fb, #f4f6fa);
  overflow: hidden;
}

.lab-database-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lab-database-card:hover .lab-database-card__image {
  transform: scale(1.05);
}

/* Заглушка, если нет картинки */
.lab-database-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lab-color-primary, #080d6b);
  opacity: 0.4;
}

.lab-database-card__placeholder svg {
  width: 64px;
  height: 64px;
}

/* ===== ТЕКСТ ===== */
.lab-database-card__info {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lab-database-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--lab-color-primary, #080d6b);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.lab-database-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--lab-text-gray, #64748b);
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.lab-database-card__arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--lab-color-accent, #ee1160);
  transition: transform 0.2s ease;
}

.lab-database-card:hover .lab-database-card__arrow {
  transform: translateX(3px);
}

/* ===== АДАПТИВ ===== */
@media (min-width: 576px) {
  .lab-databases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .lab-databases-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .lab-databases-section {
    padding: 80px 20px;
  }
}

@media (max-width: 575px) {
  .lab-databases-section {
    padding: 40px 15px;
  }
  .lab-database-card__image-wrapper {
    height: 170px;
  }
  .lab-database-card__info {
    padding: 16px 18px;
  }
  .lab-database-card__title {
    font-size: 16px;
  }
}
/* ============================================================
   АРХИВ И ДЕТАЛЬНАЯ БАЗ ДАННЫХ
   ============================================================ */

.lab-databases-archive,
.lab-database-single {
  padding: 60px 15px;
}

.lab-databases-archive {
  background: var(--lab-bg-light, #f4f6fa);
}
.lab-database-single {
  background: #ffffff;
}

.lab-databases-archive__inner,
.lab-database-single__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Вступительный текст из админки */
.lab-databases-intro {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--lab-text-dark, #1e293b);
  text-align: center;
}

.lab-databases-intro p {
  margin: 0 0 12px 0;
}
.lab-databases-intro p:last-child {
  margin-bottom: 0;
}

/* Пагинация */
.lab-databases-pagination {
  margin-top: 40px;
  text-align: center;
}

.lab-databases-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.lab-databases-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--lab-border, #e2e8f0);
  background: #fff;
  color: var(--lab-text-dark, #1e293b);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lab-databases-pagination .page-numbers:hover,
.lab-databases-pagination .page-numbers.current {
  background: var(--lab-color-primary, #080d6b);
  border-color: var(--lab-color-primary, #080d6b);
  color: #fff;
}

/* Детальная */
.lab-database-single__inner {
  max-width: 900px;
}

.lab-database-article__header {
  text-align: center;
  margin-bottom: 30px;
}

.lab-database-article__date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lab-color-muted, #e13855);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.lab-database-article__title {
  font-size: 32px;
  color: var(--lab-color-primary, #080d6b);
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.lab-database-article__image {
  border-radius: var(--lab-radius, 14px);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(8, 13, 107, 0.08);
}

.lab-database-article__image img {
  display: block;
  width: 100%;
  height: auto;
}

.lab-database-article__content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--lab-text-dark, #1e293b);
}

.lab-database-article__content p {
  margin: 0 0 16px 0;
}

/* Кнопка «Перейти к базе» */
.lab-database-article__cta {
  margin-top: 40px;
  text-align: center;
}

.lab-database-article__button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    var(--lab-color-primary, #080d6b),
    var(--lab-color-muted, #e13855)
  );
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(8, 13, 107, 0.15);
}

.lab-database-article__button:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  color: #fff;
}

/* Адаптив */
@media (min-width: 992px) {
  .lab-databases-archive,
  .lab-database-single {
    padding: 80px 20px;
  }
  .lab-database-article__title {
    font-size: 38px;
  }
}

@media (max-width: 575px) {
  .lab-databases-archive,
  .lab-database-single {
    padding: 40px 15px;
  }
  .lab-database-article__title {
    font-size: 24px;
  }
  .lab-database-article__button {
    padding: 12px 24px;
    font-size: 15px;
  }
}
/* ============================================================
   ИНСТРУМЕНТЫ: АРХИВ, ДЕТАЛЬНАЯ, КАРТОЧКИ
   ============================================================ */

.lab-tools-archive,
.lab-tool-single {
  padding: 60px 15px;
}

.lab-tools-archive {
  background: var(--lab-bg-light, #f4f6fa);
}
.lab-tool-single {
  background: #ffffff;
}

.lab-tools-archive__inner,
.lab-tool-single__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Вступительный текст */
.lab-tools-intro {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--lab-text-dark, #1e293b);
  text-align: center;
}
.lab-tools-intro p {
  margin: 0 0 12px 0;
}
.lab-tools-intro p:last-child {
  margin-bottom: 0;
}

/* Сетка карточек */
.lab-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ===== КАРТОЧКА ИНСТРУМЕНТА ===== */
.lab-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--lab-border, #e2e8f0);
  border-radius: var(--lab-radius, 14px);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(8, 13, 107, 0.03);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.lab-tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--lab-color-primary, #080d6b),
    var(--lab-color-muted, #e13855)
  );
  pointer-events: none;
  z-index: 2;
}

.lab-tool-card:hover {
  box-shadow: 0 8px 20px rgba(8, 13, 107, 0.08);
}

.lab-tool-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #eef1fb, #f4f6fa);
  overflow: hidden;
}

.lab-tool-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lab-tool-card:hover .lab-tool-card__image {
  transform: scale(1.05);
}

.lab-tool-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lab-color-primary, #080d6b);
  opacity: 0.4;
}

.lab-tool-card__placeholder svg {
  width: 64px;
  height: 64px;
}

.lab-tool-card__info {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lab-tool-card__date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--lab-color-muted, #e13855);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.lab-tool-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--lab-color-primary, #080d6b);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.lab-tool-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--lab-text-gray, #64748b);
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.lab-tool-card__arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--lab-color-accent, #ee1160);
  transition: transform 0.2s ease;
}

.lab-tool-card:hover .lab-tool-card__arrow {
  transform: translateX(3px);
}

/* Пагинация */
.lab-tools-pagination {
  margin-top: 40px;
  text-align: center;
}

.lab-tools-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.lab-tools-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--lab-border, #e2e8f0);
  background: #fff;
  color: var(--lab-text-dark, #1e293b);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lab-tools-pagination .page-numbers:hover,
.lab-tools-pagination .page-numbers.current {
  background: var(--lab-color-primary, #080d6b);
  border-color: var(--lab-color-primary, #080d6b);
  color: #fff;
}

/* Детальная */
.lab-tool-single__inner {
  max-width: 900px;
}

.lab-tool-article__header {
  text-align: center;
  margin-bottom: 30px;
}

.lab-tool-article__date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lab-color-muted, #e13855);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.lab-tool-article__title {
  font-size: 32px;
  color: var(--lab-color-primary, #080d6b);
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.lab-tool-article__image {
  border-radius: var(--lab-radius, 14px);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(8, 13, 107, 0.08);
}

.lab-tool-article__image img {
  display: block;
  width: 100%;
  height: auto;
}

.lab-tool-article__content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--lab-text-dark, #1e293b);
}

.lab-tool-article__content p {
  margin: 0 0 16px 0;
}

.lab-tool-article__cta {
  margin-top: 40px;
  text-align: center;
}

.lab-tool-article__button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    var(--lab-color-primary, #080d6b),
    var(--lab-color-muted, #e13855)
  );
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(8, 13, 107, 0.15);
}

.lab-tool-article__button:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  color: #fff;
}

/* Адаптив */
@media (min-width: 576px) {
  .lab-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .lab-tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .lab-tools-archive,
  .lab-tool-single {
    padding: 80px 20px;
  }
  .lab-tool-article__title {
    font-size: 38px;
  }
}

@media (max-width: 575px) {
  .lab-tools-archive,
  .lab-tool-single {
    padding: 40px 15px;
  }
  .lab-tool-card__image-wrapper {
    height: 170px;
  }
  .lab-tool-card__info {
    padding: 16px 18px;
  }
  .lab-tool-card__title {
    font-size: 16px;
  }
  .lab-tool-article__title {
    font-size: 24px;
  }
  .lab-tool-article__button {
    padding: 12px 24px;
    font-size: 15px;
  }
}
/* ============================================================
   ФОРМА ЗАПРОСА ДОСТУПА К БАЗЕ ДАННЫХ
   ============================================================ */

.lab-database-request {
  margin-top: 40px;
  padding: 28px;
  background: #f4f6fa;
  border: 1px solid var(--lab-border, #e2e8f0);
  border-radius: var(--lab-radius, 14px);
}

.lab-database-request__title {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--lab-color-primary, #080d6b);
}

.lab-database-request__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--lab-text-gray, #64748b);
  margin: 0 0 20px 0;
}

.lab-database-request__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lab-database-request__input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border: 1px solid var(--lab-border, #e2e8f0);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}

.lab-database-request__input:focus {
  outline: none;
  border-color: var(--lab-color-accent, #ee1160);
  box-shadow: 0 0 0 3px rgba(238, 17, 96, 0.12);
}

.lab-database-request__row .lab-database-article__button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* Сообщения об успехе / ошибке */
.lab-database-request-success,
.lab-database-request-error {
  max-width: 700px;
  margin: 0 auto 30px auto;
  padding: 24px;
  border-radius: var(--lab-radius, 14px);
  text-align: center;
}

.lab-database-request-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}

.lab-database-request-success h2 {
  margin: 0 0 10px 0;
  color: #2e7d32;
  font-size: 22px;
}

.lab-database-request-success p {
  margin: 0;
  color: #2e7d32;
  font-size: 15px;
  line-height: 1.6;
}

.lab-database-request-error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
}

.lab-database-request-error h2 {
  margin: 0 0 10px 0;
  color: #c62828;
  font-size: 22px;
}

.lab-database-request-error p {
  margin: 0;
  color: #c62828;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 575px) {
  .lab-database-request {
    padding: 20px;
  }
  .lab-database-request__row .lab-database-article__button {
    width: 100%;
  }
}
/* ============================================================
   AJAX-СООБЩЕНИЯ ФОРМЫ ЗАПРОСА
   ============================================================ */

.lab-database-request__message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.lab-database-request__message--success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}

.lab-database-request__message--error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #c62828;
}

/* Кнопка в состоянии «Отправка…» */
.lab-database-article__button.is-loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

.lab-database-article__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
/* ============================================================
   ССЫЛКИ НА ДОКУМЕНТЫ (Инструменты)
   ============================================================ */

.lab-tools-docs {
  margin: 24px 0 32px 0;
}

.lab-tools-docs__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--lab-color-primary, #080d6b);
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lab-tools-docs__title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    var(--lab-color-primary, #080d6b),
    var(--lab-color-muted, #e13855)
  );
}

.lab-tools-docs__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== КАРТОЧКА ДОКУМЕНТА ===== */
.lab-tools-doc {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--lab-border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(8, 13, 107, 0.03);
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Акцентная полоса слева */
.lab-tools-doc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--lab-color-primary, #080d6b),
    var(--lab-color-muted, #e13855)
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lab-tools-doc:hover {
  box-shadow: 0 6px 16px rgba(8, 13, 107, 0.08);
}

.lab-tools-doc:hover::before {
  opacity: 1;
}

/* ===== ИКОНКА ФАЙЛА ===== */
.lab-tools-doc__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eef1fb;
  color: var(--lab-color-primary, #080d6b);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lab-tools-doc__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.lab-tools-doc:hover .lab-tools-doc__icon {
  background: linear-gradient(
    135deg,
    var(--lab-color-primary, #080d6b),
    var(--lab-color-accent, #ee1160)
  );
  color: #fff;
}

/* ===== ТЕКСТ ===== */
.lab-tools-doc__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lab-tools-doc__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--lab-text-dark, #1e293b);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.lab-tools-doc:hover .lab-tools-doc__name {
  color: var(--lab-color-primary, #080d6b);
}

.lab-tools-doc__meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--lab-text-gray, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== СТРЕЛКА ===== */
.lab-tools-doc__arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--lab-color-accent, #ee1160);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.lab-tools-doc__arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lab-tools-doc:hover .lab-tools-doc__arrow {
  transform: translateX(4px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 575px) {
  .lab-tools-doc {
    padding: 12px 14px;
    gap: 12px;
  }
  .lab-tools-doc__icon {
    width: 38px;
    height: 38px;
  }
  .lab-tools-doc__icon svg {
    width: 18px;
    height: 18px;
  }
  .lab-tools-doc__name {
    font-size: 14px;
  }
  .lab-tools-doc__arrow {
    display: none; /* на мобилке убираем стрелку — экономим место */
  }
}
