/* ==========================================================================
   JANSA.SK site template
   Recreates the original vina_dazzi / Helix3 look on Joomla 6.
   Colours:  #1f5b8b menu blue · #008dd2 accent blue · #c5434b sidebar red
             #252525 footer · #1e1e1e copyright bar
   ========================================================================== */

/* ---------- fonts (self-hosted, latin + latin-ext for SK/DE) ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- base ---------- */
:root {
	--blue: #1f5b8b;
	--accent: #008dd2;
	--accent-dark: #006b9f;
	--red: #c5434b;
	--text: #333;
	--muted: #8c8c8c;
	--line: #ebebeb;
	--footer: #252525;
	--footer-bottom: #1e1e1e;
	--container: 1170px;
	--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
	--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text);
	background: #fff;
	border-top: 2px solid #000;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--accent-dark); }

h1, h2, h3, h4 { color: #222; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 15px;
}

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--accent); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 10px; color: #fff; }

/* ---------- header ---------- */
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	min-height: 126px;
}
.brand img { display: block; width: 214px; height: auto; }

.header-contact { margin-left: auto; margin-right: auto; }
.header-contact > div, .header-contact .mod-custom { display: flex; gap: 20px; flex-wrap: wrap; }
.contact-box { display: flex; align-items: center; gap: 14px; }
.contact-box .icon {
	width: 48px; height: 48px; flex: none;
	display: grid; place-items: center;
	background: #ebebeb; color: var(--blue); font-size: 22px;
}
.contact-box .label { display: block; font-size: 12px; color: #757575; line-height: 1.2; }
.contact-box .value { display: block; font-size: 22px; font-weight: 700; color: #000; line-height: 1.3; }
.contact-box a.value:hover { color: var(--accent); }

.header-lang .lang-links { display: flex; gap: 18px; align-items: center; margin: 0; padding: 0; list-style: none; }
.header-lang img { display: block; height: 50px; width: auto; transition: transform .2s; }
.header-lang a:hover img { transform: scale(1.06); }

/* ---------- main menu ---------- */
.main-nav { background: var(--blue); }
.main-nav .container { position: relative; }
.nav-toggle {
	display: none;
	background: var(--accent); color: #fff; border: 0;
	width: 100px; height: 50px; font-size: 20px; cursor: pointer;
}
.main-menu ul { list-style: none; margin: 0; padding: 0; }
.main-menu > ul, .main-menu .mod-menu { display: flex; flex-wrap: wrap; }
.main-menu li { position: relative; }
.main-menu > ul > li > a,
.main-menu > ul > li > span,
.main-menu .mod-menu > li > a,
.main-menu .mod-menu > li > span {
	display: block;
	padding: 0 20px;
	line-height: 60px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	transition: background-color .3s;
}
.main-menu .mod-menu > li.parent > a::after,
.main-menu .mod-menu > li.parent > span::after {
	content: "\f0d7";
	font: var(--fa-font-solid);
	margin-left: 6px;
	font-size: 12px;
}
.main-menu .mod-menu > li > a:hover,
.main-menu .mod-menu > li:hover > a,
.main-menu .mod-menu > li:focus-within > a,
.main-menu .mod-menu > li.active > a,
.main-menu .mod-menu > li.current > a {
	background: var(--accent);
	color: #fff;
}
.main-menu .mod-menu__sub,
.main-menu .mod-menu ul {
	position: absolute; left: 0; top: 100%; z-index: 50;
	min-width: 230px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
	border-top: 3px solid var(--accent);
	display: none;
}
.main-menu .mod-menu li:hover > ul,
.main-menu .mod-menu li:focus-within > ul { display: block; }
.main-menu .mod-menu ul a {
	display: block; padding: 10px 20px;
	font-size: 13px; font-weight: 700; text-transform: uppercase;
	color: #333; border-bottom: 1px solid #f0f0f0;
}
.main-menu .mod-menu ul a:hover,
.main-menu .mod-menu ul li.current > a { color: var(--accent); background: #f7f7f7; }

/* ---------- slider (home) ---------- */
.site-slider { padding-top: 4px; }
.jslider { position: relative; overflow: hidden; }
.jslider .slides { position: relative; aspect-ratio: 1920 / 600; background: #f4f4f4; }
.jslider .slide {
	position: absolute; inset: 0;
	opacity: 0; transition: opacity .8s ease;
	display: flex; justify-content: center;
}
.jslider .slide.is-active { opacity: 1; z-index: 1; }
.jslider .slide img { width: 100%; height: 100%; object-fit: cover; }
.jslider .dots { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.jslider .dots button {
	width: 22px; height: 5px; padding: 0; border: 0; cursor: pointer;
	background: #c8c8c8;
}
.jslider .dots button.is-active { background: var(--accent); }

/* ---------- breadcrumbs ---------- */
.site-breadcrumbs .mod-breadcrumbs,
.site-breadcrumbs .breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center;
	list-style: none; margin: 0; padding: 25px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14px; text-transform: uppercase;
}
.site-breadcrumbs .mod-breadcrumbs__here { display: none; }
.site-breadcrumbs .breadcrumb-item a { color: #000; }
.site-breadcrumbs .breadcrumb-item a:hover { color: var(--accent); }
.site-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
	content: "\f0da";
	font: var(--fa-font-solid);
	font-size: 11px;
	color: #000;
	margin: 0 12px;
}
.site-breadcrumbs .breadcrumb-item.active,
.site-breadcrumbs .breadcrumb-item:last-child { color: var(--accent); }
.site-breadcrumbs .mod-breadcrumbs__divider { display: none; }

/* ---------- tagline ---------- */
.site-tagline .tagline {
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--blue);
	margin: 32px 0 44px;
	line-height: 1.5;
}
.site-tagline .tagline strong { color: #e10000; }
.site-tagline .tagline a { color: #222; margin-left: 6px; }
.site-tagline .tagline a:hover { color: var(--accent); }
.is-home .site-tagline .tagline { margin: 10px 0 40px; }

/* ---------- main layout ---------- */
.site-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 50px; }
.has-sidebar .site-main { grid-template-columns: 270px minmax(0, 1fr); }
.is-home .site-main { padding-bottom: 0; }

/* sidebar module: red title bar like the original */
.sidebar-left .module-title {
	margin: 0 0 20px;
	padding: 0 20px;
	line-height: 50px;
	background: var(--red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}
.sidebar-left .module-title span::before,
.site-footer .module-title span::before {
	content: "";
	display: inline-block;
	width: 13px; height: 16px;
	margin-right: 10px;
	vertical-align: -2px;
	background:
		linear-gradient(115deg, transparent 38%, #fcb31f 38% 55%, transparent 55%),
		linear-gradient(115deg, transparent 5%, var(--blue) 5% 22%, transparent 22%);
}
.sidebar-left .module-title small { font-size: inherit; }
.sidebar-left .module-body { color: #222; }
.sidebar-left .module-body h1 { font-size: 14px; font-weight: 700; color: #000; margin-bottom: 1em; }
.sidebar-left .module-body p { margin: 0 0 1em; }
.sidebar-left .module-body .gap { height: 1.2em; }

/* article */
.com-content-article .page-header h1,
.com-content-article .page-header h2,
.item-page .page-header h2 {
	font-size: 16px; font-weight: 700; color: #000;
	border-bottom: 1px solid var(--line);
	padding-bottom: 8px;
}
.com-content-article__body, .item-page { color: #222; }
.com-content-article__body ul li, .product-page ul li { margin-bottom: .6em; }
.article-info, .com-content-article .article-info { display: none; }

/* ---------- section titles "{NAŠE} PRODUKTY" ---------- */
.site-bottom-a .module-title,
.site-bottom-b .module-title,
.site-main .module-title.big {
	text-align: center;
	margin: 50px 0 40px;
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	color: var(--accent);
	text-transform: uppercase;
}
.site-bottom-a .module-title small,
.site-bottom-b .module-title small {
	display: inline-block;
	vertical-align: top;
	font-size: 15px;
	color: var(--blue);
	line-height: 1.2;
	padding-bottom: 4px;
	border-bottom: 3px solid var(--blue);
	margin-right: 2px;
}

/* product cards */
.product-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-bottom: 40px; }
.product-card {
	display: grid; grid-template-columns: 45% 1fr; gap: 10px;
	min-height: 140px;
	border: 1px solid #f2f2f2;
	padding: 10px 20px 10px 10px;
	color: #000;
	transition: box-shadow .25s, border-color .25s;
}
.product-card:hover { border-color: #dcdcdc; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); color: #000; }
.product-card img { width: 100%; height: 120px; object-fit: contain; }
.product-card .name { font-size: 14px; font-weight: 700; text-transform: uppercase; padding-top: 8px; }
.product-card:hover .name { color: var(--accent); }

/* why us */
.why-us { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; color: #222; margin-bottom: 50px; }
.why-us img { display: block; height: 80px; width: auto; margin: 0 auto 14px; }

/* ---------- footer ---------- */
.site-footer {
	background: var(--footer);
	color: #fff;
	padding: 50px 0 60px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.site-footer .module-title {
	font-family: "Open Sans", Arial, sans-serif;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 33px;
}
.site-footer p { margin: 0 0 1.2em; }
.footer-contact .map img { display: block; width: 300px; max-width: 100%; margin-bottom: 25px; }
.footer-contact ul { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin: 0 0 12px; display: flex; gap: 12px; align-items: baseline; }
.footer-contact li .fa { width: 16px; text-align: center; }
.site-footer .mod-randomimage img, .site-footer .random-image img { display: block; width: 300px; max-width: 100%; }

.site-copyright {
	background: var(--footer-bottom);
	color: #5e5e5e;
	font-family: "Lato", Arial, sans-serif;
	font-size: 13px;
	line-height: 34px;
	padding: 20px 0;
}
.site-copyright a { color: #fff; }
.site-copyright a:hover { color: var(--accent); }
.site-copyright p { margin: 0; }

.back-to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	width: 40px; height: 40px;
	display: grid; place-items: center;
	background: #222; color: #fff;
	opacity: 0; pointer-events: none; transition: opacity .3s;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent); color: #fff; }

/* ---------- product page (former VirtueMart products) ---------- */
.product-page .product-top { display: grid; grid-template-columns: 5fr 7fr; gap: 30px; margin-bottom: 40px; }
.product-page .product-main-image { border: 1px solid #eee; padding: 10px; display: grid; place-items: center; min-height: 300px; }
.product-page .product-main-image img { max-height: 320px; width: auto; }
.product-page h2.product-title { font-size: 20px; font-weight: 700; text-transform: uppercase; color: #000; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.product-page h3 { font-size: 14px; font-weight: 700; color: #000; margin-top: 1.2em; }
.product-page .downloads a::before { content: "\f1c1"; font: var(--fa-font-solid); margin-right: 8px; color: #e10000; }
.product-page .detail {
	border: 1px solid #e5e5e5;
	margin-bottom: 40px;
}
.product-page .detail > h3 {
	margin: 0; padding: 14px 16px;
	background: #f0f0f0; font-size: 14px; font-weight: 600; color: #222;
}
.product-page .detail-body { padding: 20px 16px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin: 10px 0 20px; }
.gallery a { display: block; border: 1px solid #e5e5e5; padding: 4px; background: #fff; }
.gallery a:hover { border-color: var(--accent); }
.gallery img { display: block; width: 100%; height: 130px; object-fit: contain; }

/* simple lightbox (template.js) */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .85); display: none; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; background: #fff; }

/* ---------- forms (contact + order form) ---------- */
.com-contact .page-header h1, .com-contact .page-header h2 { font-size: 16px; font-weight: 700; color: #000; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.com-contact__container > h3,
.com-contact__container .com-contact__address:empty,
.contact-form-legend-hidden legend { display: none; }
.com-contact__form form, .contact-form form { margin: 10px 0 0; }
.com-contact fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.com-contact fieldset:first-of-type { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.com-contact legend { margin: 0 0 12px; font-size: 20px; font-weight: 600; color: #222; }
.com-contact .control-group { grid-column: 1 / -1; margin: 0 0 16px; }
.com-contact .control-group.half { grid-column: auto; }
.com-contact .control-group:has(#jform_contact_name),
.com-contact .control-group:has(#jform_contact_email) { grid-column: auto; }
.com-contact .control-label { margin: 0 0 6px; }
.com-contact .control-label label { font-size: 13px; font-weight: 700; color: #333; }
.com-contact .star, .com-contact .required .star { color: #db2828; }
.com-contact .form-control,
.com-contact input[type="text"], .com-contact input[type="email"], .com-contact input[type="tel"],
.com-contact input[type="number"], .com-contact input[type="date"], .com-contact textarea, .com-contact select {
	width: 100%; height: 40px; margin: 0; padding: 8px 12px;
	font: inherit; font-size: 14px; color: #333; background: #fff;
	border: 1px solid #dcdcdc; border-radius: 4px; box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.com-contact textarea { height: 160px; resize: vertical; }
.com-contact .form-control:focus, .com-contact input:focus, .com-contact textarea:focus, .com-contact select:focus {
	border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 141, 210, .15); outline: 0;
}
.com-contact .invalid { border-color: #db2828 !important; }
.com-contact label.invalid { color: #db2828; }
.com-contact .form-check { display: flex; align-items: center; gap: 8px; }
.com-contact .form-check-input { width: auto; height: auto; margin: 0; }
.com-contact .form-check-label, .com-contact .optional { font-weight: 400; color: #555; }
.com-contact .control-group:has(#jform_contact_email_copy) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; }
.com-contact .control-group:has(#jform_contact_email_copy) .control-label { margin: 0; }
.com-contact .control-group:has(#jform_contact_email_copy) label { font-weight: 400; color: #555; }
.com-contact .control-group:has(.g-recaptcha) .control-label,
.com-contact .control-group:has(joomla-field-altcha) .control-label { display: none; }

.btn, .com-contact button[type="submit"] {
	display: inline-block;
	padding: 10px 28px;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 20px;
	text-transform: uppercase;
	color: #fff; background: var(--accent);
	border: 0; border-radius: 4px; cursor: pointer;
	transition: background-color .2s;
}
.btn:hover, .btn:focus, .com-contact button[type="submit"]:hover { background: var(--blue); color: #fff; }

/* system messages */
joomla-alert, .alert { display: block; padding: 14px 18px; margin: 0 0 20px; border-radius: 4px; border: 1px solid #b8daff; background: #e8f4fd; color: #0c4a6e; }
joomla-alert[type="success"], .alert-success { border-color: #b7e4c7; background: #ecfdf3; color: #14532d; }
joomla-alert[type="danger"], joomla-alert[type="error"], .alert-danger { border-color: #f5c2c7; background: #fdf0f1; color: #842029; }
joomla-alert[type="warning"], .alert-warning { border-color: #ffe69c; background: #fff8e6; color: #664d03; }
joomla-alert .joomla-alert--close, joomla-alert button { float: right; background: none; border: 0; font-size: 20px; cursor: pointer; color: inherit; }

/* error page */
.error-main { padding: 60px 15px 80px; text-align: center; display: block; }
.error-code { font-size: 90px; font-weight: 700; color: var(--accent); line-height: 1; margin: 0 0 10px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
	.header-inner { flex-wrap: wrap; justify-content: center; padding: 20px 15px; gap: 18px; }
	.header-contact { width: 100%; justify-content: center; }
	.contact-box .value { font-size: 17px; }
	.nav-toggle { display: block; }
	.main-menu { display: none; }
	.main-nav.is-open .main-menu { display: block; }
	.main-menu .mod-menu { flex-direction: column; }
	.main-menu .mod-menu > li > a { line-height: 46px; border-top: 1px solid rgba(255, 255, 255, .12); }
	.main-menu .mod-menu ul { position: static; display: block; box-shadow: none; border: 0; background: rgba(0, 0, 0, .12); }
	.main-menu .mod-menu ul a { color: #fff; border-color: rgba(255, 255, 255, .08); padding-left: 36px; }
	.main-menu .mod-menu ul a:hover { background: rgba(0, 0, 0, .15); color: #fff; }
	.has-sidebar .site-main { grid-template-columns: minmax(0, 1fr); }
	.product-cards { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; }
	.why-us { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.product-page .product-top { grid-template-columns: minmax(0, 1fr); }
	.site-bottom-a .module-title, .site-bottom-b .module-title { font-size: 30px; }
}
@media (max-width: 600px) {
	.brand img { width: 180px; }
	.header-lang img { height: 40px; }
	.com-contact fieldset:first-of-type { display: block; }
	.site-tagline .tagline { font-size: 14px; }
}

/* header: language flags + partner link side by side */
.header-lang { display: flex; align-items: center; gap: 18px; }
.header-lang .partner-link img { display: block; height: 45px; width: auto; }

/* breadcrumbs: home as an icon */
.site-breadcrumbs .mod-breadcrumbs__divider + .breadcrumb-item a { font-size: 0; }
.site-breadcrumbs .mod-breadcrumbs__divider + .breadcrumb-item a::before { content: "\f015"; font: var(--fa-font-solid); font-size: 15px; color: #000; }
.site-breadcrumbs .mod-breadcrumbs__divider + .breadcrumb-item a:hover::before { color: var(--accent); }

/* product: small thumbnails under the main image */
.product-images .gallery { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 10px; }
.product-images .gallery img { height: 70px; }

/* Joomla 6 mod_menu adds its own sub-menu toggle button; the template uses hover + caret instead */
.main-menu .mod-menu__toggle-sub { display: none; }

/* order form (odtrhové skúšky): two fields per row */
.order-form fieldset,
.com-contact .order-form fieldset:first-of-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; margin-bottom: 10px; }
.order-form .control-group { grid-column: auto; }
.order-form .control-group:has(textarea),
.order-form .control-group:has(#jform_contact_email_copy),
.order-form .control-group.field-spacer { grid-column: 1 / -1; }
.order-form legend { grid-column: 1 / -1; font-size: 18px; margin-top: 10px; }
.com-contact .field-calendar .input-group { display: flex; }
.com-contact .field-calendar .input-group .btn { padding: 0 14px; border-radius: 0 4px 4px 0; }
.com-contact .field-calendar input { border-radius: 4px 0 0 4px; }
.com-contact .form-submit { margin-top: 10px; }
@media (max-width: 600px) { .order-form fieldset { display: block; } }

/* contact page: hide the generic "Contact form" heading (the page title is enough) */
.com-contact > h2, .com-contact > h3 { display: none; }
.com-contact .page-header h1 { font-size: 16px; font-weight: 700; color: #000; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 20px; }
.com-contact textarea.form-control, .com-contact textarea { height: 160px; }
.order-form textarea.form-control { height: 100px; }
/* calendar: input + button in one row */
.com-contact .field-calendar { display: flex; }
.com-contact .field-calendar input { flex: 1; min-width: 0; border-radius: 4px 0 0 4px; }
.com-contact .field-calendar .btn { flex: none; width: auto; padding: 0 14px; border-radius: 0 4px 4px 0; }
.com-contact .field-calendar .btn.hidden { display: none; }
.com-contact input:disabled, .com-contact textarea:disabled { background: #f3f3f3; color: #999; cursor: not-allowed; }
.com-contact .field-calendar, .com-contact .field-calendar .input-group { width: 100%; }

/* download tables (Certifikáty): one continuous blue header line */
.table-wrap { overflow-x: auto; margin: 10px 0 30px; }
.download-table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.download-table thead th {
	background: var(--blue);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	padding: 10px 14px;
	border: 0;
}
.download-table thead th:last-child { text-align: left; }
.download-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: #222; }
.download-table td.dl, .download-table td.preview { width: 120px; text-align: center; }
.download-table td img { display: inline-block; }
.download-table td.preview img { height: 70px; width: auto; border: 1px solid #e5e5e5; }
.download-table tbody tr:hover { background: #f7fbfe; }
.download-table td a { color: #222; }
.download-table td a:hover { color: var(--accent); }

/* ---------- mobile header: hamburger on the right, e-mail + phone side by side ---------- */
@media (max-width: 991px) {
	.main-nav .container { display: flex; flex-wrap: wrap; justify-content: flex-end; }
	.main-nav .main-menu { flex: 0 0 100%; }
	.header-contact > div, .header-contact .mod-custom { flex-wrap: nowrap; justify-content: center; gap: 16px; }
}
@media (max-width: 600px) {
	.header-contact > div, .header-contact .mod-custom { gap: 10px; }
	.contact-box { gap: 8px; min-width: 0; }
	.contact-box .icon { width: 34px; height: 34px; font-size: 15px; }
	.contact-box .label { font-size: 10px; }
	.contact-box .value { font-size: 13px; white-space: nowrap; }
	.nav-toggle { width: 60px; height: 46px; }
}
@media (max-width: 360px) {
	.contact-box .icon { display: none; }
	.contact-box .value { font-size: 12px; }
}

/* ---------- mobile slider: full width, crop the empty side margins of the 1920×600 slides (content sits in x≈285–1665) ---------- */
@media (max-width: 767px) {
	.site-slider { padding-inline: 0; }
	.jslider .slides { aspect-ratio: 1380 / 600; }
	.jslider .slide img { object-position: 52.8% 50%; }
	.jslider .dots { right: 8px; bottom: 8px; }
}
