/*
Theme Name: MŠ Habartov
Theme URI: 
Author: Tomáš Gažůr
Author URI: https://www.tomasgazur.cz
Version: 1.01
*/

img{display:block} button,hr,input{overflow:visible}audio,canvas,progress,video{display:inline-block}progress,sub,sup{vertical-align:baseline}[type=checkbox],[type=radio],legend{box-sizing:border-box;padding:0}html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline: transparent dotted 1px}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;max-width:100%;white-space:normal}textarea{overflow:auto}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}
html,
body {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
*,
*:before,
*:after {
	box-sizing: inherit;
}
body {
	font-family: 'sofia-pro', Arial, sans-serif;
	font-weight: 400;
	font-style: normal;
	color: #6B4D3A;
	font-size: 16px;
	letter-spacing: normal;
	text-rendering: optimizeLegibility !important;
	-webkit-font-smoothing: antialiased !important;
	background-color: #fff;
}
.row {
	width: 100%;
	max-width: 1330px;
	padding: 0 20px;
	margin: 0 auto;
	display: block;
}
header {
	width: 100%;
	height: 60px;
	position: relative;
	z-index: 200;
	float: left;
}
header .logo {
	float: left;
	width: 197px;
	margin-top: 12px;
}
a.link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 400;
	width: 100%;
	height: 100%;
}
header .main-menu {
	width: calc(100% - 260px);
	float: right;
	text-align: right;
}
header .main-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
header .main-menu ul ul {
	display: none;
	position: absolute;
	top: 50px;
	left: -22px;
	background: #fff;
	border: 1px solid #E3F1D1;
	border-radius: 10px;
	padding: 15px;
	z-index: 100;
	text-align: center;
}
header .main-menu ul li.menu-item-854 ul {
	left: 0;
}
header .main-menu ul li:hover > ul {
	display: block;
}
header .main-menu li {
	display: inline-table;
	position: relative;
	margin: 0 20px;
}
header .main-menu ul ul li {
	margin: 10px 0;
}
header .main-menu li.menu-item-has-children > a {
	padding-right: 15px;
	background-position: right center;
	background-repeat: no-repeat;
	background-size: 8px auto;
	background-image: url('img/sipka.svg');
}
header .main-menu li a {
	font-size: 18px;
	display: inline-table;
	color: #4A7747;
	position: relative;
	padding: 17px 0 15px;
	border-top: 2px solid transparent;
}
header .main-menu li a:hover {
	border-color: #4A7747;
}
header .main-menu li.current-menu-item > a, header .main-menu ul li.current-menu-parent > a, header .main-menu ul li.current-page-ancestor > a {
	border-color: #4A7747;
}
header .main-menu ul ul li a {
	padding: 0;
	border: 0;
}
header .main-menu ul ul li a:hover, header .main-menu ul ul li.current-menu-item a {
	text-decoration: underline;
	color: #6B4D3A;
}
a {
	text-decoration: none;
	transition: all 150ms linear;
	-webkit-transition: all 150ms linear;
}
header .menu-show {
	position: absolute;
	right: 22px;
	top: -4px;
	display: none;
	width: 25px;
	font-size: 0;
	height: 28px;
	padding-top: 55px;
	z-index: 15;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: 300ms linear;
	-moz-transition:300ms linear;
	-ms-transition: 300ms linear;
	-o-transition: 300ms linear;
	transition: 300ms linear;
	cursor: pointer;
	text-transform: uppercase;
}
header .menu-show span {
	position: absolute;
	left: 0;
	display: block;
	width: 25px;
	height: 2px;
	background: #6B4D3A;
	opacity: 1;
	filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: 0.25s ease-in-out;
	-moz-transition: 0.25s ease-in-out;
	-ms-transition: 0.25s ease-in-out;
	-o-transition: 0.25s ease-in-out;
	transition: 0.25s ease-in-out;
}
header .menu-show span:nth-child(1) {
	top: 25px;
}
header .menu-show span:nth-child(2),
header .menu-show span:nth-child(3) {
	top: 33px;
}
header .menu-show span:nth-child(4) {
	top: 41px;
}
.open-mobile header .menu-show span:nth-child(1) {
	top: 23px;
	left: 50%;
	width: 0%;
}
.open-mobile header .menu-show span:nth-child(2) {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	top: 31px;
}
.open-mobile header .menu-show span:nth-child(3) {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
	top: 31px;
}
.open-mobile header .menu-show span:nth-child(4) {
	top: 20px;
	left: 50%;
	width: 0%;
}
.open-mobile {
	overflow: hidden;
}
.open-mobile header .logo {
	position: relative;
	z-index: 1000;
}
.open-mobile header .main-menu li.bakalari:before {
	position: relative;
	top: 8px; 
	left: -5px;
}
.open-mobile header .main-menu li.bakalari {
	padding-left: 0;
}
.open-mobile header .main-menu {
	background: #FEFAF4;
	position: absolute;
	top: 0;
	width: 230px;
	z-index: 9999;
	height: 100vh;
	overflow-y: auto;
	right: 0;
	margin: 0;
	padding: 80px 25px 0;
	display: block;
	-webkit-overflow-scrolling: touch;
}
.open-mobile header .main-menu ul {
	display: table;
	width: 100%;
	padding: 10px 0;
}
.open-mobile header .main-menu ul li {
	width: 100%;
	margin: 15px 0;
	text-align: right;
	padding-bottom: 0;
}
.open-mobile header .main-menu ul li a {
	padding: 0;
	border: 0;
}
.open-mobile header .main-menu ul ul {
	position: static;
	background: none;
	border: 0;
	padding: 10px 0 0 0;
}
.open-mobile header .main-menu ul ul li {
	margin: 5px 0;
}
.half {
	float: left;
	width: 50%;
}
img {
	width: auto;
	max-width: 100%;
	height: auto;
}
p {
	margin: 0 0 30px;
	line-height: 135%;
}
section {
	float: left;
	width: 100%;
}
section.content {
	padding: 45px 0;
}
.main {
	min-height: 345px;
	position: relative;
	padding-top: 190px;
	background-color: #FEFAF4;
	position: relative;
}
.main.page {
	min-height: 168px;
	padding-top: 0;
}
.main.page img.ilu {
	float: right;
	margin-right: 10%;
	position: relative;
	z-index: 100
}
.main h1 {
	font-size: 45px;
	color: #6B4D3A;
	font-weight: 700;
	margin: 0;
}
.main p {
	color: #C26A5F;
	line-height: 145%;
	font-size: 30px;
}
.main .half.ilu {
	margin-top: -180px;
	position: relative;
	z-index: 100
}
.cloud {
	width: 162px;
	height: 53px;
	background-image: url('img/mrak_1.svg');
	background-position: center center;
	background-repeat: no-repeat;
	position: absolute;
	top: 35px;
	right: 60%
}
.cloud2 {
	width: 130px;
	height: 53px;
	background-image: url('img/mrak_2.svg');
	background-position: center center;
	background-repeat: no-repeat;
	position: absolute;
	top: 100px;
	right: 50%;
}
.cloud3 {
	position: absolute;
	top: 35px;
	right: 18%;
}
.cloudfloat {
	animation: cloudFloat 12s ease-in-out infinite;
}
@keyframes cloudFloat {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(25px, -10px);
  }
  100% {
    transform: translate(0, 0);
  }
}
.section-title {
	color: #4A7747;
	text-align: center;
	font-size: 30px;
	margin: 0 0 20px;
	font-weight: 700;
}
.tridy {
	width: 100%;
	float: left;
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
}
.tridy .trida {
	border: 1px solid #E3F1D1;
	background-color: #F8FFEF;
	border-radius: 10px;
	width: calc(33.333% - 15px);
	height: 160px;
	position: relative;
}
.tridy .trida .ilustrace {
	float: left;
	width: 142px;
	margin-top: -30px;
	transition: all 150ms linear;
	-webkit-transition: all 150ms linear;
}
.tridy .trida .ilustrace img {
	height: 188px;
}
.tridy .trida .content {
	float: right;
	padding: 20px 20px 0;
	width: calc(100% - 142px);
}
.tridy .trida .content h2 {
	margin: 0 0 15px;
	color: #4A7747;
	font-size: 30px;
	font-weight: 700;
}
.tridy .trida .content p {
	margin: 0 0 5px;
}
.tridy .trida span.circle {
	position: absolute;
	top: -25px;
	right: 65px;
	border-radius: 50%;
	width: 57px;
	height: 57px;
	font-size: 14px;
	padding-top: 11px;
	color: #6B4D3A;
	text-align: center;
	background-color: #F8E4C5;
}
.tridy .trida span.circle.red {
	right: 20px;
	background-color: #F9D7D3;
}
.tridy .trida span.circle.orange {
	z-index: 100;
}
.tridy .trida:hover h2 {
	text-decoration: underline;
}
.tridy .trida:hover .ilustrace {
	margin-top: -40px;
}
section.novinky {
	background-color: #FEFAF4;
	padding: 25px 0 60px;
}
a.all-news {
	color: #4A7747;
	font-size: 18px;
	font-weight: 700;
	background-image: url('img/sipka_doprava.svg');
	padding: 4px 40px 4px 0;
	background-position: right center;
	background-repeat: no-repeat;
	float: right;
	margin-top: -50px;
}
a.all-news:hover {
	text-decoration: underline;
}
.news-list {
	display: flex;
	gap: 40px;
}
.news-list .item {
	position: relative;
	background: #F8FFEF;
	border: 1px solid #E3F1D1;
	border-radius: 10px;
	width: calc(100% - 25px);
}
.news-list .item .thumb {
	float: left;
	width: 111px;
	border-right: 1px solid #E3F1D1;
}
.news-list .item .content {
	float: right;
	width: calc(100% - 111px);
	padding: 15px;
	position: relative;
}
.news-list .item .content h3 {
	margin: 5px 0 0 0;
	font-size: 20px;
	color: #4A7747;
}
.news-list .item:hover .content h3 {
	text-decoration: underline;
}
.news-list .item .content a.read {
	font-weight: 400;
	background-image: url('img/sipka_bila.svg');
	padding: 35px 0 0 0;
	background-position: center calc(100% - 30px);
	background-repeat: no-repeat;
	color: #fff;
	width: 105px;
	height: 111px;
	border-radius: 0px 10px 10px 0px;
	background-color: #4A7747;
	position: absolute;
	text-align: center;
	top: 0;
	right: 0;
}
.news-list .item:hover .content a.read {
	background-position: calc(50% + 10px) calc(100% - 30px);
}
.partners-list {
	width: 100%;
	float: left;
	display: flex;
	gap: 40px;
	margin: 20px 0 40px;
	flex-wrap: wrap;
	justify-content: center;
}
.partners-list img {
	max-width: 143px;
	max-height: 40px;
}
.contact-us {
	font-weight: 400;
	background-image: url('img/contact-us.jpg');
	padding: 30px 0 0 0;
	background-position: center bottom;
	background-repeat: no-repeat;
	min-height: 860px;
	background-color: #FEFAF4;
}
.contact-us .contact-us-content {
	max-width: 460px;
	display: block;
	margin: 0 auto;
	font-size: 18px;
}
.contact-us .contact-us-content a, .right-side a.icon {
	color: #6B4D3A;
	background-position: left center;
	padding: 4px 0 4px 32px;
	background-repeat: no-repeat;
	display: block;
}
.contact-us .contact-us-content a.phone, .right-side a.phone {
	background-image: url('img/smartphone.svg');
}
.contact-us .contact-us-content a.tel, .right-side a.tel {
	background-image: url('img/phone-call.svg');
}
.contact-us .contact-us-content a.email, .right-side a.email {
	background-image: url('img/email.svg');
}
.contact-us .contact-us-content a:hover {
	text-decoration: underline;
}
.contact-us .boxes {
	float: left;
	width: 100%;
	place-content: center;
	display: flex;
	margin-top: 60px;
}
.contact-us .boxes .item {
	width: 190px;
	height: 190px;
	padding-top: 15px;
	background: #FFFFFF;
	text-align: center;
	border: 1px solid #EBE6D8;
	border-radius: 30px;
	margin: 0 22px;
	display: inline-block;
}
.contact-us .boxes .item:nth-child(1) {
	transform: matrix(0.97, -0.22, 0.22, 0.97, 0, 0);
	margin-top: -35px;
}
.contact-us .boxes .item:nth-child(2) {
	transform: matrix(0.97, 0.24, -0.24, 0.97, 0, 0);
}
.contact-us .boxes .item:nth-child(3) {
	margin-top: -15px;
	transform: matrix(1, 0, 0, 1, 0, 0);
	padding-top: 30px;
}
.contact-us .boxes .item .number {
	color: #E3786A;
	font-size: 68px;
	font-weight: 700;
	margin-bottom: 7px;
}
.contact-us .boxes .item:nth-child(2) .number {
	color: #BED474;
}
.contact-us .boxes .item:nth-child(3) .number {
	color: #D27B44;
}
.contact-us .boxes .item p {
	color: #464646;
	font-size: 18px;
}
.left-side {
	width: calc(100% - 400px);
	float: left;
	padding-right: 10%;
}
.left-side.wide {
	width: 100%;
	padding-right: 0;
}
.left-side.wide .news-list {
	gap: 10px;
	flex-wrap: wrap;
}
.entry {
	font-size: 18px;
}
.entry ul {
	margin: -15px 0 20px;
}
.entry li {
	margin: 0 0 10px;
	line-height: 130%;
}
.entry h1 {
	font-size: 45px;
	margin: 0 0 30px;
}
.entry h2 {
	font-size: 35px;
	margin: 0 0 15px;
}
.entry h3 {
	font-size: 25px;
	margin: 0 0 15px;
}
.entry table {
	width: 100%;
}
.entry table td {
	padding: 7px 15px;
}
.entry a {
	color: #4A7747;
	text-decoration: underline;
}
.entry a:hover {
	text-decoration: none;
}
.entry .wp-block-file *+.wp-block-file__button {
	background: #6B4D3A;
	color: #fff;
}
.entry .ngg-gallery-thumbnail {
	border-color: #6B4D3A !important;
}
.entry figure {
	margin: 0 0 30px;
}
.entry table th {
	text-align: left !important;
}
.wp-block-table td, .wp-block-table th {
	border-color: #FEFAF4 !important;
}
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form textarea {
	font-family: 'sofia-pro';
	margin-bottom: 10px;
	border-radius: 10px;
	padding: 10px 20px;
	outline: none;
	width: 100%;
	border: 1px solid #FEFAF4;
	background-color: #FEFAF4;
}
.wpcf7-not-valid {
	border-color:#dc3232 !important;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
	color:#dc3232 !important;
}
.wpcf7 form .wpcf7-response-output {
	border: 0 !important;
}
.wpcf7-not-valid-tip {
	display: none !important;
}
.wpcf7-form textarea {
	height: 120px;
}
.wpcf7-form input[type="submit"] {
	font-family: 'sofia-pro';
	cursor: pointer;
	height: 44px;
	padding: 0 30px;
	border-radius: 10px;
	color: #fff;
	outline: none;
	background: #4A7747;
	border: 0;
}
.wpcf7-form input[type="submit"]:hover {
	opacity: 0.9;
}
.right-side {
	float: right;
	width: 400px;
}
.right-side .box {
	background: #FEFAF4;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 15px;
}
.right-side .box .title {
	font-size: 30px;
	margin-bottom: 15px;
	font-weight: 700;
}
.right-side .box ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.right-side .box ul li {
	margin: 0 0 15px;
}
.right-side .box ul ul {
	padding: 15px 0 0 20px;
}
.right-side .box ul ul li {
	margin: 0 0 7px;
}
.right-side .box ul li a {
	font-size: 18px;
	font-weight: 700;
	color: #4A7747;
}
.right-side .box ul ul li a {
	font-weight: 500;
}
.right-side .box ul li a:hover, .right-side .box ul li.current_page_item > a {
	text-decoration: underline;
}
.right-side .news-list {
	flex-wrap: wrap;
	gap: 10px;
}
.right-side .news-list .item {
	width: 100%;
}
.right-side .news-list .item h3 {
	font-size: 18px;
}
.right-side a.all-news {
	margin: 20px auto 0;
	float: none;
	display: table;
}
.right-side p.address {
	background-image: url('img/address.svg');
	background-position: left 4px;
	background-repeat: no-repeat;
	padding: 4px 0 4px 32px;
	font-size: 18px;
	margin-bottom: 5px;
}
.right-side a.icon {
	font-size: 18px;
	margin-bottom: 5px;
}
.right-side a.icon:hover {
	text-decoration: underline;
}
.error-page {
	text-align: center;
}
footer {
	background: #fff;
	float: left;
	width: 100%;
	padding: 15px 0;
	text-align: center;
}
footer p.copy {
	margin: 15px 0 0 0;
}
body.page footer {
	padding: 90px 0 30px;
	background-image: url('img/footer.svg');
	background-position: center top;
	background-repeat: repeat-x;
}
footer a {
	color: #6B4D3A;
	text-decoration: underline;
}
footer a:hover {
	text-decoration: none;
}
.clear {clear: both;}
.only-mobile {display: none;}
@media (max-width: 1140px) {
	header .main-menu li {margin: 0 10px;}
	
	
}
@media (max-width: 960px) {
	header .main-menu ul, .main .half.ilu, .cloud, .cloud2, a.all-news {display: none;}
	header .menu-show {display: block;}
	.half, .left-side, .right-side {width: 100%;}
	.left-side {padding-right: 0; margin-bottom: 50px;}
	.tridy .trida, .news-list .item {width: 100%;}
	.tridy {gap: 30px;}
	.news-list {flex-wrap: wrap;}
	.contact-us .contact-us-content a {width: fit-content; margin: 5px auto;}
	.contact-us .contact-us-content {text-align: center;}
	.contact-us .boxes {display: block;}
	.contact-us .boxes .item {display: table; margin: 15px auto !important; transform: none !important;}

}
@media (max-width: 720px) {
	header .logo {width: 120px;}
	.main {padding-top: 90px; min-height: inherit;}
	.main.page img.ilu {display: none;}
	.main.page {min-height: 95px;}
	.entry h1 {font-size: 36px;}
	.entry h2 {font-size: 30px;}
	.contact-us .boxes .item {width: 160px; height: 160px;}
	.contact-us .boxes .item .number {font-size: 48px;}
	.news-list .item .content a.read {height: 50px; top: inherit; bottom: -50px; width: 100%; text-align: right; border-radius: 0px 0px 10px 10px; background-position: calc(100% - 25px) center; line-height: 50px; padding: 0 70px 0 0;}
	.news-list .item:hover .content a.read {background-position: calc(100% - 20px) center;}
	.news-list .item {margin-bottom: 50px; border-radius: 10px 10px 0px 0px;}
	.news-list .item .content {position: static;}
	.right-side .news-list .item {margin-bottom: 0;}
}

