/* MOULD & MACHINE SERVICES – site styles (rewrite of the legacy Foundation 4 theme) */
:root {
	--dark-blue: #0079af;
	--light-blue: #2ea3d8;
	--grey: #ececec;
	--light-grey: #f5f5f5;
	--text: #222;
	--row-width: 1148px;
	--font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.55; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--dark-blue); }
a:hover { color: var(--light-blue); }
h1, h2, h3, h4 { font-weight: 300; line-height: 1.2; margin: 0 0 .6em; color: var(--dark-blue); }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; margin-top: 1.4em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
strong { font-weight: 500; }
iframe { max-width: 100%; }
address { font-style: normal; }
button { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row { max-width: var(--row-width); margin: 0 auto; padding: 0 16px; }

/* Icon font (Fontello from the legacy site) */
@font-face { font-family: 'icons'; src: url('../fonts/icons.woff2') format('woff2'), url('../fonts/icons.woff') format('woff'), url('../fonts/icons.ttf') format('truetype'); font-weight: normal; font-style: normal; font-display: swap; }
[class^="icon-"]::before, [class*=" icon-"]::before { font-family: 'icons'; font-style: normal; font-weight: normal; display: inline-block; text-decoration: inherit; width: 1em; margin-right: .3em; text-align: center; }
.icon-search::before { content: '\e800'; }
.icon-mail::before { content: '\e801'; }
.icon-th-1::before { content: '\e802'; }
.icon-phone-1::before { content: '\e803'; }
.icon-location-1::before, .icon-gps::before { content: '\e804'; }
.icon-print::before { content: '\e805'; }
.icon-download-alt::before { content: '\e806'; }
.icon-calendar::before { content: '\e806'; }

/* ---------------- Header ---------------- */
.site-header .contacts { background: #fff; border-top: 10px solid var(--dark-blue); border-bottom: 20px solid var(--grey); font-size: 15px; }
.site-header .contacts .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 42px; }
.contacts-left { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.contacts-left p { margin: 0; }
.contacts-left a { color: var(--dark-blue); text-decoration: none; }
.contacts-right { display: flex; align-items: center; gap: 18px; }
.print-page { background: none; border: 0; color: var(--dark-blue); cursor: pointer; padding: 0; }
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.lang-switch a { display: block; width: 22px; height: 16px; overflow: hidden; text-indent: -999px; background: url('../images/icons/lang/cs.png') no-repeat center; border: 1px solid #ddd; opacity: .8; }
.lang-switch a:hover, .lang-switch a.active { opacity: 1; border-color: var(--dark-blue); }
.lang-switch a[lang="en"] { background-image: url('../images/icons/lang/en.png'); }
.lang-switch a[lang="de"] { background-image: url('../images/icons/lang/de.png'); }
.lang-switch a[lang="ru"] { background-image: url('../images/icons/lang/ru.png'); }

.masthead .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.masthead .logo a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.masthead .logo .brand { font-size: 1.45rem; font-weight: 300; color: var(--dark-blue); letter-spacing: .02em; }
.masthead-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.search { display: flex; }
.search input { width: 220px; max-width: 100%; border: 1px solid #ccc; border-right: 0; padding: 6px 10px; font: inherit; font-size: 15px; }
.search button { border: 0; background: var(--dark-blue); color: #fff; padding: 0 12px; cursor: pointer; }
.search button:hover { background: var(--light-blue); }
.kb-logo img { display: block; max-height: 40px; }

.main-nav { background: var(--dark-blue); }
.main-nav .row { position: relative; }
.menu-toggle { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu a { display: block; padding: 12px 18px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 400; text-transform: uppercase; }
.menu > li:hover > a, .menu > li.active > a, .menu > li.expanded > a { background: var(--light-blue); }
.menu .dropdown { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--dark-blue); display: none; z-index: 20; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.menu .dropdown a { text-transform: none; padding: 10px 18px; white-space: nowrap; }
.menu .dropdown li:hover > a, .menu .dropdown li.active > a { background: var(--light-blue); }
.menu > li:hover > .dropdown, .menu > li.expanded > .dropdown { display: block; }

@media (max-width: 800px) {
	.menu-toggle { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: #fff; padding: 12px 0; text-transform: uppercase; cursor: pointer; }
	.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; margin: 0 4px; }
	.menu { display: none; flex-direction: column; }
	.menu.open { display: flex; }
	.menu .dropdown { position: static; box-shadow: none; background: rgba(0,0,0,.15); }
	.menu .dropdown a { padding-left: 36px; white-space: normal; }
	.masthead .logo .brand { font-size: 1.15rem; }
	.site-header .contacts { font-size: 14px; }
}

/* ---------------- Main ---------------- */
.site-main { padding: 20px 0 40px; }
.flash { padding: 12px 18px; margin-bottom: 20px; border-left: 5px solid var(--dark-blue); background: var(--light-grey); }
.flash.error { border-color: #c0392b; }
.flash.success { border-color: #27ae60; }

.breadcrumbs { list-style: none; margin: 0 0 20px; padding: 8px 14px; background: var(--light-grey); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: '/'; color: #999; margin-right: 6px; }
.breadcrumbs a { text-decoration: none; text-transform: uppercase; }
.breadcrumbs .current span { text-transform: uppercase; color: #666; }

.block-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.block-title p { margin: 0; }
.block-title h1 { margin: 0; }

.main-content h1 img, .main-content h2 img { vertical-align: middle; }
.main-content ul li { margin-bottom: .3em; }
.main-content .highlighted-text, .highlighted-text { font-size: 1.2rem; color: var(--dark-blue); background: var(--light-grey); padding: 12px 26px; margin: 20px 0; }
.noident { margin: 0; }
.vyrobni-linky-promo { background: url('../images/vyrobni-linky-promo-radka.jpg') no-repeat center top; background-size: cover; min-height: 122px; margin: 0 0 20px; padding: 24px 26px; color: #fff; }
.vyrobni-linky-promo p { font-size: 1.25rem; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.vyrobni-linky-promo strong { font-weight: 500; }

/* blocks (legacy @mixin block) */
.block, .block-highlight, .newslist-page section, .news section { background: var(--grey); padding: 18px 26px; margin-bottom: 20px; }
.block-highlight { border-top: 5px solid var(--light-blue); }
.block-highlight p, .block-highlight p:last-child { margin: 0; font-size: 1.2rem; color: var(--dark-blue); }
.block ul { list-style: none; padding: 0; }
.block ul li { padding-left: 22px; background: url('../images/icons/sqblue.png') no-repeat 0 .5em; margin-bottom: .4em; }
.block .video iframe { width: 100%; max-width: 512px; aspect-ratio: 16 / 9; height: auto; border: 0; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .two-cols { grid-template-columns: 1fr; } }

/* galleries */
.gallery { list-style: none; margin: 10px 0 24px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery li { margin: 0; padding: 0; background: none; }
.gallery a { display: block; }
.gallery img { display: block; width: 100%; }
.gallery.outlined a { border: 1px solid #ccc; padding: 4px; background: #fff; }
.gallery span { display: block; font-size: 14px; margin-top: 4px; }
@media (max-width: 700px) { .gallery, .gallery.cols-3 { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; background: #fff; padding: 6px; }
.lightbox figcaption { color: #fff; margin-top: 8px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 10px 18px; }
.lightbox .lb-close { top: 8px; right: 12px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

/* documents */
.documents { list-style: none; padding: 0; margin: 0 0 24px; }
.documents li { border-top: 5px solid var(--light-blue); background: var(--grey); padding: 14px 20px 14px 56px; margin-bottom: 14px; position: relative; }
.documents li::before { content: ''; position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; background: url('../images/icons/staple.png') no-repeat center / contain; }
.documents .fileinfo { margin: 4px 0 0; font-size: 14px; }

/* ---------------- Homepage ---------------- */
.header-photo { margin-bottom: 20px; }
.carousel { position: relative; overflow: hidden; background: #000; }
.carousel .slide { display: none; margin: 0; position: relative; }
.carousel .slide.active { display: block; animation: fadein .8s; }
.carousel img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.carousel figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,121,175,.8); color: #fff; padding: 12px 26px; font-size: 1.2rem; }
.carousel figcaption p { margin: 0; }
.carousel-dots { position: absolute; right: 14px; top: 14px; display: flex; gap: 6px; }
.carousel-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.carousel-dots button.active { background: #fff; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.intro { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; margin-bottom: 20px; }
.intro .promo { background: var(--dark-blue); color: #fff; padding: 24px 26px; font-size: 1.15rem; }
.intro .promo span { font-weight: 500; }
.intro .promo p:last-child { margin: 0; }
.intro .about { font-size: 1.05rem; }
.intro .about > p:first-child { font-size: 1.25rem; }
.forms h2 { margin: .4em 0 .2em; font-size: 1.3rem; }
.forms p { margin: 0 0 .5em; }
.icon-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.icon-grid li { font-size: 14px; }
.icon-grid a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.icon-grid img { width: 36px; height: auto; flex: none; }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .icon-grid { grid-template-columns: repeat(2, 1fr); } }

.nabizime-wrapper h2, .novinky-wrapper h2 { margin-top: 0; }
.hspace { margin-top: 20px; }
.news section h3 { margin-bottom: .2em; }
.news section h3 a { text-decoration: none; }
.news section { padding: 14px 20px; }
.news section:last-child { margin-bottom: 0; }
.novinky-wrapper .block { padding: 12px 6px; }
.novinky-wrapper .more { text-align: right; }
.novinky-wrapper .more a { display: inline-block; padding-left: 20px; background: url('../images/icons/arrblue.png') no-repeat 0 center; text-decoration: none; text-transform: uppercase; }
p.datetime { color: #777; font-size: 14px; margin: 0 0 .5em; }

/* ---------------- News ---------------- */
.newslist-page .one-article { display: flex; gap: 20px; }
.newslist-page .article-image { flex: 0 0 230px; }
.newslist-page h2 { margin: 0 0 .2em; font-size: 1.4rem; }
.newslist-page h2 a { text-decoration: none; }
@media (max-width: 600px) { .newslist-page .one-article { flex-direction: column; } }
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 20px; }
.article-page .article-header { margin-bottom: 20px; }
.article-page .perex { font-size: 1.15rem; color: var(--dark-blue); }
.article-main-image { margin-bottom: 20px; }
.article-page .back { margin-top: 30px; }

/* ---------------- Contact ---------------- */
.contact-page .geomap iframe { width: 100%; height: 300px; border: 0; }
.contact-page .geomap .map-link { font-size: 13px; text-align: right; margin: 4px 0 20px; }
.contact-row { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: 20px; background: var(--grey); padding: 18px 26px; margin-bottom: 20px; }
.contact-address { display: flex; gap: 12px; }
.contact-address .contact-icon { font-size: 2rem; color: var(--dark-blue); }
.contact-address .contact-icon p { margin: 0; }
.contact-row p { margin: 0; }
@media (max-width: 700px) { .contact-row { grid-template-columns: 1fr; } }
.headquarters, .personnel { margin-bottom: 20px; }

/* ---------------- Forms ---------------- */
.poptavkovy-formular { max-width: 800px; margin-top: 20px; }
.poptavkovy-formular .form-row { display: grid; grid-template-columns: 2fr 10fr; gap: 10px 20px; align-items: start; margin-bottom: 14px; }
.poptavkovy-formular label { padding-top: 8px; font-weight: 400; }
.poptavkovy-formular input[type="text"], .poptavkovy-formular input[type="email"], .poptavkovy-formular textarea, .search-inline input { width: 100%; border: 1px solid #ccc; padding: 8px 10px; font: inherit; }
.poptavkovy-formular .row.e { display: none; }
.poptavkovy-formular .errors { color: #c0392b; }
.button, .poptavkovy-formular input[type="submit"] { display: inline-block; background: var(--dark-blue); color: #fff; border: 0; padding: 10px 22px; font: inherit; font-weight: 400; cursor: pointer; text-decoration: none; }
.button:hover, .poptavkovy-formular input[type="submit"]:hover { background: var(--light-blue); color: #fff; }
@media (max-width: 600px) { .poptavkovy-formular .form-row { grid-template-columns: 1fr; } }
.search-inline { display: flex; gap: 8px; max-width: 500px; margin-bottom: 20px; }
.search-results { list-style: none; padding: 0; }
.search-results li { border-bottom: 1px solid #ddd; padding: 10px 0; }
.search-results .label { display: inline-block; font-size: 12px; text-transform: uppercase; color: #fff; background: var(--light-blue); padding: 1px 6px; margin-right: 8px; border-radius: 3px; }
.search-results p { margin: 4px 0 0; color: #666; font-size: 14px; }

/* sitemap */
.sitemap-page { list-style: none; padding: 0; columns: 3; column-gap: 30px; }
.sitemap-page > li { break-inside: avoid; margin-bottom: 14px; }
.sitemap-page > li > a { font-size: 1.1rem; text-decoration: none; }
.sitemap-sub { list-style: none; padding-left: 16px; }
@media (max-width: 700px) { .sitemap-page { columns: 1; } }

/* ---------------- Footer ---------------- */
.site-footer .contacts { background: #000 url('../images/footer-bg.jpg') no-repeat center / cover; color: #fff; border-top: 20px solid var(--grey); padding: 20px 0 10px; }
.site-footer .contacts h2 { color: #fff; margin: 0 0 16px; font-size: 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-cols address { margin-bottom: 1em; }
.footer-cols .ident { display: inline-block; min-width: 150px; font-weight: 400; }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr; } }
.bottom-line { background: var(--dark-blue); color: #fff; font-size: 14px; }
.bottom-line .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; min-height: 44px; gap: 8px; }
.bottom-line p { margin: 0; }
.bottom-line .sitemap a { text-transform: uppercase; }

/* video */
figure.video { margin: 20px 0; }
figure.video video { display: block; width: 100%; max-width: 640px; height: auto; background: #000; }
figure.video figcaption { font-size: 14px; color: #666; margin-top: 6px; }
