/* Блок 1 - Таблица */
/* Общая обёртка таблицы */
.credits-table-wrapper {
	padding: 60px 20px;
	max-width: 1200px;
	margin: 0 auto;
	overflow-x: hidden;
	position: relative;
	display: block;
	background: linear-gradient(to bottom, #fff, #f8f9fa);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.3s ease;
}
.credits-table-wrapper:hover {
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Заголовок */
.credits-table-tittle {
	text-align: center;
	padding: 50px 0 10px;
	font-size: 38px;
	font-weight: 700;
	background: linear-gradient(90deg, #8c2c2c, #e63946);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	position: relative;
}



/* Таблица */
.credits-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e0e0e0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	background-color: #fff;
}

.credits-table thead th {
	background: #fafafa;
	color: #222;
	font-size: 1.05rem;
	font-weight: 600;
	padding: 18px 20px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.credits-table tbody td {
	padding: 20px;
	color: #333;
	font-size: 1rem;
	line-height: 1.6;
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
	vertical-align: top;
}

.credits-table small {
	display: block;
	color: #777;
	font-size: 0.9rem;
	margin-top: 5px;
	font-style: italic;
}

.credits-table tbody tr:hover td {
	background-color: #fef8f8;
}

.credits-table tbody tr:hover td:first-child {
	box-shadow: inset 4px 0 0 #c62828;
	background-color: #fceaea;
}

/* Мягкое скругление углов */
.credits-table thead th:first-child {
	border-top-left-radius: 16px;
}
.credits-table thead th:last-child {
	border-top-right-radius: 16px;
}
.credits-table tbody tr:last-child td:first-child {
	border-bottom-left-radius: 16px;
}
.credits-table tbody tr:last-child td:last-child {
	border-bottom-right-radius: 16px;
}

/* Адаптив */
@media (max-width: 768px) {
	.credits-table thead th,
	.credits-table tbody td {
		padding: 14px;
		font-size: 0.95rem;
	}
}

@media (max-width: 480px) {
	.credits-table thead th,
	.credits-table tbody td {
		padding: 12px;
		font-size: 0.9rem;
	}
	.credits-table small {
		font-size: 0.8rem;
	}
}


													/*	Блок 2 - кредитного калькулятора */
.credits-form-section {
  background: #f7f7f7;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #222;
}

.credits-form-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  background: #fff;
}

.credits-form-image {
  flex: 1 1 50%;
  overflow: hidden;
  position: relative;
}

.credits-form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 10s ease-in-out;
  animation: credits-form-zoomInOut 20s infinite alternate;
}

.credits-form-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
  pointer-events: none;
}

@keyframes credits-form-zoomInOut {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.credits-form-block {
  flex: 1 1 50%;
  padding: 40px;
}

.credits-form-tabs {
  display: flex;
  margin-bottom: 20px;
}

.credits-form-tab {
  background: none;
  border: none;
  font-weight: bold;
  color: #555;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.credits-form-tab.active {
  color: #d00;
  border-color: gold;
}

.credits-form-tab-content h2 {
  margin-bottom: 20px;
  color: #b00;
}

.credits-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.credits-form input,
.credits-form select,
.credits-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.credits-form button {
  background: crimson;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.credits-form button:hover {
  background: gold;
  color: #000;
}

.credits-form-note {
  font-size: 13px;
  color: #777;
}

.credits-form-note a {
  color: #c00;
  text-decoration: underline;
}

.credits-form-result {
  background: #fafafa;
  border-left: 4px solid gold;
  padding: 10px 15px;
  color: #222;
  font-size: 16px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .credits-form-wrapper {
    flex-direction: column;
  }

  .credits-form-block {
    padding: 30px 20px;
  }
}
@media (max-width: 768px) {
  .credits-form-image {
    display: none;
  }

  .credits-form-block {
    flex: 1 1 100%;
  }
}






													/*	Блок 3 - Текст */
.credit-info-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    display: block;
    background: linear-gradient(145deg, #f8f8f8, #ffffff);
    border-radius: 16px;
}

/* Обёртка с плавным появлением */
.credit-info-wrapper {
    animation: fadeInUp 1.2s ease-out both;
    position: relative;
}

/* Основной текст */
.credit-info-text {
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #111;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #8c2c2c; /* декоративная вертикальная линия */
    transition: all 0.3s ease;
}

/* Лёгкий интерактив */
.credit-info-text:hover {
    transform: translateY(-2px);
    color: #000;
}

/* Разделительная линия */
.credit-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #e50914, transparent);
    margin: 40px 0;
    animation: separatorFade 2s ease-out both;
    opacity: 0.7;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes separatorFade {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 0.7;
  }
}

/* Адаптивность */
@media (max-width: 768px) {
    .credit-info-text {
        font-size: 18px;
        padding-left: 16px;
        border-left: 3px solid #e50914;
    }
}














.credit-info-documents {
    text-align: center;
    padding: 60px 0 45px;

}

.credit-info-documents-button {
  background-color: #2A2A2A;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 90%;
  flex-wrap: wrap;
}

.credit-info-documents-button:hover {
  background-color: #444;
}

@media (max-width: 480px) {
  .credit-info-documents-button {
    font-size: 16px;
    padding: 10px 16px;
  }
}

