
/* тема */
.theme {
	background: #007bff;
	color: #fff;
}

.theme.back {
	background: #007bff;
}

.theme.sms {
	background: #007bff;
}

.theme.brokers {
	background: #007bff;
}

.card-info span {
    font-weight: bold;
    color: #c5573e;
}

button.primary {
	background: #00bc52;
	color: #fff;
}

button.secondary {
	background: gray;
	color: #fff;
}

@font-face {
  src: url(/font/Geometria-ExtraBold.woff2);
  font-family: Geometria-ExtraBold;
  font-style: normal;
}

@font-face {
  src: url(/font/Montserrat-SemiBold.woff2);
  font-family: Montserrat;
  font-style: normal;
}

body {
	background-color: #f3eeee;
	margin: 0;
	display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > .container {
	flex-grow: 1;
}

.container {	
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 1rem;
	padding-right: 1rem;	
}

header {
	padding: 7px;
	background-color: rgba(236, 240, 243, 0.96);
	color: #333;
	box-shadow: 0 0.5rem 0.5rem -0.5rem rgba(0,0,0,.2);
	position: sticky;
	top: 0;
	z-index: 10;
	margin-left: -1rem;
	margin-right: -1rem;
}

header > h1 {
	text-align: center;
	font-family: 'Geometria-ExtraBold', sans-serif;
	font-weight: 800;
	margin: 0;
}

header > h1 > div {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 10px 0 40px;
}

header > h1 > div > :nth-child(2) {
	flex-grow: 1;
}

header button {
	width: 55px;
	height: 45px;
	font-size: 1.5rem;
}

header > a {
	text-decoration: none;
}

header > a > div {
	text-align: center;	
	margin-left: 10px;
	margin-right: 10px;
	border-radius: 5px;
	height: 0;
	overflow: hidden;
	line-height: 40px;
	transition: 0.75s;
	font-size: 1.05rem;
	
}

header > a.open > div {
	height: 40px;
}

section {
	margin-top: 25px;
}

/* cards */
a.offer, .mfo-item > a {
	text-decoration: none;
}

.cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;	
}

.card-item {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 15px;
	color: #000;
	text-align: center;
    background-color: #fff;
    box-shadow: 3px 2px 10px 1px rgba(45,45,45,.2);
    padding: 5px;
    border-radius: 5px;
	overflow: hidden;
}

.card-item img {
	width: 100%;
}

.card-item .header {
	width: 100%;
    padding: 10px 0;
    font-size: 1.05rem;
    border-top: 2px solid #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
}

button {
	font-size: 1.1rem;
	width: 100%;
	white-space: pre;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
	border: none;
	border-radius: 5px;
	margin: auto;
	font-weight: bold;
	padding: 8px 0;
}

button:hover {
	opacity: .9;
	transition: .5s;
}

.card-info {  
	font-family: Montserrat, sans-serif;
	font-size: 0.8rem;
	flex-grow: 1;
}

.card-info.standart {
	display: flex;
	justify-content: space-between;
	padding: 0 5px;
}

.card-info .url {
	color: #0d6efd;
	font-weight: normal;
	text-decoration: underline;
}

.card-info .url:hover {
	text-decoration: underline;	
}

/* 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;
}

/* calc */
.calc {	
	display: flex;
	border-radius: 5px;
	background-color: #fff;
	box-shadow: 3px 2px 10px 1px rgba(45,45,45,.2);
	font-size: 1.05rem;
	gap: 0 20px;
}

.calc p {
	text-align: justify;
}

.calc > div {
	width: 50%;
	padding: 0 15px 10px;
	box-sizing: border-box;
}

.calc .label {
	text-align: center;
}

.calc .label > div {
	display: inline-block;
	padding: 5px 20px;
}

.calc .down-text {
	display: flex;
	justify-content: space-between;
}

.calc table {
	width: 100%;
	text-align: center;
	border-collapse: collapse;
}

.calc table td {
	border-bottom: 1px solid silver;
	white-space: pre;
	width: 20%;
	padding: 5px 0;
}

.calc table td:first-child {
	text-align: left;
}

.calc table td:last-child {
	text-align: right;
}

.calc input[type='range'] {
	-webkit-appearance: none;
	appearance: none;
    width: 100%;
    height: 10px;
	border-radius: 5px;
}

.calc input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
	appearance: none;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

.calc input[type='range']::-moz-range-thumb {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

/* footer */
.info > h3, .info > h2 {
	font-size: 1.1rem;
	padding: 10px 15px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
}

footer a {color: #1e1e1e}

#footer {
	background-color: #000;
}

#footer .container {
    padding: 25px;	
    color: #7b7b7b;
    
}
#footer .container a {
    color: #e5573c;
}

/* 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;
}

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;
}

/* adaptive */
@media screen and (max-width: 991px) {	
	.cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;		
	}
	
	.mfo {
		grid-template-columns: repeat(2, 1fr);		
	}
	
	.calc {
		flex-direction: column;
	}
	
	.calc > div {
		width: 100%;
	}
	
	dialog.message.toast {
		left: 0;
		margin: 0 auto;
	}
	
	header > h1 > div {
		font-size: 1.2rem;
		gap: 0;
	}
}

@media screen and (max-width: 767px) {
	.container {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
	
	header {
		margin-left: -0.5rem;
		margin-right: -0.5rem;
	}
	
	.cards {
		grid-template-columns: repeat(2, 1fr);		
		gap: 10px;
	}
	
	.mfo {
		grid-template-columns: repeat(1, 1fr);		
	}
	
	.card-info.standart {
		justify-content: center;
	}
	
	.card-info.standart > div:nth-child(1) {
		display: none;
	}
	
	.card-item button {
		font-size: 0.9rem;
	}
	
}