/* =============================================================
   Блок «Сведения об организации (документы)»
   Страница Контакты — АНО МЦ «Новое Поколение»
   ============================================================= */

/* ===== Секция ===== */
.org-documents-section {
  padding-top: 60px;
}

.org-documents-section .section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.org-documents-section .section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 32px;
}

/* ===== Обёртка карусели ===== */
.org-docs-carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -12px;
  padding: 0 12px;
}

.org-docs-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
  padding: 16px 4px 24px;
  scroll-snap-type: x mandatory;
}

.org-docs-carousel-track::-webkit-scrollbar {
  display: none;                   /* Chrome/Safari */
}

/* ===== Один слайд (документ) ===== */
.org-doc-slide {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

.org-doc-slide a {
  text-decoration: none;
  display: block;
  color: inherit;
}

/* --- «Бумажная» карточка --- */
.org-doc-thumb {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  aspect-ratio: 210 / 297;        /* формат А4 */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

.org-doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* --- Оверлей при наведении --- */
.org-doc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,26,46,0) 0%,
    rgba(26,26,46,0.75) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 14px 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.org-doc-overlay i {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.org-doc-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

/* --- Hover-эффекты --- */
.org-doc-slide:hover .org-doc-thumb {
  transform: translateY(-6px);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.1),
    0 16px 40px rgba(0,0,0,0.1);
}

.org-doc-slide:hover .org-doc-thumb img {
  transform: scale(1.04);
}

.org-doc-slide:hover .org-doc-overlay {
  opacity: 1;
}

.org-doc-slide:hover .org-doc-overlay i {
  transform: scale(1);
}

/* --- Подпись под карточкой --- */
.org-doc-caption {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #1a1a2e;
  text-align: center;
  margin-top: 12px;
  line-height: 1.35;
  padding: 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Кнопки навигации (стиль как у партнёров) ===== */
.org-docs-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--purple, #cc0d53);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(204,13,83,0.3);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.org-docs-carousel-btn:hover {
  background: #a80a45;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(204,13,83,0.4);
}

.org-docs-carousel-btn.prev {
  left: 6px;
}

.org-docs-carousel-btn.next {
  right: 6px;
}

/* ===== Индикатор «можно скроллить» ===== */
.org-docs-scroll-hint {
  text-align: center;
  margin-top: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  color: #adb5bd;
  opacity: 1;
  transition: opacity 0.4s;
}

.org-docs-scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== Адаптив ===== */
@media (max-width: 767.98px) {
  .org-documents-section {
    padding: 40px 0 30px;
  }

  .org-documents-section .section-title {
    font-size: 1.5rem;
  }

  .org-doc-slide {
    flex: 0 0 220px;
  }

  .org-docs-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .org-docs-carousel-btn.prev {
    left: 0;
  }

  .org-docs-carousel-btn.next {
    right: 0;
  }
}

@media (max-width: 575.98px) {
  .org-doc-slide {
    flex: 0 0 200px;
  }
}
