:root {
    --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
    --color-text: #333333;
    --color-accent: #29abe2;
    --color-accent-dark: #087ba9;
    --color-surface: #ffffff;
    --color-border: #dddddd;
    --color-focus: #005fcc;
    --container-width: 1140px;
    --sidebar-width: 166px;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 5.5rem;
    --line-height: 1.65;
    --header-height: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    background: var(--color-surface);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: var(--line-height);
    display: flex;
    flex-direction: column;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--color-accent-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--color-accent); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

h1, h2, h3 { margin-block: 0 0.65em; color: #111111; line-height: 1.15; }
h1 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 600; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; }
p, ul, ol, table, figure { margin-block: 0 1.15em; }

.skip-link {
    position: fixed;
    z-index: 1000;
    inset-block-start: 0.5rem;
    inset-inline-start: 0.5rem;
    padding: 0.7rem 1rem;
    color: #ffffff;
    background: #111111;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    min-height: var(--header-height);
    background: #ffffff;
    border-top: 1px solid #b5b5b5;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 4px rgb(0 0 0 / 4%);
}
.site-header__inner {
    width: min(calc(100% - 2rem), var(--container-width));
    min-height: var(--header-height);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
}
.site-brand {
    color: var(--color-accent);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.site-brand:hover { color: var(--color-accent-dark); }

.primary-navigation ul, .service-sidebar ul { margin: 0; padding: 0; list-style: none; }
.primary-navigation .mod-menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.15vw, 2rem);
}
.primary-navigation a {
    display: block;
    padding-block: 0.75rem;
    color: #555555;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}
.primary-navigation a:hover,
.primary-navigation .active > a,
.primary-navigation .current > a { color: var(--color-accent); }

.nav-toggle {
    display: none;
    min-width: 44px;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 0;
    font: inherit;
    cursor: pointer;
}
.nav-toggle__label { margin-inline-end: 0.5rem; }
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
    display: inline-block;
    width: 18px;
    height: 2px;
    background: currentColor;
}
.nav-toggle__icon { position: relative; vertical-align: middle; }
.nav-toggle__icon::before, .nav-toggle__icon::after {
    position: absolute;
    inset-inline-start: 0;
    content: "";
}
.nav-toggle__icon::before { inset-block-start: -6px; }
.nav-toggle__icon::after { inset-block-start: 6px; }

.page-shell {
    width: min(calc(100% - 2rem), var(--container-width));
    margin-inline: auto;
    padding-block: var(--space-7) var(--space-6);
    flex: 1 0 auto;
}
.page-shell--sidebar {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 30px;
}
.service-sidebar { padding-block-start: 0.25rem; }
.service-sidebar .mod-menu > li { border-bottom: 1px solid var(--color-border); }
.service-sidebar a {
    position: relative;
    display: block;
    min-height: 41px;
    padding: 0.58rem 0.3rem 0.58rem 1.05rem;
    color: #666666;
    line-height: 1.45;
    text-decoration: none;
}
.service-sidebar a::before {
    position: absolute;
    inset-block-start: 0.64rem;
    inset-inline-start: 0;
    color: #222222;
    content: "›";
    font-size: 1.15rem;
    line-height: 1;
}
.service-sidebar a:hover,
.service-sidebar .active > a,
.service-sidebar .current > a { color: var(--color-accent); }

.main-content { min-width: 0; }
.main-content > .item-page, .main-content > div > .item-page { max-width: 945px; }
.page-header, .item-page .page-header { margin-block-end: 1.65rem; }
.page-header h1, .page-header h2, .item-page > h1, .item-page > h2:first-child {
    font-size: 1.45rem;
    font-weight: 600;
}
.article-body { max-width: 100%; }
.article-body img, .item-page img {
    display: block;
    max-width: 100%;
    margin-block: 1.2rem;
}
.article-body .wide-image, .item-page .wide-image { width: 100%; }
.article-body .content-image--medium, .item-page .content-image--medium { width: min(100%, 600px); }
.article-body .gallery, .item-page .gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}
.article-body .gallery img, .item-page .gallery img {
    width: 100%;
    height: 300px;
    margin: 0;
    object-fit: cover;
}

.price-list { width: 100%; border-collapse: collapse; }
.price-list th, .price-list td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #eeeeee;
    text-align: start;
    vertical-align: top;
}
.price-list th:last-child, .price-list td:last-child {
    width: 13rem;
    text-align: end;
    white-space: nowrap;
}
.contact-card { max-width: 620px; padding: 1.5rem; border: 1px solid var(--color-border); }
.contact-card dl {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.65rem 1.25rem;
    margin: 0;
}
.contact-card dt { font-weight: 700; }
.contact-card dd { margin: 0; }

.button {
    display: inline-block;
    padding: 0.65rem 1rem;
    color: #ffffff;
    background: var(--color-accent-dark);
    text-decoration: none;
}
.button:hover { color: #ffffff; background: var(--color-accent); }
.joomla-alert, joomla-alert {
    display: block;
    margin-block-end: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
}

.site-footer {
    min-height: 64px;
    color: #ffffff;
    background: var(--color-accent);
    flex: 0 0 auto;
}
.site-footer__inner {
    width: min(calc(100% - 2rem), var(--container-width));
    min-height: 64px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }

.error-content {
    width: min(calc(100% - 2rem), 720px);
    margin: auto;
    padding-block: 10vh;
}
.error-code {
    margin: 0;
    color: var(--color-accent);
    font-size: clamp(4rem, 15vw, 9rem);
    font-weight: 700;
    line-height: 1;
}
.component-view { display: block; min-height: auto; padding: 1.5rem; }

@media (max-width: 800px) {
    :root { --header-height: 72px; }
    .site-header__inner { position: relative; flex-wrap: wrap; gap: 0; }
    .site-brand { font-size: 1.35rem; }
    .nav-toggle { display: block; }
    .primary-navigation { display: none; width: 100%; padding-block: 0.5rem 1rem; }
    .primary-navigation.is-open { display: block; }
    .primary-navigation .mod-menu { display: block; border-top: 1px solid var(--color-border); }
    .primary-navigation li { border-bottom: 1px solid var(--color-border); }
    .primary-navigation a { min-height: 44px; padding: 0.9rem 0.2rem; }
    .page-shell { padding-block: var(--space-6) var(--space-5); }
    .page-shell--sidebar { display: flex; flex-direction: column; gap: var(--space-5); }
    .main-content { order: 1; }
    .service-sidebar { order: 2; }
    .service-sidebar .mod-menu { columns: 2; column-gap: 1.5rem; }
    .service-sidebar li { break-inside: avoid; }
    .article-body .gallery, .item-page .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    body { font-size: 15px; }
    .site-header__inner, .page-shell, .site-footer__inner {
        width: min(calc(100% - 1.5rem), var(--container-width));
    }
    .page-shell { padding-block-start: 2.25rem; }
    .service-sidebar .mod-menu { columns: 1; }
    .price-list, .price-list tbody, .price-list tr, .price-list td { display: block; width: 100%; }
    .price-list tr { padding-block: 0.65rem; border-bottom: 1px solid var(--color-border); }
    .price-list td { padding: 0.15rem 0; border: 0; }
    .price-list td:last-child { width: 100%; text-align: start; white-space: normal; font-weight: 700; }
    .contact-card { padding: 1rem; }
    .contact-card dl { grid-template-columns: 1fr; gap: 0.1rem; }
    .contact-card dd { margin-block-end: 0.75rem; }
}

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

