/*
Theme Name: Karasek
Theme URI: 
Author: infocount.cz
Author URI: https://infocount.cz/
Description: Theme for zamecnictvi Karasek
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karasek-theme
*/

html, body, h1, h2, h3, ul, li, p {
	margin: 0;
	padding: 0;
}

body, h1, h2, h3, div, p, li, a {
	color: #000000;
	font-family: 'JetBrains Mono', sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 26px;
}

body {
	background-color: #e9e9e9;
}

a {
	color: #f82225;
	text-decoration: none;
}
a:hover {
	color: #ffffff;
	text-decoration: none;
}

img {
	display: block;
}

ul {
	list-style-type: none;
	box-sizing: unset !important;
}

*, ::after, ::before {
	box-sizing: unset;
}

.container {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	padding: 150px 80px;
	margin: 0 auto;
}

.modal-content {
	border-radius: 0;
}

/* header */

header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 35px;
	padding-top: 40px;
	padding-left: 25px;
	padding-bottom: 40px;
}

header .brand a {
	display: block;
	width: 309px;
	height: 81px;
	overflow: hidden;
	text-indent: -99999px;
	background: url("img/logo.png") center no-repeat;
	background-size: cover;
}
header .brand a:hover {
	filter: brightness(0) invert(1);
}

header nav {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	gap: 10px;
}

header .menu {
	display: flex;
	gap: 50px;
}
header .menu a {
	display: block;
	color: #ffffff;
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
	text-transform: uppercase;
}
header .menu a:hover {
	color: #f82225;
}

header .contact {
	display: flex;
	align-items: center;
	gap: 20px;
}

header .phone a {
	color: #ffffff;
	font-weight: 100;
}
header .phone a:hover {
	color: #f82225;
}

header .social {
	display: flex;
	gap: 10px;
}
header .social a {
	position: relative;
	display: block;
	width: 30px;
	height: 30px;
	overflow: hidden;
	text-indent: -99999px;
}
header .social a::before,
header .social a::after {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
header .social a::before {
	background: center no-repeat;
	background-size: 18px 18px;
}
header .social .facebook a::before {
	background-image: url("img/social1.png");
}
header .social .youtube a::before {
	background-image: url("img/social2.png");
}
header .social .instagram a::before {
	background-image: url("img/social3.png");
}
header .social a::after {
	border: 1px solid #f82225;
	border-radius: 50%;
}
header .social a:hover::before {
	filter: brightness(0) invert(1);
}
header .social a:hover::after {
	border-color: #ffffff;
}

header .mobile {
	display: none;
}
header .mobile strong {
	position: relative;
	cursor: pointer;
	display: block;
	width: 37px;
	height: 34px;
}
header .mobile span {
	position: absolute;
	display: block;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 6px;
	background-color: #c72426;
	margin: auto 0;
}
header .mobile span:nth-child(1) {
	bottom: auto;
}
header .mobile span:nth-child(2) {
	width: 75%;
}
header .mobile span:nth-child(3) {
	top: auto;
}
header .mobile strong:hover span {
	width: 100%;
	background-color: #ffffff;
}
header.active .mobile span {
	display: none;
	top: 0;
	bottom: 0;
	transition: transform .5s ease;
}
header.active .mobile span:first-child {
	display: block;
	transform: rotate(45deg);
}
header.active .mobile span:last-child {
	display: block;
	transform: rotate(-45deg);
}

/* main */

main .header .title {
	color: #000000;
	font-size: 50px;
	font-weight: 100;
	line-height: 100px;
}

main .header .notitle {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

main .button a {
	display: inline-block;
	cursor: pointer;
	color: #000000;
	font-size: 16px;
	font-weight: 600;
	line-height: 32px;
	letter-spacing: .2em;
	text-align: center;
	text-transform: uppercase;
	background-color: transparent;
	padding: 10px 25px 10px 25px;
	border: 2px solid #c72426;
	border-radius: 30px;
}
main .button a:hover {
	color: #ffffff;
	background-color: #c72426;
}

/* home */

#home {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* path */

#path {
	position: relative;
	background-color: #2e2e2e;
	overflow: hidden;
}

#path .container {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	max-width: 1920px;
	padding-top: 275px;
	padding-bottom: 75px;
}
#path .container::before {
	position: absolute;
	content: "";
	right: min(100% - 240px, 1240px);
	bottom: -195px;
	width: 1029px;
	height: 1033px;
	background: url("img/about.png") center no-repeat;
}
#path .container > div {
	width: min(100%, 1320px);
}

#path .header {
	position: relative;
}
#path .header .title {
	color: #ffffff;
}
.error #path .header .title {
	color: #c72426;
	font-size: 100px;
	font-weight: 700;
}

/* slider */

#slider {
	position: relative;
	background-color: #0a0a0a;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 1;
}
#slider::before,
#slider::after {
	position: absolute;
	content: "";
}
#slider::before {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(#0a0a0a, transparent  50%, #0a0a0a75);
}
#slider::after {
	left: calc(50% - 40px);
	bottom: -591px;
	width: min(1023px, 50% + 40px);
	height: 1303px;
	background: url("img/slider.png") left no-repeat;
	background-size: 102.5%;
}

#slider .container {
	max-width: 1760px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100vh;
	padding-bottom: 50px;
}

#slider .header {
	position: relative;
	width: calc(50% - 50px);
}
#slider .header .title {
	color: #ffffff;
	text-align: right;
}

/* about */

#about {
	position: relative;
	background-size: 0;
}
#about::before,
#about::after {
	position: absolute;
	content: "";
	left: 0;
	right: 0;
}
#about::before {
	top: 0;
	bottom: 0;
	background-color: #0a0a0a;
}
#about::after {
	bottom: -242px;
	width: 448px;
	height: 448px;
	background-image: inherit;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	margin: 0 auto;
	border-radius: 50%;
}

#about .container {
	max-width: 1480px;
	padding-top: 50px;
	padding-bottom: 125px;
}
#about .container::before {
	position: absolute;
	content: "";
	right: calc(50% - 191px);
	bottom: -188px;
	width: 1029px;
	height: 1033px;
	background: url("img/about.png") center no-repeat;
	z-index: 1;
}

#about .header {
	position: relative;
	width: calc(50% - 50px);
	z-index: 2;
}
#about .header .desc {
	color: #f82225;
	font-weight: 500;
	line-height: 60px;
}

/* services */

#services {
	background-color: #2e2e2e;
}

#services .container {
	max-width: 1480px;
	padding-top: 250px;
}

#services .header {
	text-align: center;
}
#services .header .title {
	color: #ffffff;
}

#services .services {
	display: flex;
	gap: 100px;
	padding: 50px 0 75px 0;
}
#services .services .item {
	position: relative;
	flex: 0 0 calc(33.333334% - 2*100px/3);
	text-align: center;
	background-size: 0;
	padding-top: 150px;
}
#services .services .item::before,
#services .services .item::after {
	position: absolute;
	content: "";
	left: 0;
	right: 0;
	margin: 0 auto;
}
#services .services .item::before {
	top: 0;
	width: 120px;
	height: 120px;
	background-color: #0a0a0a;
	border-radius: 15px;
}
#services .services .item::after {
	top: 15px;
	width: 90px;
	height: 90px;
	background-image: inherit;
	background-position: top 5px left 5px;
	background-repeat: no-repeat;
	border: solid #c72426;
	border-width: 0 2px 2px 0;
	border-radius: 0 0 10px 0;
}
#services .services .name {
	color: #ffffff;
}

#services .footer {
	text-align: center;
}

#services .button a {
	color: #ffffff;
}

/* stripe */

#stripe {
	position: relative;
	background-color: #2e2e2e;
}
.gallery #stripe {
	position: relative;
	background-color: #e9e9e9;
}
#stripe::before,
#stripe::after {
	position: absolute;
	content: "";
	left: 0;
	right: 0;
	height: 1px;
	background-color: #595959;
}
.gallery #stripe::before,
.gallery #stripe::after {
	background-color: #d3d3d3;
}
#stripe::before {
	top: 0;
}
#stripe::after {
	bottom: 0;
}

#stripe .container {
	display: flex;
	align-items: center;
	padding-top: 0;
	padding-bottom: 0;
}
#stripe .container::before {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 1px;
	background-color: #595959;
	margin: 0 auto;
}
.gallery #stripe .container::before {
	background-color: #d3d3d3;
}

#stripe .header {
	position: relative;
	flex: 0 0 50%;
	display: flex;
	align-items: center;
}
#stripe .header::before {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 1px;
	background-color: #595959;
	margin: 0 auto;
}
.gallery #stripe .header::before {
	background-color: #d3d3d3;
}
#stripe .header .title {
	flex: 0 0 calc(50% - 35px);
	color: #f82225;
	font-size: 20px;
	font-weight: 500;
	line-height: 40px;
	text-transform: uppercase;
	padding: 25px 35px 25px 0;
}
#stripe .header .desc {
	flex: 0 0 calc(50% - 70px);
	color: #ffffff;
	font-size: 20px;
	font-weight: 100;
	line-height: 40px;
	text-transform: uppercase;
	padding: 25px 35px;
}
#stripe .header .desc a {
	display: block;
	color: #ffffff;
	font-size: 20px;
	font-weight: 100;
}
.gallery #stripe .header .desc,
.gallery #stripe .header .desc a {
	color: #000000;
}
#stripe .header .desc a:hover {
	color: #f82225;
}

#stripe .footer {
	position: relative;
	flex: 0 0 50%;
}

#stripe .button {
	padding: 25px 0 25px 35px;
}
#stripe .button a {
	position: relative;
	color: #ffffff;
	text-align: left;
	line-height: 40px;
	padding: 0 50px 0 0;
	border: none;
}
.gallery #stripe .button a {
	color: #000000;
}
#stripe .button a:hover {
	color: #f82225;
	background-color: transparent;
}
#stripe .button a::before,
#stripe .button a::after {
	position: absolute;
	content: "";
	top: 0;
	right: 0;
	bottom: 0;
	margin: auto 0;
}
#stripe .button a::before {
	width: 35px;
	height: 0;
	border-bottom: 1px solid #c72426;
}
#stripe .button a::after {
	width: 7px;
	height: 7px;
	border: solid #c72426;
	border-width: 1px 1px 0 0;
	transform: rotate(45deg);
}
#stripe .button a:hover::before,
#stripe .button a:hover::after {
	border-color: #ffffff;
}
.gallery #stripe .button a:hover::before,
.gallery #stripe .button a:hover::after {
	border-color: #000000;
}

/* company */

#company {
	position: relative;
	background-size: 0;
}
#company::before,
#company::after {
	position: absolute;
	content: "";
	top: 0;
	bottom: 0;
}
#company::before {
	left: 50%;
	right: 0;
	background-color: #2e2e2e;
}
#company::after {
	left: 0;
	right: 50%;
	background-image: inherit;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

#company .container {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-end;
	min-height: 600px;
	padding-top: 0;
	padding-bottom: 0;
}

#company .header {
	display: flex;
	align-items: flex-end;
	gap: 35px;
	width: calc(50% - 70px);
	padding: 35px;
}
#company .header .title {
	color: #c72426;
	line-height: 60px;
	writing-mode: sideways-lr;
}
#company .header .desc {
	color: #ffffff;
	max-width: 500px;
}

/* articles */

.contact #articles,
.error #articles {
	position: relative;
	background-color: #2e2e2e;
}
.contact #articles::before,
.error #articles::before {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background-color: #424242;
}

#articles .container {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	max-width: 1920px;
	padding-top: 100px;
	padding-bottom: 50px;
}
.gallery #articles .container {
	padding-bottom: 0;
}
.error #articles .container {
	min-height: 500px;
}
#articles .container::before {
	position: absolute;
	content: "";
	top: 0;
	right: min(100% - 315px, 1165px);
	width: 485px;
	height: 660px;
	background: url("img/articles.png") center no-repeat;
}
.gallery #articles .container::before {
	content: none;
}
.contact #articles .container::before,
.error #articles .container::before {
	filter: brightness(0) invert(1);
}
#articles .container > div {
	width: min(100% ,1320px);
}
.gallery #articles .container > div {
	width: 100%;
}

#articles .articles {
	position: relative;
}
#articles .articles .item.image {
	position: relative;
	background-size: 0;
	padding-right: 33.333334%;
}
.error #articles .articles .item {
	max-width: 880px;
}
#articles .articles .item.image::after {
	position: absolute;
	content: "";
	top: 0;
	right: 0;
	bottom: 0;
	width: 33.333334%;
	background-image: inherit;
	background-position: top;
	background-repeat: no-repeat;
}
#articles .articles .name {
	font-size: 28px;
	font-weight: 100;
	line-height: 40px;
	margin-bottom: 40px;
}
.error #articles .articles .name {
	color: #c72426;
}
#articles .articles p {
	margin-bottom: 26px;
}
.error #articles .articles p {
	color: #ffffff;
}
#articles .articles .columns {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}
#articles .articles .columns > p {
	flex: 0 0 calc(33.333334% - 2*20px/3);
}
.contact #articles .articles .name,
.contact #articles .articles p {
	color: #ffffff;
}

#articles .footer {
	position: relative;
}

#articles .numbers {
	display: flex;
	padding: 30px 0;
}
#articles .numbers .item {
	flex: 0 0 33.333334%;
}
#articles .numbers .name {
	color: #c72426;
	font-size: 50px;
	font-weight: 100;
	line-height: 80px;
	text-align: center;
}
#articles .numbers .desc {
	font-size: 16px;
	font-weight: 600;
	line-height: 32px;
	letter-spacing: .2em;
	text-align: center;
	text-transform: uppercase;
}

#articles .buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
}
.error #articles .button a {
	color: #ffffff;
}

/* partners */

#partners {
	position: relative;
}
#partners::before {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background-color: #d3d3d3;
}

#partners .container {
	padding-top: 50px;
	padding-bottom: 50px;
}

#partners .partners {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 20px;
}
#partners .partners .item {
	flex: 0 0 calc(16.666667% - 5*20px/6);
}
#partners .partners a {
	display: block;
	width: 270px;
	height: 200px;
	overflow: hidden;
	text-indent: -99999px;
	background-position: center;
	background-repeat: no-repeat;
	filter: grayscale(1);
	margin: 0 auto;
}
#partners .partners a:hover {
	filter: none;
}

/* galleries */

.galleries .container {
	padding-top: 100px;
	padding-bottom: 100px;
}

.galleries .header .title {
	font-size: 26px;
	line-height: 30px;
}

.galleries .galleries {
	display: flex;
	flex-direction: column;
	gap: 50px;
	padding-top: 35px;
}
.galleries .galleries .name {
	color: #f82225;
	font-weight: 600;
}

.galleries .galleries .images {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding-top: 25px;
}
.galleries .galleries .image {
	flex: 0 0 calc(20% - 4*20px/5);
}
.galleries .galleries img {
	width: 100%;
}
.galleries .galleries a:hover img {
	opacity: .5;
}

/* references */

#references {
	position: relative;
	background-color: #2e2e2e;
}

#references .container {
	padding-top: 50px;
	padding-bottom: 0;
}

#references .header .title {
	color: #ffffff;
}

#references .references {
	display: flex;
	flex-wrap: wrap;
	gap: 35px;
	padding-top: 35px;
	padding-bottom: 75px;
}
#references .references .item {
	flex: 0 0 calc(25% - 3*35px/4);
	position: relative;
	display: flex;
	flex-direction: column-reverse;
	background-size: 0;
	z-index: 0;
}
#references .references .item::before,
#references .references .item::after {
	content: "";
	left: 0;
	right: 0;
}
#references .references .item::before {
	position: absolute;
	top: 0;
	bottom: 0;
	border: 1px solid #4f4f4f;
	z-index: -1;
}
#references .references .item::after {
	background-image: inherit;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;	
	padding-top: 75%;
}
#references .references .name {
	color: #c72426;
	font-weight: 100;
	text-transform: uppercase;
	padding: 15px 35px;
	border-top: 1px solid #4f4f4f;
}
#references .references .desc {
	color: #ffffff;
	min-height: 150px;
	padding: 15px 35px;
}

#references .footer {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 50vw;
	margin-left: -80px;
	margin-right: -80px;
	z-index: 0;
}
#references .footer::before {
	position: absolute;
	content: "";
	top: 10vw;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('img/references.png') top center no-repeat;
	background-size: cover;
}
#references .footer .images {
	position: absolute;
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	top: 0;
	width: 100%;
	z-index: -1;
}
#references .footer .images span {
	display: block;
	flex: 0 0 calc(25% - 3*1px/4);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	padding-top: 16.666667vw;
}
#references .footer .images span:nth-child(1) {
	background-image: url('img/reference1.jpg');
}
#references .footer .images span:nth-child(2) {
	background-image: url('img/reference2.jpg');
}
#references .footer .images span:nth-child(3) {
	background-image: url('img/reference3.jpg');
}
#references .footer .images span:nth-child(4) {
	background-image: url('img/reference4.jpg');
}

#references .footer .button {
	position: relative;
}
#references .footer .button a {
	color: #ffffff;
}

/* map */

#map {
	position: relative;
}

#map .container {
	padding: 0;
}

#map iframe {
	display: block;
	pointer-events: none;
	filter: grayscale(1);
	margin-bottom: -12px;
}

/* footer */

#footer {
	background-color: #c72426;
}

#footer .container {
	padding-top: 0;
	padding-bottom: 0;
}
#footer .container::before,
#footer .container::after {
	position: absolute;
	content: "";
	top: 0;
	bottom: 0;
	width: 1px;
	background-color: #2e2e2e;
}
#footer .container::before {
	left: 80px;
}
#footer .container::after {
	right: 80px;
}

#footer .header {
	display: flex;
	justify-content: space-between;
}

#footer .brand {
	flex: 0 0 50%;
	position: relative;
}
#footer .brand a {
	position: relative;
	display: block;
	top: -125px;
	left: 35px;
	width: 402px;
	height: 273px;
	overflow: hidden;
	text-indent: -99999px;
	background: url("img/footer.png") center no-repeat;
	margin-bottom: -125px;
}

#footer .notitle {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

#footer .social {
	flex: 0 0 calc(25% - 60px);
	position: relative;
	display: flex;
	gap: 20px;
	padding: 125px 30px 25px 30px;
}
#footer .social::before {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	bottom: 0;
	width: 1px;
	background-color: #2e2e2e;
}
#footer .social a {
	position: relative;
	display: block;
	width: 40px;
	height: 40px;
	overflow: hidden;
	text-indent: -99999px;
}
#footer .social a::before,
#footer .social a::after {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
#footer .social a::before {
	background: center no-repeat;
	filter: brightness(0);
}
#footer .social .facebook a::before {
	background-image: url("img/social1.png");
}
#footer .social .youtube a::before {
	background-image: url("img/social2.png");
}
#footer .social .instagram a::before {
	background-image: url("img/social3.png");
}
#footer .social a::after {
	border: 1px solid #000000;
	border-radius: 50%;
}
#footer .social a:hover::before {
	filter: brightness(0) invert(1);
}
#footer .social a:hover::after {
	border-color: #ffffff;
}

#footer .footer {
	position: relative;
	display: flex;
	flex-wrap: wrap;
}
#footer .footer::before {
	position: absolute;
	content: "";
	top: 0;
	left: 50%;
	width: 100vw;
	height: 1px;
	background-color: #2e2e2e;
	transform: translateX(-50%);
}
#footer .footer .item {
	position: relative;
	flex: 0 0 calc(25% - 60px);
	color: #ffffff;
	font-size: 26px;
	font-weight: 100;
	line-height: 30px;
	padding: 25px 30px;
}
#footer .footer .item::before {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	bottom: 0;
	width: 1px;
	background-color: #2e2e2e;
}
#footer .footer .item:first-child::before {
	content: none;
}
#footer .footer .address {
	flex-basis: calc(75% - 60px);
}
#footer .footer .contact {
	flex-basis: calc(50% - 60px);
	display: flex;
}
#footer .footer .contact::after {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 1px;
	background-color: #2e2e2e;
	margin: 0 auto;
}
#footer .footer .by {
	color: #000000;
}
#footer .footer .item a {
	color: #ffffff;
	font-size: 26px;
	font-weight: 100;
	line-height: 30px;
}
#footer .footer .item a:hover {
	color: #000000;
}
#footer .footer .contact a {
	flex: 0 0 calc(50% - 30px);
}
#footer .footer .contact a:first-child {
	margin-right: 30px;
}
#footer .footer .contact a:last-child {
	margin-left: 30px;
}
#footer .footer .by a {
	color: #000000;
}
#footer .footer .by a:hover {
	color: #ffffff;
}

/* media screen */

@media (max-width: 1900px) {
	#footer .footer .item,
	#footer .footer .item a {
		font-size: 24px;
	}
}

@media (max-width: 1800px) {
	#footer .footer .item,
	#footer .footer .item a {
		font-size: 22px;
	}
}

@media (max-width: 1700px) {
	#footer .footer .item,
	#footer .footer .item a {
		font-size: 21px;
	}
}

@media (max-width: 1600px) {
	.container {
		padding-left: 60px;
		padding-right: 60px;
	}

	#slider::after {
		background-size: 110%;
	}
	#slider .header .title {
		font-size: 40px;
		line-height: 80px;
	}

	#stripe .container::before {
		left: calc(33.333334% + 60px/3);
		right: 60px;
	}
	#stripe .header {
		flex-basis: 66.666667%;
	}
	#stripe .header .title {
		flex-basis: calc(50% - 25px);
		padding-right: 25px;
	}
	#stripe .header .desc {
		flex-basis: calc(50% - 50px);
		padding-left: 25px;
		padding-right: 25px;
	}
	#stripe .footer {
		flex-basis: 33.333334%;
	}
	#stripe .button {
		padding-left: 25px;
		padding-right: 25px;
	}

	#articles .numbers .name {
		font-size: 40px;
		line-height: 60px;
	}

	#references .footer {
		margin-left: -60px;
		margin-right: -60px;
	}

	#footer .container::before {
		left: 60px;
	}
	#footer .container::after {
		right: 60px;
	}
	#footer .footer .item,
	#footer .footer .item a {
		font-size: 20px;
	}

	#footer .footer .contact {
		display: block;
	}
	#footer .footer .contact::after {
		content: none;
	}
	#footer .footer .contact a:first-child,
	#footer .footer .contact a:last-child {
		margin: 0;
	}
	#footer .footer .contact a:first-child::after {
		content: ",";
	}
}

@media (max-width: 1500px) {
	.galleries .galleries .image {
		flex-basis: calc(25% - 3*20px/4);
	}
}

@media (max-width: 1200px) {
	.container {
		padding-left: 40px;
		padding-right: 40px;
	}

	header .brand a {
		width: 232px;
		height: 61px;
	}
	header .menu a {
		font-size: 20px;
	}

	main .header .title {
		font-size: 40px;
		line-height: 60px;
	}

	#path .container {
		padding-top: 200px;
	}
	#path .container::before {
		right: calc(100% - 220px);
	}

	#slider .container {
		min-height: calc(100vw - 175px);
	}

	#stripe .container::before {
		left: calc(33.333334% + 40px/3);
		right: 40px;
	}

	#articles .container::before {
		right: calc(100% - 295px);
	}

	#partners .partners a {
		width: 216px;
		height: 160px;
	}

	#references .references .item {
		flex-basis: calc(50% - 35px/2);
	}
	#references .footer {
		height: 100vw;
		margin-left: -40px;
		margin-right: -40px;
	}
	#references .footer::before {
		top: 60vw;
	}
	#references .footer .images span {
		flex-basis: calc(50% - 1px/2);
		padding-top: 33.333334vw;
	}
	#references .footer .button a {
		background-color: #c72426;
	}
	#references .footer .button a:hover {
		background-color: #2e2e2e;
		border-color: #2e2e2e;
	}

	#footer .container::before {
		left: 40px;
	}
	#footer .container::after {
		right: 40px;
	}
	#footer .brand a {
		left: 20px;
	}
	#footer .social,
	#footer .footer .item {
		flex-basis: calc(50% - 60px);
	}
	#footer .footer .by {
		flex-basis: calc(100% - 60px);
	}
	#footer .footer .by::before {
		position: absolute;
		content: "";
		top: 0;
		left: 50%;
		width: 100vw;
		height: 1px;
		background-color: #2e2e2e;
		transform: translateX(-50%);
	}
	#footer .footer .address span,
	#footer .footer .contact a {
		display: block;
	}
}

@media (max-width: 1100px) {
	#slider::after {
		left: calc(50% - 20px);
		width: calc(50% + 20px);
		background-size: 125%;
	}
	#slider .container {
		padding-bottom: 25px;
	}
	#slider .header {
		width: calc(50% - 35px);
	}
	#slider .header .title {
		font-size: 30px;
		line-height: 60px;
	}

	#about .container {
		padding-top: 25px;
	}
	#about .header {
		width: calc(50% - 35px);
	}
	#about .header .desc {
		font-size: 18px;
		line-height: 40px;
	}

	#stripe .container::before {
		left: 50%;
	}
	#stripe .header {
		flex-basis: 75%;
	}
	#stripe .header::before {
		right: 33.333334%;
	}
	#stripe .header .title {
		flex-basis: calc(33.333334% - 25px);
	}
	#stripe .header .desc {
		flex-basis: calc(66.666667% - 50px);
	}
	#stripe .footer {
		flex-basis: 25%;
	}
	#stripe .button a {
		padding-right: 0 ;
	}
	#stripe .button a::before,
	#stripe .button a::after {
		content: none;
	}

	.galleries .galleries .image {
		flex-basis: calc(33.333334% - 2*20px/3);
	}
}

@media (max-width: 1000px) {
	.container {
		padding-left: 30px;
		padding-right: 30px;
	}

	header .menu {
		gap: 35px;
	}

	#path .container::before {
		right: calc(100% - 215px);
	}

	#services .services {
		gap: 50px;
	}
	#services .services .item {
		flex-basis: calc(33.333334% - 2*50px/3);
	}
	#services .services .name {
		font-size: 18px;
		line-height: 24px;
	}

	#stripe .header .title,
	#stripe .header .desc,
	#stripe .header .desc a {
		font-size: 18px;
		line-height: 35px;
	}
	#stripe .button a {
		line-height: 35px;
	}

	#articles .container::before {
		right: calc(100% - 290px);
	}
	#articles .articles .item.image {
		padding-right: calc(33.333334% + 20px);
	}
	#articles .articles .item.image::after {
		background-position: top right;
	}
	#articles .articles .columns > p {
		flex-basis: calc(50% - 20px/2);
	}

	#references .references {
		gap: 30px;
	}
	#references .references .item {
		flex-basis: calc(50% - 30px/2);
	}
	#references .references .name,
	#references .references .desc {
		padding-left: 30px;
		padding-right: 30px;
	}
	#references .footer {
		margin-left: -30px;
		margin-right: -30px;
	}

	#footer .container::before {
		left: 30px;
	}
	#footer .container::after {
		right: 30px;
	}
	#footer .brand a {
		left: 0;
		max-width: calc(50vw - 30px);
		background-size: contain;
	}
}
@media (max-width: 900px) {
	#company .header {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 800px) {
	.container {
		padding: 75px 20px;
	}

	header nav {
		flex-direction: row;
		align-items: center;
		gap: 20px;
	}
	header .menu {
		position: absolute;
		display: none;
		flex-direction: column;
		gap: 10px;
		top: 0;
		left: 50%;
		right: 0;
		height: calc(100vh - 200px);
		background-color: #2e2e2e;
		padding: 100px 30px;
	}
	header.active .menu {
		display: flex;
	}
	header .mobile {
		display: block;
	}
	header.active .contact {
		position: absolute;
		flex-direction: column;
		align-items: normal;
		gap: 10px;
		top: max(100vh - 160px, 300px);
		left: 50%;
		width: calc(50% - 60px);
		background-color: #2e2e2e;
		padding: 0 30px 30px 30px;
	}

	main .header .title {
		line-height: 60px;
	}

	#path .container::before {
		right: calc(100% - 210px);
	}

	#about::after {
		position: relative;
		display: block;
		bottom: 50px;
		max-width: 50vw;
		max-height: 50vw;
	}
	#about .container {
		padding-bottom: 50px;
	}
	#about .header {
		width: calc(50% - 15px);
	}

	#services .container {
		padding-top: 50px;
	}
	#services .services {
		gap: 25px;
	}
	#services .services .item {
		flex-basis: calc(33.333334% - 2*25px/3);
	}

	#stripe .container {
		flex-direction: column;
		align-items: normal;
	}
	#stripe .container::before {
		left: 0;
		right: 0;
		width: unset;
		height: 1px;
		margin: auto 0;
	}
	#stripe .header::before {
		right: 0;
	}
	#stripe .header .title {
		flex-basis: calc(50% - 25px);
	}
	#stripe .header .desc {
		flex-basis: calc(50% - 25px);
		padding-right: 0;
	}
	#stripe .footer {
		min-height: 120px;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	#stripe .button {
		padding-left: 0;
		padding-right: 0;
	}
	#stripe .button a {
		padding-right: 50px;
	}
	#stripe .button a::before,
	#stripe .button a::after {
		content: "";
	}

	#articles .container {
		padding-top: 75px;
	}
	#articles .container::before {
		right: calc(100% - 285px);
	}

	#references .references {
		gap: 20px;
	}
	#references .references .item {
		flex-basis: calc(50% - 20px/2);
	}
	#references .references .name,
	#references .references .desc {
		padding-left: 20px;
		padding-right: 20px;
	}
	#references .footer {
		margin-left: -20px;
		margin-right: -20px;
	}

	.galleries .container {
		padding-top: 50px;
		padding-bottom: 50px;
	}

	#footer .container::before {
		left: 20px;
	}
	#footer .container::after {
		right: 20px;
	}
	#footer .brand a {
    		max-width: calc(50vw - 20px);
	}
	#footer .social {
		flex-basis: calc(50% - 40px);
		padding-left: 20px;
		padding-right: 20px;
		padding-bottom: 20px;
	}
	#footer .footer .item {
		flex-basis: calc(50% - 40px);
		padding: 20px;
	}
	#footer .footer .by {
		flex-basis: calc(100% - 40px);
	}
}

@media (max-width: 700px) {
	header .contact .social {
		display: none;
	}
	header.active .contact .social {
		display: flex;
	}

	#slider .header .title {
		font-size: 24px;
		line-height: 40px;
	}

	#stripe .header .title {
		flex-basis: calc(50% - 20px);
		padding-right: 20px;
	}
	#stripe .header .desc {
		flex-basis: calc(50% - 20px);
		padding-left: 20px;
	}

	#articles .articles .item.image {
		display: flex;
		flex-direction: column;
		padding-right: 0;
	}
	#articles .articles .item.image::after {
		position: relative;
		width: 100%;
		background-position: center;
		padding-top: 400px;
	}

	.galleries .galleries .image {
		flex-basis: calc(50% - 20px/2);
	}

	#footer .header {
		flex-direction: column;
	}
	#footer .brand a {
    		max-width: calc(100vw - 40px);
	}
	#footer .social {
		padding-top: 20px;
	}
	#footer .social::before {
		content: none;
	}
	#footer .footer .item {
		flex-basis: calc(100% - 40px);
	}
	#footer .footer .item::before {
		left: 50%;
		bottom: auto;
		width: 100vw;
		height: 1px;
		transform: translateX(-50%);
	}
}

@media (max-width: 600px) {
	header .contact .phone {
		display: none;
	}
	header.active .contact .phone {
		display: block;
	}

	#slider::after {
		left: 0;
		bottom: -65vw;
		width: 100%;
		height: 200vw;
		background-size: 150%;
	}
	#slider .container {
		min-height: calc(175vw - 100px);
	}
	#slider .header {
		width: 100%;
		z-index: 1;
	}
	#slider .header .title {
		text-align: left;
		padding: 0 25px;
	}

	#about::after {
		bottom: 35px;
		max-width: 75vw;
		max-height: 75vw;
	}
	#about .container::before {
		left: 0;
		right: 0;
		width: auto;
	}
	#about .header {
		width: 100%;
	}
	#about .header .desc {
		padding: 0 25px;
	}

	#services .services {
		flex-direction: column;
		gap: 75px;
	}

	#stripe .container::before {
		top: 33.333334%;
	}
	#stripe .header {
		flex-direction: column;
		align-items: normal;
	}
	#stripe .header::before {
		left: -20px;
		right: -20px;
		width: unset;
		height: 1px;
		margin: auto 0;
	}
	#stripe .header .title,
	#stripe .header .desc {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 70px;
		padding: 15px 0;
	}
	#stripe .footer {
		min-height: 100px;
	}

	#company {
		display: flex;
		flex-direction: column-reverse;
	}
	#company::before {
		left: 0;
	}
	#company::after {
		position: relative;
		padding-top: 100%;
	}
	#company .container {
		display: block;
		min-height: unset;
	}
	#company .header {
		flex-direction: row;
		align-items: flex-end;
		width: 100%;
		padding: 35px 0 150px 0;
	}

	#articles .articles .columns > p {
		flex-basis: 100%;
	}
	#articles .numbers {
		flex-direction: column;
		gap: 30px;
		padding-bottom: 0;
	}
	#articles .numbers .name {
		font-size: 36px;
		line-height: 40px;
	}

	#references .references .item {
		flex-basis: 100%;
	}
}

@media (max-width: 500px) {
	.container {
		padding-left: 10px;
		padding-right: 10px;
	}

	header .menu,
	header.active .contact {
		left: 0;
		width: calc(100% - 60px);
	}

	#path .container::before {
		right: calc(100% - 205px);
	}

	#stripe .header::before {
		left: -10px;
		right: -10px;
	}

	#articles .container::before {
		right: calc(100% - 280px);
	}

	#references .footer {
		margin-left: -10px;
		margin-right: -10px;
	}

	#references .footer {
		height: 333.333334vw;
	}
	#references .footer::before {
		top: 250vw;
	}
	#references .footer .images span {
		flex-basis: 100%;
		padding-top: 66.666667vw;
	}

	#footer .container::before {
		left: 10px;
	}
	#footer .container::after {
		right: 10px;
	}
	#footer .brand a {
    		max-width: calc(100vw - 20px);
	}
}

@media (max-width: 400px) {
	.galleries .galleries .image {
		flex-basis: 100%;
	}
}