/* тема */
.theme {
	background-color: #77b41f;
	color: #fff;
}

.theme.back {
	background-color: #0d6efd;
}

.cards .card-item h1.theme {
	background-color: transparent;
	color: #77b41f !important;
}

.cards .card-item h1.theme.back {
	color: #0d6efd !important;
}

button.primary {
	background-color: #00bc52;
}

button.secondary {
	background-color: gray;
}

@font-face {
  src: url(https://banka.credit/font/Rubik.woff2);
  font-family: Rubik;
}

body {	
	max-width: 1100px;
	margin: 15px auto;
	padding-left: 1rem;
	padding-right: 1rem;
	font-family: Rubik;
	background-color: #e4e4e4;	
}

header, footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
}

header a {
	color: gray;
}

header img {
	height: 70px;
}

footer a {
	font-weight: normal;
}

h2 {
	text-align: center;
}

/* cards */
a.offer, .mfo-item > a {
	text-decoration: none;
}

.cards.top {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 60px;	
}

.cards {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 40px;
}

.cards:not(.top) > a:nth-child(-n+3) {
	display: none;
}

.card-item {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
	box-sizing: border-box;
	padding: 25px 10px;
	gap: 50px;
	text-align: center;
}

.card-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.cards.top .card-item {
	justify-content: space-between;
	height: 100%;
	flex-direction: column;
	gap: 20px;
	padding: 10px;
}

.cards .card-item img {
	width: 175px;
}

.cards.top .card-item img {
	width: 100% !important;
}

.cards .card-item h1 {
	font-size: 3rem;
	line-height: 3rem;
	margin: 0;
}

.cards .card-item h3 {
	color: #000;
	white-space: pre;
	margin: 0;	
	font-weight: 500;
}

.cards .card-item span {
	color: #6c757d;
	display: block;
	white-space: pre;
}

.cards:not(.top) .card-item span {
	padding: 10px 0 5px 0;
}


button {
	width: 100%;
	color: #fff;
	border-radius: 40px;
	padding: 15px 0;
	font-weight: bold;
	border: none;
	font-size: 1.1rem;
}

.cards .card-item button {
	max-width: 250px;
}

.card-item .url, .mfo-item .url {
	color: #0d6efd;
	font-weight: 400;
}

.card-item .url {
	font-size: 0.9rem;
}

/* mfo */
.mfo {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;	
}

.mfo-item {
	width: 100%;	
	overflow: hidden;
	border-radius: 5px;
	box-sizing: border-box;
	box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
	border: 7px solid #fff;	
}

.mfo-item table {
	height: 100%;
	width: 100%;
	border-collapse: collapse;	
	color: #000;
	background-color: #fff;	
}

.mfo-item table th {
	text-align: center;
	padding: 10px 0;
}

.mfo-item table td {
	padding: 5px;
}

.mfo-item table tbody tr:nth-child(odd) {
	background-color: #f2f2f2;
}

/* dialog */
dialog.message {
	text-align: center;
	font-size: 1.1rem;
	min-width: 300px;
	border: 1px solid silver;
	border-radius: 5px;
	box-shadow: 3px 2px 10px 1px rgba(45,45,45,.2);
	outline: none;
}

dialog.message form > div {
	display: flex;
	gap: 20px;
	justify-content: space-between;
	align-items: center;
}

dialog.message button {
	font-size: 1rem;
	outline: none;
	padding: 5px 0;
}

dialog.message.toast {
	font-size: 0.95rem;
	min-width: 200px;
	position: fixed;    
    margin: 0;
	top: 20px;
    left: 20px;
	z-index: 99;
}

dialog.message.toast form img {
	width: 35px;
	height: 35px;
}

dialog.message.toast button {
	font-size: 0.9rem;
	padding: 5px 0;
}

@media screen and (max-width: 991px) {
	
	body {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
	
	header img {
		height: 55px;
	}
	
	.cards.top, header + h2 {
		display: none;
	}
	
	.cards:not(.top) > a:nth-child(-n+3) {
		display: block;
	}
	
	.cards {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px;
	}
	
	.cards > a {
		width: 48.5%;	
	}
	
	.card-item {
		flex-direction: column;
		justify-content: space-betwwen;			
		padding: 10px;
		gap: 10px;
	}
	
	.cards .card-item button {
		font-size: 1rem;
		padding: 10px 0;
	}
	
	.mfo {
		grid-template-columns: repeat(2, 1fr);		
	}
	
	dialog.message.toast {
		left: 0;
		margin: 0 auto;
	}
	
}

@media screen and (max-width: 767px) {
	
	.mfo {
		grid-template-columns: repeat(1, 1fr);		
	}
	
	.card-item .summa-time {font-size: 0.85rem}
}

