/* Основной стиль секции */
.deposits-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  background-color: #fff;
  color: #212529;
	position: relative;
	display: block;
	box-sizing: border-box;
	overflow: hidden;
}

/* Заголовок */
.deposits-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Ссылки */
.deposits-section a {
  color: #dc3545;
  text-decoration: none;
  font-weight: 600;
}

.deposits-section a:hover {
  text-decoration: underline;
}



/* Стиль таблицы */
.deposit-table-container {
  padding: 2rem 1rem;
  font-family: "Segoe UI", sans-serif;
  max-width: 1200px;
  margin: auto;
  color: #222;
}

.deposit-table-title {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.deposit-table-subtitle {
  font-size: 1rem;
  font-weight: normal;
  color: #666;
}

.deposit-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.deposit-table-wrapper.show {
  opacity: 1;
  transform: translateY(0);
}

.deposit-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: #fff;
  border: 1px solid #ddd;
}

.deposit-table th,
.deposit-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #eee;
  font-size: 0.92rem;
}

/* Заголовки */
.deposit-table th {
  background-color: #BA1515;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Чётные строки — фон */
.deposit-table tbody tr:nth-child(even) td {
  background-color: #f9f5f5;
}

/* Логическая группировка */
.deposit-table tbody tr:nth-child(1) td {
  background-color: #eadada;
  font-weight: 600;
  font-size: 0.95rem;
  color: #3a1f1f;
}

.deposit-table tbody tr:nth-child(2) td,
.deposit-table tbody tr:nth-child(3) td {
  background-color: #fdfcfc;
}

.deposit-table tbody tr:nth-child(4) td {
  background-color: #f3e3e3;
  font-weight: 600;
  color: #4a2a2a;
}

/* Выплата процентов — выделение */
.deposit-table tbody tr:nth-child(5) td {
  background-color: #f7ecec;
  font-style: italic;
}

/* Условия досрочного расторжения */
.deposit-table-note {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
  background-color: #fdf2f2;
  color: #4b2a2a;
}

/* Последние строки — нейтральные, но заметные */
.deposit-table tbody tr:nth-child(7) td,
.deposit-table tbody tr:nth-child(8) td,
.deposit-table tbody tr:nth-child(9) td {
  background-color: #f7f7f7;
  color: #555;
}

/* Примечание внизу */
.deposit-table-footnote {
  font-size: 0.85rem;
  color: #555;
  margin-top: 1rem;
  line-height: 1.4;
}

/* Кнопка */
.deposit-table-download {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: #6e1d1d;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.3s ease;
  font-weight: 600;
}

.deposit-table-download:hover {
  background-color: #8a2c2c;
}

/* Адаптив */
@media (max-width: 768px) {
  .deposit-table-title {
    font-size: 1.3rem;
  }

  .deposit-table-subtitle {
    font-size: 0.95rem;
  }

  .deposit-table th,
  .deposit-table td {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .deposit-table-download {
    width: 100%;
    text-align: center;
  }
}
/*				Контакты				*/
.deposit-table-contact {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #faf6f6, #f1e6e6);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 0 10px rgba(150, 0, 0, 0.05);
  border: 1px solid #e4cfcf;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deposit-table-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(150, 0, 0, 0.1);
}

.deposit-table-contact-icon {
  font-size: 2rem;
  color: #7d1d1d;
  flex-shrink: 0;
}

.deposit-table-contact-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3d1b1b;
  margin-bottom: 0.4rem;
}

.deposit-table-contact-text {
  font-size: 0.95rem;
  color: #5e2c2c;
  line-height: 1.5;
}

.deposit-table-contact strong {
  color: #7d1d1d;
  font-weight: 600;
}






















/* Контейнер для изображения */
.deposit-image-container {
  margin-top: 10px;
	padding-bottom: 60px;
  position: relative;
  display: flex;
  justify-content: center;
}

.deposit-image-item {
  max-width: 600px;
width: 250px;
  text-align: center;
}

.deposit-image {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.deposit-image:hover {
  transform: scale(1.05);
}

.deposit-image-caption {
  margin-top: 12px;
  font-size: 1rem;
  color: #666;
  font-style: italic;
}
/* Модальное окно */
.deposit-image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.deposit-image-modal-content {
  position: relative;
  max-height: 90vh;
  max-width: 90vw;
  animation: fadeIn 0.25s ease-out;
}

.deposit-image-modal-content img {
  width: auto;
  max-height: 90vh;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
}

.deposit-image-close-btn {
  position: absolute;
  top: -18px;
  right: -18px;
  background-color: #eee;
  color: #111;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.deposit-image-close-btn:hover {
  background-color: #C3C3C3;
  color: #000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ссылка форма ген соглашения*/
.deposits-pdf-textlink {
  display: inline-block;
  color: #b71c1c;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: underline;
  transition: color 0.2s ease-in-out;
  line-height: 1.5;
}

.deposits-pdf-textlink:hover {
  color: #880e0e;
  text-decoration: none;
}

.deposits-pdf-icon {
  display: inline-block; /* Чтобы text-decoration применялся отдельно */
  font-size: 1.1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  text-decoration: none; /* Убираем подчёркивание */
}

.deposits-link-subtext {
  font-size: 0.85rem;
  color: #777;
  display: block;
  margin-left: 1.7rem;
  margin-top: 0.3rem;
}


