/*
Theme Name: Как конверт?
Author: aka_Koren
Author URI: https://vk.com/aka_koren
Description: Как конверт?
Tags: aka_koren
Text Domain: Как конверт?
*/
@font-face {font-family: Unbounded;src: url(fonts/Unbounded-Regular.woff) format('woff');font-weight: 400;font-style: normal;}
@font-face {font-family: Unbounded;src: url(fonts/Unbounded-Medium.woff) format('woff');font-weight: 500;font-style: normal;}
@font-face {font-family: Unbounded;src: url(fonts/Unbounded-Black.woff) format('woff');font-weight: 900;font-style: normal;}
button:hover, input[type="submit"]:hover { cursor: pointer; }
input, button, select, textarea, a {
	transition: 250ms;
	text-decoration: none !important;
	font-family: Unbounded;
}
p { margin: 0 0 10px 0; }
.tac { text-align: center; }
.tal { text-align: left; }
.tar { text-align: right; }
.ttu { text-transform: uppercase; }
.m0 { margin: 0; }
.p0 { padding: 0; }
.posr { position: relative; }
.mb0 { margin-bottom: 0 !important; }
.db { display: block; }
.dib { display: inline-block; }
img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	vertical-align: middle;
}
body, main {
	font-family: Unbounded;
	font-weight: 400;
	font-size: 16px;
	color: var(--black);
}
body {
	background-repeat: no-repeat;
	background-position: center top;
	background-image: url(img/pagebg.png);
}
*, *:hover, *:focus, *:active { outline: none !important; }
:root {
	--black: #191D1D;
	--gray: #F5F5F5;
	--red: #FF383C;
	--green: #34C759;
	--inapp: #A91F25;
	--facebook: #0866FF;
	--google: #FBBC05;
}
.row {
	display: flex;
	flex-flow: row wrap;
}

section#first {
	background-repeat: no-repeat;
	background-position: center top;
	background-size: contain;
	background-image: url(img/first.png);
	height: 100vh;
}

#first .container, #first .wrap { height: 100%; }

#first .wrap {
	display: flex;
	flex-flow: column wrap;
	justify-content: flex-end;
	padding-bottom: 70px;
	gap: 24px;
}

#first h1 {
	font-weight: 900;
	max-width: 1150px;
	font-size: 148px;
	margin: 0;
	text-transform: uppercase;
}

#first .text {
	max-width: 980px;
	font-size: 24px;
	font-weight: 500;
	text-transform: uppercase;
}

#first .text p { margin-bottom: 0; }

section#analysis { height: 100vh; }

#analysis .container, #analysis .wrap { height: 100%; }

#analysis .wrap {
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	align-items: center;
	text-align: center;
}

#analysis h2 {
	margin: 0;
	opacity: 0.25;
	text-transform: uppercase;
	font-size: 96px;
	font-weight: 900;
}

#analysis video {
	width: 100%;
	max-width: 722px;
	max-height: 626px;
	-webkit-mask-image: 
	linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
	linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: 
	linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
	linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
	mask-composite: intersect;
}

#analysis .buttons {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 128px;
	margin-top: -24px;
	position: relative;
	z-index: 2;
}

#analysis .buttons .btnwrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 388px;
	height: 128px;
}

#analysis .buttons button {
	width: 388px;
	height: 128px;
	color: white;
	border-radius: 18px;
	background-color: rgba(52,199,89,0.25);
	border: none;
	font-weight: 500;
	font-size: 32px;
	position: relative;
}

#analysis .buttons button:before {
	position: absolute;
	content: '';
	width: calc(100% - 24px);
	height: calc(100% - 24px);
	top: 12px;
	left: 12px;
	background-color: var(--green);
	z-index: -1;
	border-radius: 16px;
}

#analysis .buttons button#konvno { background-color: rgba(255,56,60,0.25); }

#analysis .buttons button#konvno:before { background-color: var(--red); }

#analysis .buttons button:hover {
	font-size: 24px;
	width: 240px;
	height: 92px;
}

#analysis .buttons button:hover:before {
	width: calc(100% - 16px);
	height: calc(100% - 16px);
	top: 8px;
	left: 8px;
}

section#stats {
	height: 100vh;
}

#stats .container, #stats .wrap { height: 100%; }

#stats .wrap { padding: 60px 0 0 0; }

#stats .heading {
	margin-bottom: 60px;
	align-items: center;
}

#stats h3 {
	margin: 0;
	font-size: 48px;
	font-weight: 900;
	text-transform: uppercase;
}

#stats .tabselect {
	background-color: var(--gray);
	border-radius: 16px;
	padding: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 40px;
}

#stats .tabselect span {
	cursor: pointer;
	height: 56px;
	padding: 4px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 16px;
	font-size: 20px;
	font-weight: 500;
	transition: 250ms;
}

#stats .tabselect span:hover { background-color: rgba(255,255,255,0.6); }

#stats .tabselect span.active { background-color: white; }

#stats .filters {
	display: flex;
	justify-content: flex-end;
	flex-flow: row wrap;
	gap: 18px;
}

#stats .filters .sources {
	background-color: var(--gray);
	border-radius: 16px;
	padding: 2px 24px;
	display: inline-flex;
	gap: 16px;
	align-items: center;
	justify-content: center;
	height: 56px;
}

#stats .filters .sources p {
	margin: 0;
	font-weight: 500;
	font-size: 20px;
	margin-right: -6px;
}

#stats .filters .sources label input { display: none; }


#stats .filters .sources label span {
	position: relative;
	padding-left: 32px;
	font-weight: 500;
	font-size: 20px;
	cursor: pointer;
	transition: 250ms;
	min-height: 24px;
	display: flex;
	align-items: center;
}

#stats .filters .sources label span:before {
	position: absolute;
	content: '';
	width: 22px;
	height: 22px;
	left: 0;
	top: 0;
	bottom: 0;
	margin: auto;
	border-radius: 6px;
	border: 1px solid rgba(25,29,29,0.5);
	transition: 250ms;
	display: flex;
	align-items: center;
	justify-content: center;
}

#stats .filters .sources label span:hover:before { border-color: rgba(25,29,29,0.9); }

#stats .filters .sources label input:checked + span:before {
	background-color: var(--green);
	border-color: var(--green);
	content: url(img/check.svg);
}

#stats .period {
	position: relative;
	border-radius: 16px;
	background-color: var(--gray);
	height: 56px;
	padding: 2px 48px 2px 24px;
	background-repeat: no-repeat;
	background-image: url(img/expand.svg);
	background-position: calc(100% - 24px) center;
	font-size: 20px;
	font-weight: 500;
	width: 210px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

#stats .period span.value {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 16px;
	padding: 2px 18px;
	gap: 2px;
}

#stats .period .options {
	position: absolute;
	right: 0;
	top: 60px;
	background-color: var(--gray);
	width: 100%;
	border-radius: 12px;
	display: none;
	flex-flow: column wrap;
	text-align: center;
	z-index: 8;
}

#stats .period .options.active { display: flex; }

#stats .period .options span {
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 250ms;
	border-radius: 12px;
	gap: 10px;
}

#stats .period .options span:hover { background-color: rgba(255,255,255,0.6); }

#stats .period .options span.active { background-color: white; }

#stats .period .dateselect {
	position: absolute;
	right: 0;
	top: 60px;
	width: 340px;
	height: 270px;
	display: none;
	z-index: 9;
}

#stats .period .dateselect.active { display: block; }

#stats .tabs .tab { display: none; }

#stats .tabs .tab.active { display: block; }

#stats .graphwrap {
	display: flex;
	justify-content: space-between;
	flex-flow: row wrap;
	margin-bottom: 32px;
}

#stats .graphwrap ul {
	width: 190px;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-flow: column wrap;
	gap: 16px;
}

#stats .graphwrap ul li {
	position: relative;
	padding-left: 28px;
	min-height: 20px;
	display: flex;
	align-items: center;
}

#stats .graphwrap ul li:before {
	position: absolute;
	content: '';
	width: 20px;
	height: 20px;
	border-radius: 100%;
	background-color: var(--color);
	display: block;
	left: 0;
	top: 0;
	bottom: 0;
	margin: auto;
}

#stats #graph {
	width: calc(100% - 220px);
	max-width: 1400px;
}

body #stats #graph canvas#fbm-chart {
	width: 100% !important;
	height: auto !important;
}

#stats h4 {
	margin: 0 0 18px 0;
	font-size: 24px;
	font-weight: 900;
	text-transform: uppercase;	
}

#stats .block {
	height: 160px;
	margin-bottom: 40px;	
	border-radius: 24px;
	padding: 24px;
	display: flex;
	flex-flow: column wrap;
	justify-content: space-between;
	align-items: center;
	background-color: white;
	border: 1px solid rgba(25,29,29,0.25);
}

#stats .block[data-block="inapp"] {
	background-color: var(--inapp);
	border-color: var(--inapp);
}

#stats .block[data-block="facebook"] {
	background-color: var(--facebook);
	border-color: var(--facebook);
}

#stats .block[data-block="google"] {
	background-color: var(--google);
	border-color: var(--google);
}

#stats .block .line {
	width: 100%;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items: flex-start;
}

#stats .block .line:last-child { align-items: flex-end; }

#stats .block p {
	margin: 0;
	color: rgba(255,255,255,0.75);
}

#stats .block p.date { max-width: 130px; }

#stats .block p.number {
	color: white;
	font-size: 32px;
}

#stats .block[data-block="total"] p { color: rgba(25,29,29,0.25); }

#stats .block[data-block="total"] p.number { color: var(--black); }

#popup {
	z-index: -999;
	position: fixed;
	opacity: 0;
	bottom: 40px;
	right: 60px;
	background-color: white;
	border-radius: 100px;
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 16px;
	border: 2px solid rgba(52,199,89,0.25);
	height: 84px;
	width: 300px;
	transition: 300ms;
}

#popup span {
	letter-spacing: 0.4px;
	color: var(--green);
	font-weight: 500;
	font-size: 20px;
}

#popup.active {
	opacity: 1;
	z-index: 999;
}

@media(min-width: 1840px) {
	.container { width: 1840px; }
	#stats .period span.value {
		font-size: 18px;
		padding: 2px 24px;
	}
}

@media(min-width: 1500px) and (max-width: 1839px) {
	.container { width: 1500px; }
	#analysis h2 { font-size: 84px; }
	#stats h3 { font-size: 42px; }
	#stats .filters { gap: 8px; }
	#stats .filters .sources { padding: 2px 16px; }
	#stats .period {
		width: 180px;
		padding: 2px 36px 2px 16px;
		background-position: calc(100% - 12px) center;
	}
	#stats .filters .sources p, #stats .filters .sources label span, #stats .period { font-size: 16px; }
	#stats .block { padding: 24px 18px; }
	#stats .block p.number { font-size: 24px; }
}

@media(min-width: 1200px) and (max-width: 1499px) {
	#stats .period span.value { font-size: 14px; }
	#analysis h2 { font-size: 66px; }
	#stats h3 { font-size: 32px; }
	#stats .tabselect { margin-left: 12px; }
	#stats .tabselect span {
		padding: 4px 18px;
		height: 48px;
		font-size: 16px;
	}
	#stats .filters { gap: 8px; }
	#stats .filters .sources {
		height: 46px;
		padding: 2px 16px;
	}
	#stats .filters .sources p { display: none; }
	#stats .period {
		height: 46px;
		width: 160px;
		padding: 2px 32px 2px 16px;
		background-position: calc(100% - 10px) center;
		background-size: auto 8px;
	}
	#stats .period .options { top: 50px; }
	#stats .filters .sources p, #stats .filters .sources label span, #stats .period { font-size: 14px; }
	#stats .block {
		height: 140px;
		padding: 24px 12px;
	}
	#stats .block p { font-size: 12px; }
	#stats .block p.date { max-width: 96px; }
	#stats .block p.number { font-size: 16px; }
	#first h1 { font-size: 140px; }
}

@media(min-width: 992px) {
	#stats .statblock:last-child .block { margin-bottom: 0; }
}

@media(min-width: 992px) and (max-width: 1199px) {
	#stats .period span.value { padding: 2px 36px 2px 20px; }
	#first h1 { font-size: 120px; }
	#analysis h2 { font-size: 52px; }
	#stats .heading { gap: 20px 0; }
	#stats .tabselect {
		margin: 0;
		display: flex;
	}
	#stats .filters { justify-content: space-between; }
	#stats .graphwrap ul li {
		padding-left: 20px;
		font-size: 14px;
		min-height: 16px;
	}
	#stats .graphwrap ul li:before {
		width: 16px;
		height: 16px;
	}
	#stats .block {
		border-radius: 16px;
		height: 100px;
		padding: 16px 6px;
	}
	#stats .block p { font-size: 10px; }
	#stats .block p.date { max-width: 100px; }
	#stats .block p.number { font-size: 14px; }
}

@media(min-width: 992px) and (max-height: 750px) {
	body #analysis video {
		max-height: 500px;
		max-width: 580px;
	}
	body #stats .heading { margin-bottom: 20px; }
	body #stats .block { margin-bottom: 30px; }
}

@media(min-width: 768px) and (max-width: 991px) {
	#stats .period span.value { padding: 2px 36px 2px 20px; }
	section#first { height: auto; }
	#first .wrap { padding-top: 200px; }
	#first h1 { font-size: 80px; }
	#first .text { font-size: 20px; }
	section#analysis { height: auto; }
	#analysis h2 { font-size: 40px; }
	#analysis .buttons .btnwrap, #analysis .buttons button {
		width: 300px;
		height: 120px;
		font-size: 24px;
	}
	#analysis .buttons button:hover { font-size: 20px; }
	section#stats { height: auto; }
	#stats .heading { gap: 20px 0; }
	#stats h3 { font-size: 36px; }
	#stats .tabselect {
		margin: 0;
		display: flex;
	}
	#stats .filters { justify-content: space-between; }
	#stats .filters .sources p { display: none; }
	#stats .graphwrap ul {
		width: 100%;
		flex-flow: row wrap;
		gap: 16px;
	}
	#stats .graphwrap ul li {
		padding-left: 20px;
		font-size: 14px;
		min-height: 16px;
	}
	#stats .graphwrap ul li:before {
		width: 16px;
		height: 16px;
	}
	#stats .graphwrap {
		flex-flow: row wrap;
		gap: 20px;
	}
	#stats #graph { width: 100%; }
	#stats .block {
		border-radius: 16px;
		height: 120px;
		padding: 16px;
		margin-bottom: 32px;
	}
	#stats .block p { font-size: 14px; }
	#stats .block p.date { max-width: 120px; }
	#stats .block p.number { font-size: 18px; }
}

@media(min-width: 1px) and (max-width: 767px) {
	body { background-image: url(img/mobbg.png); }
	section#first {
		height: auto;
		background-image: url(img/fmob.png);
	}
	#first .wrap { padding: 530px 0 40px 0; }
	#first h1 { font-size: 48px; }
	#first .text { font-size: 16px; }
	section#analysis {
		height: auto;
		padding: 100px 0 50px 0;
	}
	#analysis h2 {
		font-size: 28px;
		margin-bottom: 76px;
	}
	#analysis .buttons {
		height: 64px;
		margin-top: 76px;
		gap: 8px;
	}
	#analysis .buttons .btnwrap, #analysis .buttons button {
		width: 160px;
		height: 64px;
		font-size: 16px;
		border-radius: 16px;
	}
	#analysis .buttons button:before {
		left: 4px;
		top: 4px;
		width: calc(100% - 8px);
		height: calc(100% - 8px);
		border-radius: 16px;
	}
	#analysis .buttons button:hover {
		font-size: 14px;
		width: 140px;
		height: 60px;
	}
	section#stats { height: auto; }
	#stats .wrap { padding-top: 50px; }
	#stats .heading {
		margin-bottom: 24px;
		gap: 20px 0;
	}
	#stats h3 { font-size: 28px; }
	#stats .tabselect {
		margin-left: 0;
		border-radius: 12px;
		vertical-align: middle;
	}
	#stats .tabselect span {
		padding: 2px 20px;
		height: 40px;
		font-size: 14px;
		border-radius: 8px;
	}
	#stats .filters { justify-content: space-between; }
	#stats .period {
		vertical-align: middle;
		width: 100px;
		height: 48px;
		display: inline-flex;
		background-position: calc(100% - 18px) center;
		padding: 0;
	}
	#stats .period span.icon {
		display: flex;
		flex-flow: row wrap;
		align-items: center;
		width: 100%;
		height: 44px;
		padding: 0 24px;
	}
	#stats .period span.icon img { height: 24px; }
	#stats .filters .sources {
		height: 48px;
		padding: 2px 20px;
	}
	#stats .filters .sources p { display: none; }
	#stats .filters .sources label span {
		padding-left: 28px;
		font-size: 14px;
	}
	#stats .filters .sources label span:before { transform: scale(0.85); }
	#stats .period .options {
		top: 50px;
		width: 160px;
	}
	#stats .period .options span {
		height: 48px;
		font-size: 16px;
	}
	#stats .graphwrap {
		flex-flow: row wrap;
		gap: 20px;
	}
	#stats .graphwrap ul {
		width: 100%;
		gap: 10px;
	}
	#stats #graph { width: 100%; }
	#stats .statblock { margin-bottom: 14px; }
	#stats .statblock:last-child { margin-bottom: 0; }
	#stats .statblock .col-xs-6 {
		padding: 0 8px;
	}
	#stats .block {
		border-radius: 24px;
		height: 140px;
		padding: 16px 8px;
		margin-bottom: 16px;
	}
	#stats .block .line { flex-flow: column wrap; }
	#stats .block .line:last-child {
		flex-direction: column-reverse;
		align-items: flex-start;
	}
	#stats .block p { font-size: 12px; }
	#stats .block p.date {
		max-width: 100%;
		font-size: 10px;
	}
	#stats .block p.number { font-size: 24px; }
	#popup {
		bottom: 15px;
		right: 15px;
		height: 60px;
		width: 208px;
		gap: 8px;
	}
	#popup span { font-size: 14px; }
}