
/* тема */
.theme {
	background: #007bff;
	color: #fff;
}

.theme.back {
	background: #007bff;
}

.theme.sms {
	background: #007bff;
}

.theme.brokers {
	background: #007bff;
}

.card-info span {
    font-weight: bold;
    color: #007bff;
}

button.primary {
	background: #00bc52;
	color: #fff;
}

button.secondary {
	background: gray;
	color: #fff;
}

@font-face {
  src: url(/font/Geometria-Regular.woff2);
  font-family: Geometria;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  src: url(/font/Geometria-Medium.woff2);
  font-family: Geometria;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  src: url(/font/Geometria-Heavy.woff2);
  font-family: Geometria;
  font-style: normal;
  font-weight: 900;
}

@font-face {
  src: url(/font/Montserrat-SemiBold.woff2);
  font-family: Montserrat;
  font-style: normal;
}

@font-face {
  src: url(/font/Liana.woff2);
  font-family: Liana;
  font-style: normal;
}

body {
	background-color: #f3eeee;
	margin: 0;
	display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > .container {
	flex-grow: 1;
}

h1 {
	font-family: Geometria;
	font-weight: 900;
	text-align: center;
}

.container, header > .menu {	
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 1rem;
	padding-right: 1rem;	
}

header {	
	padding: 15px 10px;
	background-color: #fff;
	box-shadow: 2px 0 10px #cecece;
	font-family: Geometria;
	font-weight: 700;
	position: sticky;
	top: 0;
	z-index: 10;
}

header > .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

header > .menu {
	height: 0;
	box-sizing: border-box;
	overflow: hidden;
	transition: 0.75s;
	line-height: 2;
}

header > .menu.open {
	height: 100px;
	padding-top: 10px;
}

header > .menu a {
	display: block;
}

header a {
	text-decoration: none;
	color: #595959;
	flex-grow: 1;
}

header button {
	display: none;
	width: 55px;
	height: 45px;
	font-size: 1.5rem;
}

header a:hover {
	color: #000;
}

header > .container > a:first-child > div:first-child {
	color: #007bff;
    letter-spacing: 2px;
    font-size: 1.6rem;
	text-transform: uppercase;
}

header > .container > a:first-child > div:last-child {
    font-size: 0.7rem;
	font-weight: 500;
}

section, h1 {
	margin-top: 25px;
	scroll-margin-top: 110px;
}

/* 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;
}

/* conditions */
.conditions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-family: Geometria;
	font-size: 0.9rem;
}

.conditions > div {
	width: 48.5%;
}

details::details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

details[open]::details-content {
    max-height: 500px;
}

.conditions details {
	background-color: #fff;
	border-radius: 3px;
	border: 1px solid silver;
	margin-bottom: 15px;
}

.conditions details > p {
	text-align: justify;
	padding: 10px 15px;
}

.conditions details > ul {
	padding: 10px 30px;
}

.conditions summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.1rem;
	font-weight: bold;
	color: #595959;
	cursor: pointer;
	user-select: none;
	list-style: none;
	padding: 10px;
}

summary::after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236c757d' d='M8 11L3 6l1.5-1.5L8 8.5l3.5-4L13 6z'/%3E%3C/svg%3E");
  transition: transform 0.3s ease;
  display: inline-block;
  transform-origin: center center;
  line-height: 1;
}

details[open] summary {
	border-bottom: 1px solid silver;
}

details[open] summary::after {
  transform: rotate(180deg);
}

.conditions > div:nth-child(2) {
	font-weight: bold;
}

.conditions h2 {
	margin-top: 0;
}

.conditions .sig {
	font-family: Liana;
	transform: rotate(-10deg);
	text-align: right;
	font-size: 1.6rem;
	font-weight: normal;
}

#policy, #terms {
	display: none;
}

/* footer */
footer {
	font-family: Geometria;
    padding: 25px 0;   
    background: #232323;
	font-size: 0.85rem;
	font-weight: 700;
}

footer .container > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #fff;
	gap: 20px 0;
}

footer .container > div :first-child {
	text-align: justify;
	width: 60%;
}

footer .container > div :last-child {
	flex-grow: 1;
	text-align: center;
}

footer hr {
	height: 1px;
    background-color: gray;
    border: none;
}

footer a {
    color: #24a558;
	text-decoration: none;
	white-space: pre;
}

/* 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) {	

	section, h1 {
		scroll-margin-top: 190px;
	}

	header > div.container a:nth-child(n+2) {
		display: none;
	}
	
	header button {
		display: block;
	}

	.cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;		
	}
	
	.mfo {
		grid-template-columns: repeat(2, 1fr);		
	}
	
	.conditions > div {
		width: 100%;
	}
	
	footer .container > div {
		flex-direction: column;
	}
	
	footer .container > div :first-child {
		width: inherit;
	}
	
	dialog.message.toast {
		left: 0;
		margin: 0 auto;
	}
}

@media screen and (max-width: 767px) {
	.container, header > .menu {
		padding-left: 0.5rem;
		padding-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;
	}	
}