/*
Theme Name: RimeR
Theme URI: 
Author: infocount.cz
Author URI: https://infocount.cz/
Description: Theme for RimeR company
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rimer-theme
*/

html, body, form, h1, h2, h3, ul, li, p {
	margin: 0;
	padding: 0;
}

body, h1, h2, h3, div, label, p, li, a {
	color: #000000;
	font-family: 'DM Sans', sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 40px;
}

a {
	color: #000000;
	text-decoration: underline;
}
a:hover {
	color: #000000;
	text-decoration: none;
}

.modal-content {
	border-radius: 0;
}
.modal-body {
	padding: 4px;
}
.ekko-lightbox a {
	text-decoration: none;
	transition: none;
}
.ekko-lightbox a span {
	color: #ffffff;
}

*, ::after, ::before {
	box-sizing: unset;
}

.container {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1360px;
	padding: 120px 40px;
	margin: 0 auto;
}

/* header */

header {
	position: absolute;
	width: 100%;
	z-index: 1;
}
header.fixed {
	position: fixed;
	background-color: #000000;
}

header .container {
	max-width: none;
	padding-top: 0;
	padding-bottom: 0;
}

header.fixed nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header .top {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	padding: 40px 0;
}
header.fixed .top {
	display: block;
	padding: 20px 0;
}

header .brand a {
	display: block;
	width: 193px;
	height: 59px;
	overflow: hidden;
	text-indent: -99999px;
	background: url("img/logo.png") no-repeat;
}
header .brand a:hover {
	opacity: .5;
}

header .motto {
	color: #ffffff;
	font-size: 34px;
	font-weight: 700;
	line-height: 44px;
	text-align: right;
	text-transform: lowercase;
}
header.fixed .motto {
	display: none;
}

header ul {
	list-style-type: none;
}

header .menu {
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, .3);
}
header.fixed .menu {
	display: flex;
	gap: 40px;
	border: none;
}

header .menu a {
	color: #ffffff;
	font-size: 22px;
	font-weight: 700;
	line-height: 40px;
	white-space: nowrap;
	text-decoration: none;
	text-transform: lowercase;
}
header.fixed .menu a {
	font-size: 30px;
	line-height: 44px;
}
header .menu a:hover {
	color: rgba(255, 255, 255, .5);
}

header .mobile {
	display: none;
}

header .mobile strong {
	position: relative;
	cursor: pointer;
	display: block;
	top: 0;
	right: 0;
	width: 33px;
	height: 29px;
}
header .mobile span {
	position: absolute;
	display: block;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 5px;
	background-color: #ffffff;
	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:hover span {
	width: 100%;
}

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 {
	position: relative;
	overflow: hidden;
}
main::before {
	position: fixed;
	content: "";
	top: -100px;
	left: 0;
	width: 1319px;
	height: 1522px;
	background: url("img/watermark.png") no-repeat;
	z-index: -1;
}

main .title {
	font-size: 34px;
	font-weight: 700;
	line-height: 44px;
	text-transform: lowercase;
	margin-bottom: 20px;
}

/* slider */

#slider {
	background: url("img/slider1.jpg") no-repeat;
	background-size: cover;
	overflow: hidden;
}
#slider::before {
	position: absolute;
	content: "";
	top: -155px;
	left: -90px;
	width: 513px;
	height: 593px;
	background: url("img/border.png") no-repeat;
	animation-name: bounce;
	animation-duration: 5s;
	animation-delay: 1s;
	animation-fill-mode: both;
}
@keyframes bounce {
	from { opacity: 0; }
	60%  { opacity: 1; }
	to   { opacity: .5; }
}

#slider .container {
	max-width: none;
	min-height: 500px;
	padding-top: 0;
	padding-bottom: 0;
}

/* category */

#category {
	position: relative;
	background-color: #f7f7f7;
	overflow: hidden;
}
#category::before {
	position: absolute;
	content: "";
	top: -200px;
	width: 513px;
	height: 593px;
	background: url("img/border.png") no-repeat;
	filter: invert(1);
	opacity: .25;
}

#category .container {
	padding-top: 200px;
	padding-bottom: 40px;
}

#category .date {
	color: #a2a2a2;
	font-size: 26px;
}
#category .date::before {
	content: "/ ";
}

/* about */

#about {
	position: relative;
}
#about::before {
	position: absolute;
	content: "";
	top: 50px;
	left: 0;
	right: 0;
	width: 740px;
	height: 645px;
	background: url("img/draw.png") no-repeat;
	margin: 0 auto;
}

#about .container {
	display: flex;
	gap: 60px;
}

#about .info {
	flex: 0 0 calc(50% - 60px);
}

#about .image {
	position: relative;
	flex: 0 0 50%;
	overflow: hidden;
}
#about .image img {
	width: 100%;
}

/* work */

#work .items {
	display: flex;
	flex-wrap: wrap;
	gap: 120px 60px;
	padding-top: 40px;
	counter-reset: number;
}

#work .item {
	position: relative;
	flex: 0 0 calc(50% - (60px/2));
	counter-increment: number;
	background-position: top 27px left 20px;
	background-repeat: no-repeat;
}
#work .item::before {
	position: absolute;
	content: "";
	top: 12px;
	width: 105px;
	border-top: 1px solid #000000;
}

#work h3 {
	position: relative;
	min-height: 48px;
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	text-transform: uppercase;
	padding-left: 135px;
	margin-bottom: 15px;
}
#work h3::before {
	position: absolute;
	content: counter(number)".";
	left: 115px;
}

#work p {
	font-size: 16px;
	line-height: 32px;
	padding-left: 115px;
}

/* references */

#references {
	overflow: hidden;
	background-color: #000000;
}

#references .main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 20%;
	height: 600px;
}

#references .title {
	color: #ffffff;
}

#references .cat {
	color: #ffffff;
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	text-transform: uppercase;
}

#references .name {
	color: #ffffff;
	max-width: 140px;
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
	text-transform: uppercase;
}
#references .name a {
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
	text-transform: uppercase;
}
#references .name a:hover {
	color: #a2a2a2;
}

#references .date {
	color: #a2a2a2;
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
}

#references .list {
	padding-bottom: 100px;
}
#references .list:last-child {
	padding-bottom: 0;
}

#references .items {
	display: flex;
	flex-wrap: wrap;
	gap: 50px 30px;
	padding-top: 50px;
}

#references .item {
	flex: 0 0 calc(25% - (3*30px/4));
}

#references .item .image {
	position: relative;
	overflow: hidden;
	padding-top: 75%;
	margin-bottom: 20px;
}

#references .item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}
#references .item a:hover img {
	opacity: .5;
}

#references .images {
	position: absolute;
	left: 25%;
	top: 120px;
	overflow: hidden;
}

#references .inner {
	position: relative;
	display: flex;
	gap: 10px;
	left: 0;
	transition: all .5s ease;
}

#references .inner a {
	display: block;
	width: 800px;
	height: 600px;
	overflow: hidden;
}

#references .inner img {
	height: 100%;
}

#references .arrows {
	position: absolute;
	display: flex;
	gap: 20px;
	right: 40px;
	bottom: 80px;
	height: 40px;
}

#references .arrows span {
	display: block;
	cursor: pointer;
	width: 31px;
	height: 40px;
	text-indent: -99999px;
	background: url("img/arrow.png") center no-repeat;
	transition: background .3s ease;
}
#references .arrows span.prev {
	transform: rotate(180deg);
}
#references .arrows span:hover {
	background-position: center right 10px;
	opacity: .5;
}

/* articles */

#articles h3 {
	font-weight: 700;
}

#articles p {
	margin-bottom: 40px;
}

#articles .items {
	display: flex;
	flex-wrap: wrap;
	gap: 80px;
}

#articles .item {
	flex: 0 0 calc(50% - (80px/2));
}

#articles .blocks {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

#articles .block {
	flex: 0 0 calc(33.333334% - (2*30px/3));
}

#articles .image {
	margin-bottom: 40px;
}

#articles .image img {
	width: 100%;
}

/* map */

#map {
	background-color: #f7f7f7;
}

#map .container {
	cursor: pointer;
	height: 400px;
	max-width: none;
	padding: 0;
}

#map iframe {
	pointer-events: none;
	filter: grayscale(100%);
	margin-bottom: -10px;
}

/* footer */

footer {
	background-color: #000000;
	border-top: 1px solid rgba(255, 255, 255, .3);
}

footer .container {
	display: flex;
	justify-content: space-between;
	gap: 30px;
}

footer .group {
	flex: 0 0 calc(50% - (30px/2));
	display: flex;
	gap: 30px;
}
footer .col1, footer .col2 {
	flex: 0 0 calc(50% - (30px/2));
}
footer .col3 {
	flex: 0 0 auto;
}

footer .brand {
	margin-bottom: 30px;
}

footer .brand a {
	display: block;
	width: 32px;
	height: 37px;
	overflow: hidden;
	text-indent: -99999px;
	background: url("img/logo.png") left no-repeat;
	background-size: auto 37px;
}

footer .title {
	color: #ffffff;
	font-size: 34px;
	font-weight: 700;
	line-height: 44px;
	margin-bottom: 10px;
}

footer p {
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
	text-transform: uppercase;
	margin-bottom: 20px;
}
footer .col3 p {
	text-align: right;
}

footer a {
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
}
footer a:hover {
	color: #ffffff;
	opacity: .5;
}
footer a.arrow::after {
	display: inline-block;
	content: "";
	width: 31px;
	height: 7px;
	background: url("img/arrow.png") no-repeat;
	margin-left: 10px;
	transition: background .3s ease;
}
footer a.arrow:hover::after {
	background-position: center right 10px;
}

/* media */

@media (max-width: 1200px) {
	.container {
		padding: 100px 30px;
	}

	header .top {
		gap: 30px;
	}
	header .motto {
		font-size: 30px;
	}
	header.fixed .menu {
		gap: 30px;
	}
	header.fixed .menu a {
		font-size: 26px;
		line-height: 36px;
	}

	#about p {
		font-size: 18px;
		line-height: 34px;
	}

	#work .items {
		gap: 80px 40px;
	}
	#work .item {
		flex-basis: calc(50% - (40px/2));
	}

	#references .images {
		top: 100px;
	}
	#references .arrows {
		bottom: 60px;
	}

	#articles .items {
		gap: 40px;
	}
	#articles .item {
		flex: 0 0 calc(50% - (40px/2));
	}
	#articles p, #articles h3, #articles a {
		font-size: 18px;
		line-height: 34px;
	}
	#articles .image {
		margin-bottom: 30px;
	}
}

@media (max-width: 1000px) {
	header .motto {
		font-size: 26px;
		line-height: 30px;
	}
	header.fixed .menu {
		gap: 15px;
	}

	#references .item {
		flex-basis: calc(33.333334% - (2*30px/3));
	}

	footer .container {
		flex-wrap: wrap;
		justify-content: flex-end;
	}
	footer .group {
		flex-basis: 100%;
	}
	footer .col1 {
		flex-basis: calc(33.333334% - (30px/2));
	}
	footer .col2 {
		flex-basis: calc(66.666667% - (30px/2));
	}
}

@media (max-width: 900px) {
	header.fixed nav.active {
		flex-wrap: wrap;
	}
	header.fixed .menu {
		display: none;
		flex-basis: 100%;
		padding: 10px 0 30px 0;
		border-top: 1px solid rgba(255, 255, 255, .3);
	}
	header.fixed .active .menu {
		display: block;
	}
	header.fixed .menu a {
		font-size: 22px;
		line-height: 40px;
	}
	header.fixed .mobile {
		display: block;
	}

	#about .image img {
		position: absolute;
		left: 50%;
		width: auto;
		transform: translateX(-50%);
	}
}

@media (max-width: 800px) {
	.container {
		padding: 80px 20px;
	}

	header .top {
		gap: 20px;
	}

	#category .container {
		padding-top: 150px;
		padding-bottom: 20px;
	}

	#references .list {
		padding-bottom: 50px;
	}
	#references .items {
		gap: 30px 20px;
		padding-top: 30px;
	}
	#references .item {
		flex-basis: calc(50% - (20px/2));
	}
	#references .item .image {
		margin-bottom: 15px;
	}
	#references .main {
		width: 33.333334%;
	}
	#references .images {
		top: 80px;
		left: 33.333334%;
	}
	#references .arrows {
		bottom: 40px;
	}

	#articles .items {
		flex-direction: column;
	}
	#articles .blocks {
		flex-direction: column;
	}
	#articles .image {
		margin-bottom: 20px;
	}
}

@media (max-width: 700px) {
	#about .container {
		flex-direction: column;
		gap: 30px;
	}
	#about .image img {
		position: static;
		width: 100%;
		transform: none;
	}

	#work .item::before {
		width: 85px;
	}
	#work h3 {
		font-size: 16px;
		padding-left: 115px;
	}
	#work h3::before {
		left: 95px;
	#work p {
		padding-left: 95px;
	}
}

@media (max-width: 600px) {
	.container {
		padding: 50px 10px;
	}

	header .motto {
		display: none;
	}

	#work .items {
		flex-direction: column;
		gap: 40px;
		padding-top: 0;
	}
	#work .item::before {
		width: 105px;
	}
	#work h3 {
		padding-left: 135px;
	}
	#work h3::before {
		left: 115px;
	}
	#work p {
		padding-left: 115px;
	}

	#references .items {
		gap: 20px 10px;
		padding-top: 20px;
	}
	#references .item {
		flex-basis: 100%;
	}
	#references .item .image {
		margin-bottom: 10px;
	}
	#references .main {
		width: 100%;
		height: 480px;
	}
	#references .images {
		top: 160px;
		left: 0;
		height: 300px;
	}
	#references .arrows {
		bottom: 80px;
	}
	#references .inner a {
		width: 400px;
		height: 300px;
	}

	#articles .image {
		margin-bottom: 10px;
	}

	footer .container {
		justify-content: flex-start;
	}
	footer .group {
		gap: 20px;
	}
	footer .col1 {
		flex-basis: calc(50% - (20px/2));
	}
	footer .col2 {
		flex-basis: calc(50% - (20px/2));
	}
	footer .col3 {
	}
}