/* Elektro Sabolík Clean PHP – oprava 20260728-2 */

@font-face {
    font-family: "Titillium Web";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../fonts/titillium-web-400.woff2") format("woff2");
}

@font-face {
    font-family: "Titillium Web";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/titillium-web-600.woff2") format("woff2");
}

@font-face {
    font-family: "Titillium Web";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../fonts/titillium-web-700.woff2") format("woff2");
}

:root {
    --red: #ff0000;
    --red-dark: #a40900;
    --ink: #333333;
    --text: #686868;
    --surface: #ffffff;
    --muted: #f5f5f5;
    --line: #e2e2e2;
    --container: 1200px;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: "Titillium Web", Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body,
button {
    font-family: "Titillium Web", Helvetica, Tahoma, Geneva, Arial, sans-serif;
}

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

a {
    color: var(--red-dark);
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--ink);
}

h1,
h2,
h3,
h4,
.main-navigation {
    font-family: "Titillium Web", Helvetica, Tahoma, Geneva, Arial, sans-serif;
}

h1,
h2,
h3 {
    color: var(--red);
    line-height: 1.35;
}

h1 {
    margin: 12px 0 24px;
    font-size: 1.4rem;
}

h2 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1.08rem;
}

p {
    margin: 1rem 0;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 100;
    min-height: 90px;
    background: var(--muted);
}

.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
}

.brand {
    flex: 0 0 25%;
    display: inline-flex;
    align-items: center;
    min-width: 180px;
}

.brand img {
    width: 149px;
    height: 70px;
    object-fit: contain;
}

.main-navigation {
    margin-left: auto;
    color: #141414;
    font-weight: 700;
}

.menu,
.submenu,
.services-sidebar ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 44px);
}

.menu > li {
    position: relative;
}

.menu > li > a,
.submenu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    color: #141414;
    background: transparent;
    border: 0;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.menu > li > a:hover,
.menu > li > a[aria-current="page"],
.menu > .is-current > .submenu-toggle,
.submenu-toggle:hover {
    color: var(--red);
}

.submenu {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    min-width: 265px;
    padding: 10px 0;
    background: #333;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.submenu li > a,
.nested-submenu-toggle {
    display: block;
    width: 100%;
    padding: 9px 18px;
    color: #fff;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    font-weight: 400;
    cursor: pointer;
}

.submenu li > a:hover,
.submenu li > a[aria-current="page"],
.nested-submenu-toggle:hover,
.has-nested-submenu.is-current > .nested-submenu-toggle {
    color: #fff;
    background: #cc3333;
}

.has-nested-submenu {
    position: relative;
}

.nested-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.nested-submenu-toggle span {
    margin-left: 18px;
    font-size: 1.35rem;
    line-height: 1;
}

.nested-submenu {
    position: absolute;
    top: -10px;
    left: 100%;
    min-width: 220px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    background: #333;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.has-nested-submenu:hover > .nested-submenu,
.has-nested-submenu:focus-within > .nested-submenu,
.has-nested-submenu.is-open > .nested-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    background: transparent;
    border: 1px solid #d3d3d3;
    cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #141414;
}

.menu-toggle-lines {
    position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
    position: absolute;
    left: 0;
    content: "";
}

.menu-toggle-lines::before {
    top: -7px;
}

.menu-toggle-lines::after {
    top: 7px;
}

.hero-slider-shell {
    width: 100%;
    background: #d8d8d8;
}

.hero-slider {
    position: relative;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding-bottom: 30px;
    background: #d8d8d8;
}

.slides {
    position: relative;
    aspect-ratio: 5 / 2;
    overflow: hidden;
}

.slide,
.slide > a {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
}

.slide > a {
    position: relative;
    display: block;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide h2 {
    position: absolute;
    bottom: 34px;
    left: 16.666%;
    max-width: 60%;
    margin: 0;
    padding: 12px 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    font-family: "Titillium Web", Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-size: clamp(1rem, 2vw, 1.45rem);
    font-weight: 700;
    text-align: left;
    text-shadow: 1px 1px 0 var(--red), -1px -1px 0 var(--red);
}

.slider-arrow {
    position: absolute;
    top: calc((100% - 30px) / 2);
    z-index: 3;
    width: 44px;
    height: 52px;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    border: 0;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    z-index: 4;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    background: #b8b8b8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.slider-dots button.is-active {
    background: #686868;
}

.home-intro {
    padding: 10px 15px 42px;
    text-align: center;
}

.home-intro h1 {
    margin-top: 12px;
    color: var(--red);
    font-family: "Titillium Web", Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-size: 1.9rem;
    font-weight: 400;
    text-transform: uppercase;
}

.home-intro p {
    max-width: 1120px;
    margin-inline: auto;
}

.home-motto {
    padding: 0 15px;
    text-align: center;
}

.home-motto p {
    margin: 0 0 26px;
    font-family: "Titillium Web", Helvetica, Tahoma, Geneva, Arial, sans-serif;
}

.home-motto img {
    display: block;
    width: min(1000px, 100%);
    margin-inline: auto;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
    gap: 0;
    align-items: stretch;
}

.page-content,
.services-sidebar,
.page-main {
    padding: 15px 25px 38px;
}

.page-content {
    color: var(--ink);
}

.page-content > h1,
.page-main > h1 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.services-sidebar {
    background: var(--surface);
    border-left: 1px solid var(--line);
}

.services-sidebar h2 {
    margin-top: 12px;
    color: var(--text);
    font-size: 1.4rem;
}

.services-sidebar li + li {
    margin-top: 7px;
}

.services-sidebar a {
    display: block;
    padding: 8px 16px;
    color: var(--red);
    background: #fafafa;
    border: 2px solid var(--red);
    font-weight: 700;
    text-decoration: none;
}

.services-sidebar a:hover,
.services-sidebar a[aria-current="page"] {
    color: #fff;
    background: var(--red);
}

.prose {
    min-height: 420px;
}

.prose ul {
    padding-left: 24px;
}

.prose li {
    margin: 5px 0;
}

.prose h2 {
    margin-top: 26px;
}

.clearfix::after,
.clear {
    display: table;
    clear: both;
    content: "";
}

.content-image {
    max-width: min(360px, 44%);
    margin-bottom: 12px;
}

.content-image-left {
    float: left;
    margin-right: 20px;
}

.content-image-right {
    float: right;
    margin-left: 20px;
}

.image-tall {
    max-width: 250px;
}

.poster-image {
    display: block;
    max-width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 16px;
}

.gallery a {
    display: block;
    overflow: hidden;
    background: var(--muted);
}

.gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery a:hover img {
    opacity: 0.9;
    transform: scale(1.025);
}

.feature-row,
.partner-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 22px 0;
}

.feature-row > img {
    width: 190px;
    max-height: 200px;
    object-fit: contain;
}

.partner-row > img {
    flex: 0 0 auto;
}

.partner-row p {
    flex: 1 1 260px;
}

.partner-logo-wide {
    align-self: center;
}

.partner-row-small {
    align-items: center;
}

.button {
    display: inline-block;
    padding: 0.55rem 1.05rem;
    color: #fff;
    background: #fa4141;
    border: 0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.button:hover {
    color: #fff;
    background: #c92c2c;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    margin-bottom: 40px;
}

.contact-details dl {
    margin: 0;
}

.contact-details dl > div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.contact-details dt {
    color: var(--ink);
    font-weight: 700;
}

.contact-details dt img {
    width: 22px;
    height: 22px;
    margin-right: 6px;
    vertical-align: middle;
    object-fit: contain;
}

.contact-details dd {
    margin: 0;
}

.contact-map iframe,
.branch-grid iframe {
    display: block;
    width: 100%;
    border: 0;
}

.contact-map iframe {
    min-height: 450px;
}

.branches {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.branch-grid article {
    padding: 16px;
    background: var(--muted);
}

.branch-grid h3 {
    margin: 0;
}

.branch-grid iframe {
    min-height: 260px;
}

.site-footer {
    min-height: 150px;
    color: #141414;
    background: var(--muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 150px;
    padding: 25px;
    border-top: 1px solid #ddd;
}

.to-top {
    width: 48px;
    height: 48px;
    color: #aaa;
    background: transparent;
    border: 1px solid #ddd;
    font-size: 1.8rem;
    cursor: pointer;
}

.lightbox {
    width: min(1000px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 38px 16px 16px;
    background: #111;
    border: 0;
    box-shadow: var(--shadow);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    margin: auto;
}

.lightbox-close {
    position: absolute;
    top: 2px;
    right: 8px;
    width: 38px;
    height: 38px;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-caption {
    margin: 8px 0 0;
    color: #fff;
    text-align: center;
}

.error-page {
    min-height: 520px;
    padding: 70px 25px;
    text-align: center;
}

.eyebrow {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-navigation {
        position: absolute;
        top: 90px;
        right: 0;
        left: 0;
        display: none;
        padding: 10px 16px 18px;
        background: var(--muted);
        border-top: 1px solid #ddd;
        box-shadow: var(--shadow);
    }

    .main-navigation.is-open {
        display: block;
    }

    .menu {
        display: block;
    }

    .menu > li > a,
    .submenu-toggle {
        width: 100%;
        min-height: 48px;
    }

    .submenu {
        position: static;
        display: none;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .has-submenu.is-open .submenu {
        display: block;
        transform: none;
    }

    .nested-submenu {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 0 18px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .has-nested-submenu.is-open > .nested-submenu,
    .has-nested-submenu:focus-within > .nested-submenu {
        display: block;
        transform: none;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .services-sidebar {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .branch-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100%, calc(100% - 20px));
    }

    .site-header,
    .header-inner {
        min-height: 80px;
    }

    .brand img {
        width: 128px;
        height: auto;
    }

    .main-navigation {
        top: 80px;
    }

    .slides {
        aspect-ratio: 4 / 3;
    }

    .slide h2 {
        right: auto;
        bottom: 34px;
        left: 0;
        max-width: none;
        padding: 9px 12px;
        font-size: 0.92rem;
    }

    .home-intro {
        padding-bottom: 24px;
    }

    .home-motto p {
        font-size: 0.92rem;
    }

    .page-content,
    .services-sidebar,
    .page-main {
        padding-inline: 12px;
    }

    .content-image,
    .content-image-left,
    .content-image-right {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 auto 18px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .feature-row,
    .partner-row {
        flex-direction: column;
    }

    .partner-row p {
        flex-basis: auto;
    }

    .contact-details dl > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .contact-map iframe {
        min-height: 340px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
