/* ----- Hero секция ----- */
.hero-section {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	margin-bottom: 20px;
}

.hero-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 50px;
}

.hero-left {
	flex: 1;
}

.hero-right {
	flex: 1;
	display: flex;
	justify-content: center;
}

.hero-image img {
	max-width: 70%;
	height: auto;
	border-radius: 24px;
}

@media (max-width: 992px) {
	.hero-content {
		flex-direction: column;
	}
	.hero-title {
		font-size: 32px;
	}
	.hero-section {
		padding: 30px 20px;
	}
}

/* ----- Банки-партнеры ----- */
.partners-section {
	background: #fff;
	border-radius: 24px;
}


.partners-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.partner-logo {
	background: #f8f9fa;
	border-radius: 16px;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
	gap: 10px;
}

.partner-logo img {
	max-width: 20px;
	height: auto;
	object-fit: contain;
}


@media (max-width: 768px) {
	.partners-section {
		padding: 30px 20px;
	}
	.partner-logo {
		padding: 12px 16px;
		min-width: 100px;
	}
}

/* ----- Преимущества (Выгода, Удобство, Надежность) ----- */
.advantages-section {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	margin-bottom: 20px;
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.advantage-card {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 24px 20px 20px;
}

.advantage-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
}

.advantage-list {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: left;
}

.advantage-list li {
	margin-bottom: 14px;
	padding-left: 28px;
	position: relative;
	font-size: 15px;
	color: #3a4a5c;
	line-height: 1.4;
}

.advantage-list li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #2e7d32;
	font-weight: bold;
	font-size: 16px;
}


@media (max-width: 992px) {
	.advantages-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.advantages-section {
		padding: 30px 20px;
	}
	.advantages-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.advantage-card {
		padding: 24px 20px;
	}
}

/* ----- Шаги (Как получить автокредит) ----- */
.credit-steps.steps-section {
	background: #fff;
	border-radius: 32px;
	padding: 20px;
	margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
	.credit-steps.steps-section {
		background: #0f172a;
	}
}

.steps-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* Ниже — селекторы намеренно скопированы с префиксом .credit-steps, а не
   голые .step-card/.step-title/.step-desc: тот же класс переиспользуется
   на trade-in.html с другими (светлыми) значениями, и без скоупинга эти
   правила — особенно тёмная тема — перетирали карточки на trade-in.html,
   потому что _credit.css грузится в общем каскаде после _trade-in.css. */
.credit-steps .step-card {
	border-radius: 18px;
	padding: 20px;
	transition: all 0.3s;
}

.credit-steps .step-number {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #0855E5 0%, #0A4DCC 100%);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.credit-steps .step-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #1a2c3e;
}

.credit-steps .step-desc {
	font-size: 13px;
	color: #65717f;
	line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
	.credit-steps .step-card {
		background: #1e2937;
	}
	.credit-steps .step-title {
		color: #f1f5f9;
	}
	.credit-steps .step-desc {
		color: #94a3b8;
	}
}

@media (max-width: 992px) {
	.steps-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.steps-section {
		padding: 30px 20px;
	}
	.steps-container {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* ----- Вкладки (Условия кредитования и требования) ----- */
.advantages-tabs-section {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
	.advantages-tabs-section {
		background: #0f172a;
	}
}

.tabs-container {
	width: 100%;
}

.tabs-header {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.tab-btn {
	background: none;
	border: none;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 500;
	color: #65717f;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s;
}

.tab-btn:hover {
	background: #f0f2f5;
	color: #1a2c3e;
}

.tab-btn.active {
	background: linear-gradient(135deg, #0855E5 0%, #0A4DCC 100%);
	color: white;
}

.tab-pane {
	display: none;
	animation: fadeIn 0.3s ease;
}

.tab-pane.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.advantages-list {
	margin-bottom: 30px;
}

.advantage-info h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #1a2c3e;
}

.advantage-info p {
	font-size: 14px;
	color: #65717f;
	line-height: 1.5;
	margin: 0;
}

.conditions_notification {
	max-width: 70%;
	padding: 15px ;
	background-color: #f2f4f5;
	border-radius: 18px;
}

.conditions-notification__wrap h3{
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
}

.conditions-notification__wrap  p {
	font-size: 14px;
	color: #65717f;
	line-height: 1.5;
	margin: 0;
}


@media (prefers-color-scheme: dark) {
	.tab-btn {
		color: #94a3b8;
	}
	.tab-btn:hover {
		background: #334155;
		color: #f1f5f9;
	}
	.advantage-item {
		background: #1e2937;
	}
	.advantage-item:hover {
		background: #334155;
	}
	.advantage-info h3 {
		color: #f1f5f9;
	}
	.advantage-info p {
		color: #94a3b8;
	}
}

@media (max-width: 768px) {
	.advantages-tabs-section {
		padding: 30px 20px;
	}
	.tab-btn {
		padding: 8px 16px;
		font-size: 14px;
	}
	.tabs-header {
		gap: 6px;
	}
}

/* ----- Специальные предложения ----- */
.special-offers-section {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
	.special-offers-section {
		background: #0f172a;
	}
}

.offers-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.offer-card {
	background: #f8f9fa;
	border-radius: 18px;
	padding: 15px;
	transition: all 0.3s;
	border: 1px solid #eef2f6;
}

.offer-card h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 16px;
}

.offer-card p {
	font-size: 14px;
	color: #65717f;
	line-height: 1.6;
	margin: 0;
}

@media (prefers-color-scheme: dark) {
	.offer-card {
		background: #1e2937;
		border-color: #334155;
	}
	.offer-card h3 {
		color: #f1f5f9;
	}
	.offer-card p {
		color: #94a3b8;
	}
}

@media (max-width: 768px) {
	.special-offers-section {
		padding: 30px 20px;
	}
	.offers-grid {
		grid-template-columns: 1fr;
	}
	.offer-card {
		padding: 20px;
	}
}

.section__subtitle {
	font-size: 16px;
	color: #65717f;
	line-height: 1.5;
	margin-bottom: 24px;
}

.button__wrap {
	margin-top: 20px;
}

/* ----- Модальное окно ----- */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal__content {
	background: white;
	border-radius: 28px;
	max-width: 500px;
	width: 90%;
	padding: 36px;
	position: relative;
	box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal__close {
	position: absolute;
	top: 20px;
	right: 24px;
	font-size: 28px;
	cursor: pointer;
	background: none;
	border: none;
	color: #65717f;
	transition: color 0.2s;
}

.modal__close:hover {
	color: #b22234;
}

.modal__title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 24px;
	color: #1a2c3e;
	text-align: center;
}

.credit-application-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.credit-application-form input,
.credit-application-form select,
.credit-application-form textarea {
	padding: 14px 18px;
	border: 1px solid #dfe3e5;
	border-radius: 14px;
	font-size: 16px;
	font-family: inherit;
	transition: border-color 0.3s;
	background: #fff;
}

.credit-application-form input:focus,
.credit-application-form select:focus,
.credit-application-form textarea:focus {
	outline: none;
	border-color: #b22234;
}

.credit-application-form textarea {
	min-height: 100px;
	resize: vertical;
}

@media (prefers-color-scheme: dark) {
	.modal__content {
		background: #1e2937;
	}
	.modal__title {
		color: #f1f5f9;
	}
	.modal__close {
		color: #94a3b8;
	}
	.credit-application-form input,
	.credit-application-form select,
	.credit-application-form textarea {
		background: #0f172a;
		border-color: #334155;
		color: #f1f5f9;
	}
	.credit-application-form input::placeholder,
	.credit-application-form select,
	.credit-application-form textarea::placeholder {
		color: #64748b;
	}
}

/* ----- Общие вспомогательные стили ----- */

@media (max-width: 480px) {
	.hero-title {
		font-size: 28px;
	}
	.hero-image {
		position: relative;
		transform: translate(0);
		top: 0;
		right: 0;
	}
	.conditions_notification {
		max-width: 100%;
	}
	.hero-image img{
		max-width: 100%;
	}
	.credit-steps .step-card {
		padding: 15px;
		flex-direction: column;
		gap: 0;
	}
	.modal__content {
		padding: 28px 20px;
	}
}