@charset "UTF-8";

/*
Theme Name: Szabi
Author: Michal Hančil
Author URI: https://michalhancil.cz/
Description: Toto je šablona navržená na míru pro vaše potřeby. Pro úpravy či asistenci se obraťte na Michala Hančila, autora šablony.
Version: 2.49
Requires PHP: 8
*/

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

:root {
    --font-sans-serif: 'Open Sans', sans-serif;
    --font-display: 'Skolar sans', Georgia, serif;
    --font-mono: 'Typewritter', monospace;
    --primary-green: #5ac430;
    --primary-black: #000;
    --primary-white: #fff;
    --gray-light: #f7f7f7;
    --gray-text: #777;
    --link-color: #000;
    --link-decoration: none;
    --link-hover-color: var(--primary-green);
    --nav-link-hover-color: var(--primary-green);
    --nav-link-font-size: clamp(0.938rem, 1.1vw, 1rem);
    --nav-link-font-weight: 600;
    --navbar-nav-link-padding-x: 1rem;
    --navbar-bg: var(--gray-light);
    --navbar-floating-bg: var(--gray-light);
    --navbar-floating-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --navbar-toggler-color: var(--primary-black);
    --dropdown-min-width: auto;
    --dropdown-link-active-bg: var(--primary-green);
    --dropdown-link-active-color: var(--primary-white);
    --spinner-width: 3rem;
    --spinner-height: 3rem;
    --spinner-border-color: var(--primary-green);
    --gap: 20px;
    --gray-dark: #333;
    --gray-mid: #666;
    --gray-border: #ccc;
    --primary-green-hover: #4aaa28;
    --color-error: #c53030;
    --color-error-bg: #fff5f5;
    --color-success-bg: #f0fdf4;
    --color-success-text: #276749;
    --color-warning-bg: #fffbeb;
    --color-warning-text: #92400e;
}

.loader-animation {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1031;
    animation: hide 0.5s ease-in-out 1s forwards;
}

.loader-animation .animation-hide {
    animation: hide 0.5s ease-in-out 0.5s forwards;
}

.loader-animation .spinner-border {
    border-color: var(--spinner-border-color);
    border-right-color: transparent;
    border-radius: 50%;
}

@keyframes hide {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

@font-face {
    font-family: 'Skolar sans';
    font-weight: 300;
    src: url('./font/LRegular.woff2') format('woff2'),
         url('./font/LRegular.woff') format('woff');
}

@font-face {
    font-family: 'Skolar sans';
    font-weight: 700;
    src: url('./font/LBold.woff2') format('woff2'),
         url('./font/LBold.woff') format('woff');
}

@font-face {
    font-family: 'Skolar sans';
    font-style: italic;
    src: url('./font/LItalic.woff2') format('woff2'),
         url('./font/LItalic.woff') format('woff');
}

@font-face {
    font-family: 'Typewritter';
    font-weight: 400;
    src: url('./font/Typewritter.woff2') format('woff2'),
         url('./font/Typewritter.woff') format('woff');
}

@font-face {
    font-family: 'Typewritter';
    font-weight: 700;
    src: url('./font/TypewritterB.woff2') format('woff2'),
         url('./font/TypewritterB.woff') format('woff');
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-size: clamp(1.05rem, 1.3vw, 1.188rem);
    color: var(--primary-black);
    font-family: var(--font-sans-serif);
}

a {
    color: var(--link-color);
    text-decoration: var(--link-decoration);
}

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

a:focus,
a:active,
button,
button:focus,
button:active,
input[type="reset"]::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner,
select::-moz-focus-inner,
input[type="file"] > input[type="button"]::-moz-focus-inner {
    outline: none !important;
}

.wpcf7-form-control:focus-visible,
.wpcf7-form-control-wrap:focus {
    outline: none !important;
    box-shadow: none !important;
}

#rank-math-analytics-stats-wrapper,
.fancybox-caption-wrap {
    display: none !important;
}

strong {
	font-weight: 700;
}

.wp-block-gallery{
	display:flex!important;
	flex-wrap:wrap;
}

.cmplz-cookiebanner-container {
    height: 0;
}

#cmplz-document,
.editor-styles-wrapper .cmplz-unlinked-mode,
#cmplz-document p,
.editor-styles-wrapper .cmplz-unlinked-mode p,
#cmplz-document li,
.editor-styles-wrapper .cmplz-unlinked-mode li,
#cmplz-document td,
.editor-styles-wrapper .cmplz-unlinked-mode td {
    max-width: unset !important;
    font-size: unset !important;
}

#cmplz-document a,
.editor-styles-wrapper .cmplz-unlinked-mode a {
    text-decoration: none !important;
    color: inherit;
}

[data-motion] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

[data-motion="fade-up"]    { transform: translateY(30px); }
[data-motion="fade-down"]  { transform: translateY(-30px); }
[data-motion="fade-left"]  { transform: translateX(30px); }
[data-motion="fade-right"] { transform: translateX(-30px); }
[data-motion="zoom-in"]    { transform: scale(0.9); }

[data-motion].motion-animate {
    opacity: 1;
    transform: none;
}

.container,
.container-uzky {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 12px;
    padding-left: 12px;
}

.site-header {
    padding-top: 0;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--navbar-bg, #fff);
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar.navbar-floating {
    background: var(--navbar-floating-bg);
    box-shadow: var(--navbar-floating-shadow);
}

.navbar > .container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-toggler {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.navbar-toggler-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.65rem;
    height: 18px;
    vertical-align: middle;
}

.navbar-toggler-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navbar-toggler-color, #333);
    border-radius: 5px;
    transition: transform 0.35s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.collapse:not(.show) {
    display: none;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
    display: block !important;
    overflow: hidden;
    height: 0;
    transition: height 0.35s ease-in-out;
}

.navbar-collapse.show {
    height: auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease-in-out;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.75;
}

.logo__img {
    height: 65px;
    width: auto;
    display: block;
}

.logo h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.nav-link {
    color: var(--primary-black);
    text-transform: uppercase;
    font-weight: var(--nav-link-font-weight);
    font-size: clamp(0.938rem, 1.1vw, 1rem);
    text-decoration: none;
    padding: 10px 14px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.nav-link:hover,
.nav-link:focus {
    border-bottom-color: var(--primary-green);
    color: var(--nav-link-hover-color);
}

body.home .navbar-nav > li:first-child > a,
.current-menu-item:not(.menu-item-type-custom) > a,
.current-menu-ancestor:not(.menu-item-type-custom) > a,
.current-menu-parent:not(.menu-item-type-custom) > a,
.current-page-ancestor:not(.menu-item-type-custom) > a {
    color: var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
}

body.home .navbar-nav > li:first-child > a:hover,
.current-menu-item:not(.menu-item-type-custom) > a:hover,
.current-menu-ancestor:not(.menu-item-type-custom) > a:hover,
.current-menu-parent:not(.menu-item-type-custom) > a:hover,
.current-page-ancestor:not(.menu-item-type-custom) > a:hover {
    color: var(--primary-black);
    border-bottom-color: var(--primary-black);
}

.navbar__cta {
    border-radius: 5px;
    display: inline-block;
    background: var(--primary-green);
    color: var(--primary-white);
    padding: 12px 22px;
    font-size: clamp(0.938rem, 1.1vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    margin-left: 16px;
    white-space: nowrap;
    transition: background 0.3s ease-in-out;
    align-self: center;
}

.navbar__cta:hover {
    background: var(--primary-black);
    color: var(--primary-white);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    z-index: 9999;
    display: none;
    min-width: var(--dropdown-min-width, 10rem);
    padding: 0;
    margin: 0;
    background: var(--primary-white);
    list-style: none;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 19px;
    color: var(--primary-black);
    text-transform: initial;
    text-decoration: none;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--gray-light);
    color: var(--primary-black);
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.spinner-border {
    display: inline-block;
    width: var(--spinner-width, 2rem);
    height: var(--spinner-height, 2rem);
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 5px;
    animation: spinner-border 0.75s linear infinite;
}

.hs-slider {
    position: relative;
}

.hs-viewport {
    position: relative;
    overflow: hidden;
}

.hs-track {
    display: flex;
    will-change: transform;
}

.hs-slide {
    flex-shrink: 0;
}

.hs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.hs-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    border: none;
    background: var(--gray-border);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease-in-out;
}

.hs-dot.active {
    background: var(--gray-dark);
}

.hs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-black);
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    backdrop-filter: blur(4px);
    border-radius: 5px;
}

.hs-arrow svg {
    width: 22px;
    height: 22px;
    display: block;
}

.hs-arrow:hover {
    background: var(--primary-green);
    color: var(--primary-white);
}

.hs-arrow-prev { left: 16px; }
.hs-arrow-next { right: 16px; }

.paticka {
    background: var(--gray-light);
}

.paticka__obsah {
    padding: 50px 0 40px;
}

.paticka__flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.paticka__socialni {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.paticka__soclink {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-white);
    border: 1px solid #ddd;
    color: var(--primary-black);
    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease-in-out;
    text-decoration: none;
    flex-shrink: 0;
}

.paticka__soclink:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--primary-white);
    transform: translateY(-2px);
}

.paticka__soclink svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    display: block;
}

.paticka__spodni {
    background: var(--primary-white);
    padding: 14px 0;
}

.paticka__copyright {
    font-size: clamp(0.763rem, 0.9vw, 0.813rem);
    color: var(--gray-mid);
    margin: 0;
    text-align: center;
}

.paticka__copyright a {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease-in-out;
}

.paticka__copyright a:hover {
    color: var(--primary-green);
}

.main {
    padding: 50px 0;
    min-height: 79vh;
}

.wp-block-separator {
    width: 90px;
    height: 4px;
    background-color: var(--primary-green);
    margin-top: 10px;
    margin-bottom: 10px;
    border: none !important;
    float: left;
}

.has-text-align-left   { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right  { text-align: right; }

.page__obsah p,
.single__obsah p,
.podstrana__obsah p,
.kontakt__text p {
    display: block;
    margin: 0 0 1em;
}

.page__obsah .aligncenter,
.single__obsah .aligncenter,
.podstrana__obsah .aligncenter,
.kontakt__text .aligncenter {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.page__obsah figure,
.single__obsah figure,
.podstrana__obsah figure,
.kontakt__text figure {
    margin: 1em 0;
}

.baner {
    width: 100%;
    overflow: hidden;
}

.baner__slider {
    width: 100%;
}

.baner__slide {
    position: relative;
    width: 100%;
}

.baner__slide img {
    width: 100%;
    height: clamp(400px, 31.25vw, 800px);
    max-height: 80vh;
    object-fit: cover;
    display: block;
}

.baner__tlacitko {
    border-radius: 5px;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: var(--primary-white);
    padding: 14px 36px;
    font-weight: 700;
    font-size: clamp(0.938rem, 1.1vw, 1rem);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.3s ease-in-out;
}

.baner__tlacitko:hover {
    background: var(--primary-white);
    color: var(--primary-black);
}

.hp-boxy {
    padding: 70px 0;
}

.hp-boxy__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    width: 100%;
}

.hp-box {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    width: 100%;
    margin: 0 auto;
    gap: 15px;
    min-width: 0;
}

.hp-box__uryvky-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.hp-box__uryvek-item {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px;
    flex: 1;
    min-height: 0;
}

.hp-box__uryvek-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.hp-box__uryvek-item:hover img {
    transform: scale(1.02);
}

.vypis-overlay {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.vypis-overlay__polozka {
    border-radius: 5px;
    overflow: hidden;
    flex: 1;
}

.hp-box .vypis-overlay__polozka {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hp-box .vypis-overlay__karta {
    flex: 1;
}

.vypis-overlay__karta {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 4 / 3;
    border-radius: 5px;
}

.vypis-overlay__pozadi,
.vypis-overlay__karta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
    backface-visibility: hidden;
    will-change: transform;
}

.vypis-overlay__karta:hover .vypis-overlay__pozadi,
.vypis-overlay__karta:hover img {
    transform: scale(1.06);
}

.vypis-overlay__prebal {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    gap: 5px;
}

.vypis-overlay__datum {
    font-size: clamp(0.638rem, 0.75vw, 0.68rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-green);
}

.vypis-overlay__nadpis {
    font-size: clamp(0.938rem, 1.1vw, 1rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary-white);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sekce--text-o-nas {
    padding: 50px 0 70px;
    background: var(--primary-white);
}

.sekce--text-o-nas .sekce__nadpis--o-nas {
    font-size: clamp(1.35rem, 1.9vw, 1.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-green);
    margin: 0 0 24px;
}

.sekce--text-o-nas .sekce__obsah {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    font-size: clamp(0.938rem, 1.1vw, 1rem);
    line-height: 1.8;
    color: var(--gray-dark);
}

.sekce--text-o-nas .sekce__obsah p {
    margin-bottom: 1.2em;
}

.sekce--text-o-nas .sekce__foto {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    align-self: stretch;
}

.sekce--text-o-nas .sekce__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1199px) {
    .hp-boxy { padding-bottom: 10px; }
    .sekce--text-o-nas { padding-top: 10px; }

    .sekce--text-o-nas .sekce__obsah {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hp-boxy__grid {
        grid-template-columns: 1fr;
    }
}

.page__obsah {
    font-size: clamp(1.05rem, 1.3vw, 1.188rem);
    line-height: 1.7;
    color: var(--gray-dark);
    padding-bottom: 100px;
    min-height: 80vh;
}

.page__obsah a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease-in-out;
}

.page__obsah a:hover {
    opacity: 0.7;
}

.page__komentare {
    margin-top: 50px;
}

.entry-title {
    font-weight: 600;
    font-size: clamp(1.6rem, 2vw, 1.875rem);
    margin-bottom: 15px;
}

.entry-title a {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease-in-out;
}

.single .entry-title {
    font-size: clamp(1.5rem, 2.1vw, 1.8rem);
    margin-bottom: 15px;
}

.single__header {
    margin-bottom: 30px;
}

.single__meta {
    margin-top: 10px;
    font-size: clamp(0.8rem, 0.92vw, 0.85rem);
}

.single__date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    color: var(--primary-black);
}

.single__date svg {
    color: var(--primary-black);
    flex-shrink: 0;
}

.single__obsah {
    font-size: clamp(1.05rem, 1.3vw, 1.188rem);
    line-height: 1.8;
    color: var(--gray-dark);
    margin: 30px 0;
}

.single__obsah a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease-in-out;
}

.single__obsah a:hover {
    opacity: 0.7;
}

.single__obsah img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.single__footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.single__button {
    display: inline-block;
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease-in-out;
}

.single__button:hover {
    border-bottom-color: var(--primary-black);
}

.single__komentare {
    margin-top: 50px;
}

.podstrana__obsah {
    font-size: clamp(0.938rem, 1.1vw, 1rem);
    line-height: 1.7;
    color: var(--gray-dark);
    margin-bottom: 50px;
    overflow: hidden;
}

.podstrana__komentare {
    margin-top: 50px;
}

.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination a,
.pagination .current,
.pagination span:not(.current) {
    display: inline-block;
    color: var(--primary-black);
    text-decoration: none;
    font-size: clamp(0.75rem, 0.88vw, 0.8rem);
    font-weight: 600;
    padding: 5px 10px;
    margin: 3px;
    background: var(--gray-light);
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.pagination a:hover {
    background: var(--primary-green);
    color: var(--primary-white);
    border-color: var(--primary-green);
}

.pagination .current {
    background: var(--primary-green);
    color: var(--primary-white);
    border-color: var(--primary-green);
}

.komentare {
    max-width: 720px;
    margin: 0 auto 80px;
}

.komentare__nadpis {
    font-size: clamp(1.2rem, 1.7vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-green);
    display: inline-block;
}

.komentare__seznam {
    list-style: none;
    padding: 0;
    margin: 0 0 50px;
}

.komentare__polozka {
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

.komentare__polozka:last-child {
    border-bottom: none;
}

.komentare__polozka .children {
    list-style: none;
    padding-left: 40px;
    margin: 0;
    border-left: 3px solid #f0f0f0;
}

.komentare__hlavicka {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.komentare__avatar img {
    border-radius: 5px;
    display: block;
}

.komentare__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.komentare__autor {
    font-weight: 700;
    font-size: clamp(0.888rem, 1.05vw, 0.95rem);
}

.komentare__datum {
    font-size: clamp(0.75rem, 0.88vw, 0.8rem);
    color: var(--gray-text);
}

.komentare__akce {
    display: flex;
    gap: 12px;
    font-size: clamp(0.75rem, 0.88vw, 0.8rem);
}

.komentare__akce a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.komentare__akce a:hover {
    color: var(--primary-green);
}

.komentare__text {
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: clamp(0.888rem, 1.05vw, 0.95rem);
    line-height: 1.7;
    color: var(--gray-dark);
}

.komentare__text p {
    margin: 0 0 0.75em;
}

.komentare__cekajici {
    font-size: clamp(0.8rem, 0.92vw, 0.85rem);
    color: var(--gray-text);
    font-style: italic;
    margin-bottom: 8px;
}

.komentare__zavreny {
    font-size: clamp(0.85rem, 1vw, 0.9rem);
    color: var(--gray-text);
    margin-bottom: 30px;
}

.komentare__strankovani {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    font-size: clamp(0.85rem, 1vw, 0.9rem);
}

.komentare__strankovani a {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

.komentare__strankovani a:hover {
    color: var(--primary-green);
}

.komentare__formular h3,
.komentare__formular #reply-title {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.komentare__formular #reply-title .small {
    font-size: clamp(0.75rem, 0.88vw, 0.8rem);
    font-weight: 400;
    margin-left: 10px;
}

.komentare__pole-skupina {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.komentare__pole-skupina label {
    font-size: clamp(0.825rem, 0.95vw, 0.875rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.komentare__pole-skupina label .required {
    color: var(--primary-green);
    margin-left: 2px;
}

.komentare__pole-skupina input[type="text"],
.komentare__pole-skupina input[type="email"],
.komentare__pole-skupina textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    font-size: clamp(0.938rem, 1.1vw, 1rem);
    font-family: var(--font-sans-serif);
    transition: border-color 0.3s ease-in-out;
    background: var(--primary-white);
    box-sizing: border-box;
}

.komentare__pole-skupina input:focus,
.komentare__pole-skupina textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.komentare__pole-skupina textarea {
    resize: vertical;
    min-height: 140px;
}

.komentare__poznamka {
    font-size: clamp(0.75rem, 0.88vw, 0.8rem);
    color: var(--gray-text);
    margin: 0;
}

.komentare__formular .submit,
.komentare__formular #submit {
    border-radius: 5px;
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    padding: 12px 32px;
    font-size: clamp(0.825rem, 0.95vw, 0.875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    font-family: var(--font-sans-serif);
    transition: background 0.3s ease-in-out;
}

.komentare__formular .submit:hover,
.komentare__formular #submit:hover {
    background: var(--primary-green);
}

#respond {
    background: var(--gray-light);
    padding: 20px;
    width: 100%;
    margin-top: 50px;
    border-radius: 5px;
}

.comment-reply-title {
    margin-top: 0;
}

.logged-in-as {
    font-size: clamp(0.8rem, 0.92vw, 0.85rem);
    color: var(--gray-mid);
    margin-bottom: 16px;
}

.logged-in-as a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.comment-reply-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

div.wpcf7 {
    max-width: 800px;
    width: 100%;
}

.wpcf7-form-control {
    background: var(--gray-light);
    transition: all 0.3s ease-in-out;
    font-weight: 400;
    font-family: var(--font-sans-serif);
    border-radius: 5px;
}

.wpcf7-text,
.wpcf7-quiz,
.wpcf7-textarea {
    border: 2px solid transparent;
    border-bottom: 2px solid var(--primary-black);
    width: 100%;
    border-radius: 5px;
}

.wpcf7-text {
    height: 40px;
}

.wpcf7-textarea {
    min-height: 120px;
}

.wpcf7-form-control:focus,
.wpcf7-form-control:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.wpcf7-submit {
    background: var(--primary-green);
    padding: 15px 25px;
    color: var(--primary-white);
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    font-family: var(--font-sans-serif);
}

.wpcf7-submit:hover {
    background: var(--primary-black);
}

.wpcf7-spinner {
    display: none;
}

.wpcf7.submitting .wpcf7-spinner {
    display: inline-block;
}

div.wpcf7-response-output {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 15px !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    background: #c0392b !important;
    border: 2px solid #c0392b !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 4px !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #4aaa28 !important;
    border: 2px solid #4aaa28 !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 4px !important;
}

.wpcf7 form.spam .wpcf7-response-output {
    background: #92400e !important;
    border: 2px solid #92400e !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 4px !important;
}

.kontakt__wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
    padding: 20px 0;
}

.kontakt__nadpis {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.kontakt__text {
    font-size: clamp(0.938rem, 1.1vw, 1rem);
    line-height: 1.7;
    color: var(--gray-dark);
    margin-bottom: 32px;
}

.kontakt__perex {
    font-size: clamp(0.938rem, 1.1vw, 1rem);
    line-height: 1.6;
    margin-bottom: 20px;
}

.kontakt__socialni {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kontakt__soclink {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 600;
    font-size: clamp(0.888rem, 1.05vw, 0.95rem);
    padding: 10px 14px;
    border-radius: 5px;
    background: var(--gray-light);
    transition: background 0.3s ease-in-out, color 0.1s ease-in-out;
}

.kontakt__soclink:hover {
    background: var(--primary-green);
    color: var(--primary-white);
}

.kontakt__soclink svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.kontakt__formular .wpcf7 {
    background: var(--gray-light);
    border-radius: 5px;
    padding: 36px;
}

.kontakt__formular .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kontakt__formular .wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kontakt__formular label {
    font-size: clamp(0.738rem, 0.85vw, 0.78rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-black);
    display: block;
}

.kontakt__formular input[type=text],
.kontakt__formular input[type=email],
.kontakt__formular input[type=tel],
.kontakt__formular textarea,
.kontakt__formular select {
    width: 100%;
    padding: 12px 14px;
    font-size: clamp(0.888rem, 1.05vw, 0.95rem);
    font-family: var(--font-sans-serif);
    color: var(--primary-black);
    background: var(--primary-white);
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-sizing: border-box;
    margin-top:5px;
}

.kontakt__formular input[type=text]:focus,
.kontakt__formular input[type=email]:focus,
.kontakt__formular input[type=tel]:focus,
.kontakt__formular textarea:focus,
.kontakt__formular select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(90, 196, 48, 0.12);
    outline: none;
}

.kontakt__formular textarea {
    min-height: 140px;
    resize: vertical;
}

.kontakt__formular input[type=submit] {
    align-self: flex-start;
    background: var(--primary-green);
    color: var(--primary-white);
    border: none;
    border-radius: 5px;
    padding: 13px 28px;
    font-size: clamp(0.85rem, 1vw, 0.9rem);
    font-weight: 700;
    font-family: var(--font-sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.kontakt__formular input[type=submit]:hover {
    background: var(--primary-green-hover);
    transform: translateY(-1px);
}

.kontakt__formular .wpcf7-not-valid-tip {
    font-size: clamp(0.738rem, 0.85vw, 0.78rem);
    font-weight: 600;
    color: var(--color-error);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: none;
    letter-spacing: 0;
}

.kontakt__formular .wpcf7-not-valid-tip::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background: var(--color-error);
    color: var(--primary-white);
    border-radius: 50%;
    font-size: clamp(0.613rem, 0.7vw, 0.65rem);
    font-weight: 700;
}

.kontakt__formular input.wpcf7-not-valid,
.kontakt__formular textarea.wpcf7-not-valid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

.kontakt__formular .wpcf7-response-output {
    margin-top: 12px;
    padding: 14px 18px;
    border-radius: 5px;
    font-size: clamp(0.825rem, 0.95vw, 0.88rem);
    font-weight: 600;
    border: none;
}

.kontakt__formular .wpcf7-mail-sent-ok {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border-left: 4px solid #38a169;
}

.kontakt__formular .wpcf7-mail-sent-ng,
.kontakt__formular .wpcf7-aborted {
    background: var(--color-error-bg);
    color: var(--color-error);
    border-left: 4px solid #c53030;
}

.kontakt__formular .wpcf7-spam-blocked {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border-left: 4px solid #f59e0b;
}

.patkove {
    font-family: var(--font-display);
    font-weight: 300;
}

.patkove .entry-title {
    font-family: var(--font-display);
}

.typewritter {
    font-family: var(--font-mono);
}

.typewritter .entry-title {
    font-family: var(--font-mono);
}

.uzky {
    width: 80%;
    margin: 0 auto;
}

@media (min-width: 576px)  { .container, .container-uzky { max-width: 540px; } }
@media (min-width: 768px)  { .container, .container-uzky { max-width: 720px; } }
@media (min-width: 992px)  { .container, .container-uzky { max-width: 960px; } }
@media (min-width: 1200px) { .container, .container-uzky { max-width: 1140px; } }
@media (min-width: 1400px) { .container, .container-uzky { max-width: 1320px; } }
@media (min-width: 1600px) { .container { max-width: 1600px; } }
@media (min-width: 2000px) {
    body.home .container { max-width: min(80%, 3260px); }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        height: auto !important;
        overflow: visible;
        transition: none;
        flex: 1;
        justify-content: flex-end;
    }

    .navbar-expand-lg .navbar-nav {
        display: flow-root;
        max-width: clamp(470px, 36.1vw, 530px);
        margin-left: 0;
    }

    .navbar-expand-lg .navbar-nav > .menu-item {
        float: left;
        margin: 0 5px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0 0 0.25rem 1rem;
        display: block !important;
        overflow: hidden;
        height: 0;
        transition: height 0.3s ease-in-out;
    }

    .navbar-collapse .dropdown-menu.show {
        height: auto;
    }

    .navbar-collapse .menu-item {
        margin: 0;
    }

    .navbar-collapse .navbar-nav {
        padding: 8px 0 12px;
    }

    .navbar-collapse .nav-link {
        display: block;
        padding: 10px 3px;
        font-size: 15px;
        border-bottom: none;
        border-top: 1px solid #efefef;
        border-left: 3px solid transparent;
        text-align: center;
    }

    .navbar-collapse .nav-link:first-child {
        border-top: none;
    }

    .navbar-collapse .nav-link:hover {
        color: var(--primary-green);
        border-bottom: none;
    }

    body.home .navbar-collapse .navbar-nav > li:first-child > .nav-link,
    .navbar-collapse .current-menu-item:not(.menu-item-type-custom) > .nav-link,
    .navbar-collapse .current-menu-ancestor:not(.menu-item-type-custom) > .nav-link,
    .navbar-collapse .current-menu-parent:not(.menu-item-type-custom) > .nav-link,
    .navbar-collapse .current-page-ancestor:not(.menu-item-type-custom) > .nav-link {
        color: var(--primary-green);
        border-bottom: none;
        border-left-color: var(--primary-green);
    }

    .navbar-collapse .dropdown-item {
        padding: 8px 16px;
        font-size: 14px;
    }

    .navbar__cta {
        display: block;
        margin: 12px 0 8px;
        text-align: center;
        padding: 12px;
    }

    .vypis-overlay {
        grid-template-columns: repeat(2, 1fr);
    }

    .baner__slide img {
        aspect-ratio: 1 / 1;
        height: auto;
    }
}

@media (max-width: 860px) {
    .kontakt__wrap {
        grid-template-columns: 1fr;
        gap: 40px;
        padding:0 0 20px 0;
    }
}

@media (max-width: 768px) {
    .baner__tlacitko {
        bottom: 16px;
        padding: 10px 24px;
        font-size: 0.875rem;
    }

    .single .entry-title {
        font-size: 1.8rem;
    }

    .single__meta {
        font-size: 0.85rem;
    }

    .uzky {
        width: 100%;
    }

    .sekce {
        padding: 2.5rem 0;
    }

    .sekce--text-o-nas {
        padding-top: 10px;
    }

    .hp-boxy {
        padding: 40px 0 10px;
    }

    .paticka__obsah {
        padding: 30px 0 24px;
    }

    .page__obsah {
        padding-bottom: 50px;
    }

    .komentare {
        margin-top: 30px;
    }
    .logo__img{
        height:50px;
    }
}

@media (max-width: 767px) {
    .hp-boxy__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .kontakt__formular .wpcf7 {
        padding: 15px;
    }

    .vypis-overlay {
        grid-template-columns: 1fr;
    }

    .komentare__polozka .children {
        padding-left: 16px;
    }
}

.darkmode-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-black);
    background: var(--primary-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
    color: var(--primary-white);
    padding: 0;
}

.darkmode-toggle:hover {
    opacity: 0.8;
}

.darkmode-toggle svg {
    width: 18px;
    height: 18px;
}

.darkmode-toggle__sun  { display: none; }
.darkmode-toggle__moon { display: block; }

body.darkmode .darkmode-toggle {
    background: #e8e8e8;
    border-color: #e8e8e8;
    color: #121212;
}

body.darkmode .darkmode-toggle:hover {
    opacity: 0.8;
}

body.darkmode .darkmode-toggle__moon { display: none; }
body.darkmode .darkmode-toggle__sun  { display: block; }

body.darkmode {
    --primary-black: #e8e8e8;
    --primary-white: #121212;
    --gray-light: #1e1e1e;
    --gray-text: #aaa;
    --link-color: #e8e8e8;
    --link-hover-color: var(--primary-green);
    --navbar-bg: #1a1a1a;
    --navbar-floating-bg: #1a1a1a;
    --navbar-floating-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    background: #121212;
    color: #e8e8e8;
    transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
}

body.darkmode .page__obsah,
body.darkmode .single__obsah,
body.darkmode .komentare__text,
body.darkmode .kontakt__text {
    color: #e8e8e8;
}

body.darkmode .entry-title,
body.darkmode .single__date,
body.darkmode .komentare__autor,
body.darkmode .komentare__datum {
    color: #e8e8e8;
}

body.darkmode .dropdown-menu {
    background: #1e1e1e;
    border-color: #333;
}

body.darkmode .dropdown-item:hover {
    background: #2a2a2a;
}

body.darkmode img {
    opacity: 0.8;
}

body.darkmode .logo__img {
    filter: invert(1);
    opacity: 1;
}

body.darkmode .paticka {
    background: #1a1a1a;
}

body.darkmode .paticka__soclink {
    border-color: #444;
}

body.darkmode .paticka__copyright {
    color: #aaa;
}

body.darkmode .komentare__pole-skupina input,
body.darkmode .komentare__pole-skupina textarea,
body.darkmode .wpcf7-form input,
body.darkmode .wpcf7-form textarea {
    background: #1e1e1e;
    color: #e8e8e8;
    border-color: #444;
}

