/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

:root {}

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 *
 * todo barva selekce
 */

::-moz-selection {
    background: #d8f8fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
	--red: #d71e20;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

body, html {
	font-family: "Open Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings: "wdth" 100;
	font-size: 18px;

	text-shadow: none;
	background-color: #ffffff;
}

button, input, select, textarea {
	font-family: 'Verdana', sans-serif;
}

a {
	color: var(--red);
	text-decoration: underline;
}

.barlow {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 400;
	font-style: normal;
}

/* --- project --- */

.content {
	width: 100%;
	margin: 0 auto;
	max-width: 2560px;
	min-width: 320px;
	box-sizing: border-box;
}

.content .content { min-width: 0; }

.content.content-padded { padding: 0 25px; }

.content.content-mid {
	max-width: 1920px;
}

.content.content-black {
	background-color: #000000;
	color: #ffffff;
	padding-top: 90px;
	padding-bottom: 90px;
}

.mb {
	margin-bottom: 100px;
}

@media screen and (max-width: 920px) {
	.content.content-black {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

.main-title {
	font-size: 45px;
	text-align: center;
	text-transform: uppercase;
	margin: 0 0 100px 0;
}

.main-title .subtitle {
	font-size: 20px;
	color: var(--red);
	display: block;
}

.hero-text {
	text-align: center;
}

.hero-text-inner {
	max-width: 1000px;
	margin: 0 auto;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 400;
	font-style: normal;
}

.hero-text-inner ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0;
	padding: 0;
}

.hero-text-inner li {
	list-style-type: none;
	margin: 0;
	padding: 0 0 0.5em 0;
	width: 30%;
	text-align: left;
	padding-left: 50px;
	box-sizing: border-box;
	position: relative;
}

.hero-text-inner li:before {
	position: absolute;
	display: block;
	content: "";
	top: calc(50% - 1px);
	left: 0;
	width: 30px;
	height: 2px;
	background-color: var(--red);
}

.hero-text-inner li:nth-of-type(2n - 1) {
	margin-right: 40%;
}

.button {
	display: inline-block;
	text-align: center;
	background-color: var(--red);
	color: #ffffff;
	padding: 18px 75px;
	text-transform: uppercase;
	text-decoration: none;
	font-weight: 700;
}

@media screen and (max-width: 1050px) {
	.hero-text-inner li {
		width: 40%;
	}

	.hero-text-inner li:nth-of-type(2n - 1) {
		margin-right: 10%;
	}
}

@media screen and (max-width: 770px) {
	.hero-text-inner ul {
		display: inline-block;
	}

	.hero-text-inner li {
		width: 100%;
	}

	.hero-text-inner li:nth-of-type(2n - 1) {
		margin-right: 0;
	}
}

/* icons */

.icons {
	display: flex;
	justify-content: center;
	margin-bottom: 100px;
}

.icon {
	position: relative;
	width: 255px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 3px solid #ffffff;
	margin: 0 60px;
}

.icon-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	z-index: 1;
}

.icon-title {
	font-size: 25px;
	line-height: 1.6em;
	padding: 1em;
	z-index: 2;
	text-transform: uppercase;
}

.content.single-text {
	max-width: 1200px;
	padding-top: 4em;
	padding-bottom: 6em;
}

@media screen and (max-width: 1420px) {
	.icon {
		margin: 0 30px;
	}
}

@media screen and (max-width: 1120px) {
	.icon-title {
		font-size: 20px;
	}
}

@media screen and (max-width: 980px) {
	.icon {
		margin: 0 15px;
	}
}

@media screen and (max-width: 850px) {
	.icons {
		flex-wrap: wrap;
		margin-bottom: 30px;
	}

	.icon {
		width: calc(50% - 36px);
		max-width: 255px;
		margin-bottom: 30px;
	}
}

@media screen and (max-width: 480px) {
	.icon {
		width: 100%;
	}
}

/* footer */

.main-footer-content {
	display: flex;
	justify-content: space-between;
	font-size: 20px;
	padding: 0 100px;
}

.footer-logo {
	width: 505px;
}

.footer-logo img {
	width: 100%;
}

.footer-contact {
	font-weight: 700;
	padding-top: 2em;
	text-align: right;
	line-height: 2em;
}

.footer-contact .instagram-link {
	text-decoration: none;
	color: #231f20;
	font-weight: 300;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 4em;
}

.footer-contact .instagram-link img {
	margin-right: 20px;
}

.footer-contact a {
	color: #000000;
	text-decoration: none;
}

.footer-stripe {
	background-color: var(--red);
	color: #ffffff;
	padding: 35px 0;
	margin-top: 50px;
	font-weight: 700;
}

.footer-stripe .content {
	display: flex;
	justify-content: space-between;
	padding: 0 100px;
}

.footer-stripe a {
	color: #ffffff;
	text-decoration: none;
	text-transform: lowercase;
}

@media screen and (max-width: 1450px) {
	.footer-logo {
		width: 350px;
	}
}

@media screen and (max-width: 1023px) {
	.footer-stripe .content {
		flex-wrap: wrap;
		text-align: center;
		padding: 0 20px;
	}

	.footer-stripe .copy {
		padding-bottom: 0.5em;
	}

	.footer-stripe .copy, .footer-stripe .legal {
		width: 100%;
	}
}

@media screen and (max-width: 1000px) {
	.main-footer-content {
		padding: 0 60px;
	}
}

@media screen and (max-width: 920px) {
	.main-footer-content {
		padding: 0 20px;
	}

	.footer-logo {
		width: 260px;
	}

	.main-footer-content, .footer-stripe {
		font-size: 16px;
	}
}

@media screen and (max-width: 640px) {
	.main-footer-content {
		flex-wrap: wrap;
		justify-content: center;
	}

	.footer-contact {
		width: 100%;
		text-align: center;
	}

	.footer-contact .instagram-link {
		justify-content: center;
		margin-top: 3em;
	}

	.footer-stripe .sep {
		display: none;
	}

	.footer-stripe a {
		display: block;
	}
}

/* preload */

#preloader-cover {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000000;
	z-index: 100;
	background-image: url("../img/loader.svg");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 150px 150px;
}

/* header */

.main-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 6;
}

.main-header .content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.main-logo {
	width: 256px;
	margin-left: 85px;
	filter: drop-shadow(0 0 10px #ffffff);
}

.main-logo img {
	width: 100%;
}

@media screen and (max-width: 950px) {
	.main-logo {
		margin-left: 30px;
	}
}

@media screen and (max-width: 580px) {
	.main-logo {
		width: 160px;
	}
}

/* gallery */

.lb-gallery {
	position: fixed;
	display: none;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 1% 0;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.8);
	z-index: 500;
}

.lb-gallery.loading {
	background-repeat: no-repeat;
	background-position: center center;
	background-image: url(../img/gallery/loading.svg);
}

.lb-gallery a.prev, .lb-gallery a.next {
	position: absolute;
	width: 20%;
	height: 100%;
	top: 0;
	background-repeat: no-repeat;
	background-size: 14px auto;
	z-index: 5;
}

.lb-gallery a.prev {
	left: 0;
	background-position: calc(0% + 35px) center;
	background-image: url(../img/gallery/left.png);
}

.lb-gallery a.next {
	right: 0;
	background-position: calc(100% - 35px) center;
	background-image: url(../img/gallery/right.png);
}

.lb-gallery .canvas {
	margin: 0 auto;
	width: calc(100% - 208px);
	height: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	position: relative;
}

.lb-gallery .canvas-image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	object-fit: contain;
	width: 100%;
	height: 100%;
}

@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
  .lb-gallery .canvas-image {
		transform: translateX(-50%) translateY(-50%);
		width: 100%;
		height: auto;
	}
}

.lb-gallery .thumbnails {
	position: absolute;
	top: 100%;
	width: 100%;
	margin-top: -85px;
	text-align: center;
	z-index: 6;
}

.lb-gallery .thumbnails a {
	display: inline-block;
	margin: 0 10px;
	height: 75px;
	line-height: 75px;
	vertical-align: top;
	margin-bottom: 10px;
}

.lb-gallery .thumbnails a.active {
	opacity: 0.6;
}

.lb-gallery .thumbnails img {
	width: 100px;
	max-height: 75px;
}

.lb-gallery a.close {
	position: absolute;
	top: 25px;
	right: 25px;
	width: 44px;
	height: 44px;
	background-repeat: no-repeat;
	background-position: center center;
	background-image: url(../img/gallery/close.png);
	background-size: cover;
	background-color: transparent;
	z-index: 7;
}

@media screen and (max-width: 1023px) {
	.lb-gallery a.prev {
		background-size: 17px 46px;
		background-position: calc(0% + 17px) center;
	}

	.lb-gallery a.next {
		background-size: 17px 46px;
		background-position: calc(100% - 17px) center;
	}

	.lb-gallery .canvas { width: calc(100% - 102px); }

	.lb-gallery a.close {
		width: 22px;
		height: 22px;
		top: 12px;
		right: 12px;
	}

	.lb-gallery .thumbnails img {
		width: 50px;
		max-height: 37px;
	}

	.lb-gallery .thumbnails a {
		height: 50px;
		line-height: 50px;
		margin-bottom: 5px;
	}

	.lb-gallery .thumbnails {
		margin-top: -50px;
	}
}

/* flashes */

figure.flashes {
	position: fixed;
	width: 370px;
	padding: 15px;
	top: 333px;
	left: 50%;
	margin-left: -200px;
	background-color: #019C9E;
	color: #ffffff;
	font-weight: bold;
	z-index: 12;
	border: 1px solid #ffffff;
}

/* recaptcha */

.recaptcha-container {
	display: none;
	position: absolute;
	padding: 10px;
	border-radius: 4px;
	overflow: hidden;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	box-shadow: 0px 0px 40px 10px rgba(0,0,0,0.8);
	background-color: rgba(255,255,255,0.9);
}

.recaptcha-wait {
	display: block;
	text-align: center;
	margin-bottom: 10px;
}

.recaptcha-wait span {
	display: inline-block;
	padding-right: 25px;
	background-image: url("../img/loader-dots.svg");
	background-position: 100% 75%;
	background-repeat: no-repeat;
	background-size: 20px;
}

.recaptcha-container.absolute {
	display: block;
}

/* paginator */

.pagination { text-align: center; }
.pagination ul { display:inline-block;margin:0;padding:0;border-radius:3px;box-shadow:0 1px 2px rgba(0, 0, 0, 0.05); }
.pagination li { display:inline; }
.pagination a { float:left;padding:0 14px;line-height:34px;text-decoration:none;border:1px solid #ddd;border-left-width:0; }
.pagination a:hover,.pagination .active a { background-color:#f5f5f5; }
.pagination .active a { color:#999999;cursor:default; }
.pagination .disabled span,.pagination .disabled a,.pagination .disabled a:hover { color:#999999;background-color:transparent;cursor:default; }
.pagination li:first-child a { border-left-width:1px;border-radius:3px 0 0 3px; }
.pagination li:last-child a { border-radius:0 3px 3px 0; }
.pagination-centered { text-align:center; }
.pagination-right { text-align:right; }

/* errors default */

ul.error, ul.flashes {
	display: block;
	background-color: #ee630f;
	color: #ffffff;
	padding: 0;
	margin: 1rem 0rem;
}

ul.flashes {
	background-color: #a7a7a7;
}

ul.error li, ul.flashes li {
	padding: 5px 10px;
	margin: 0px;
	list-style-type: none;
	list-style-image: none;
}

ul.flashes .error {
	background-color: #ee630f;
}

/* popups */

.fix-content {
	display: none;
	position: fixed;
	z-index: 10;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
	overflow-y: auto;
}

.fix-content.showed { display: block; }

.over-content {
	width: calc(100% - 40px);
	max-width: 30rem;
	padding: 2rem;
	box-sizing: border-box;
	background-color: #ffffff;
	margin: 0 auto;
	margin-top: 6.25rem;
	position: relative;
}

.close {
	position: absolute;
	right: 0;
	top: 0;
	width: 2rem;
	height: 2rem;
	line-height: 1.8rem;
	text-align: center;
	border-radius: 1000px;
	color: #000000;
	text-decoration: none;
	margin: -0.75rem -0.75rem 0 0;
	background-color: #ffffff;
	box-shadow: -1px 1px 4px 0px rgba(0, 0, 0, 0.27);
	font-size: 1.5rem;
}

/* chyby v poupuech */

.fix-content ul.error, .fix-content ul.flashes {
	background-color: transparent;
	color: #000000;
}

ul.flashes .error {
	background-color: #ee630f;
}

/* - - - */

a[href^="error:"] {
	background: red;
	color: white;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

div.center {
	text-align: center;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}
