/*!
Theme Name: jakubcesek
Author: kodio.cz
Description: Description
Version: 1.0.0
Text Domain: jakubcesek
*/

/* Fonts*/

/* latin-ext */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url('assets/fonts/plusjakartasans-italic-latin-ext.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;
}

/* latin */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url('assets/fonts/plusjakartasans-italic-latin.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;
}

/* latin-ext */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('assets/fonts/plusjakartasans-normal-latin-ext.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;
}

/* latin */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('assets/fonts/plusjakartasans-normal-latin.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;
}

/* END Fonts*/


html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

main {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
    border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
    display: none;
}

.edit-link {
    display: none;
}

:root {
    scroll-behavior: smooth;
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

[id] {
    scroll-margin-top: 140px;
}

@media (min-width: 768px) {
    body.admin-bar {
        margin-top: 32px;
    }
}

@media(max-width: 767px) {
    html {
        overflow-x: hidden;
    }

    #wpadminbar {
        display: none;
    }

    .duvody-space {
        display: none;
    }

    .admin-bar #swipebox-overlay {
        top: 0 !important;
    }
}

.readmore-content {
    max-height: 192px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.readmore-content.expanded {
    max-height: 1000px;
}

.readmore-toggle {
    display: inline-block;
    margin-top: 10px;
    color: #87ba41;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.readmore-toggle:hover {
    color: #7aaa38;
}

.grecaptcha-badge {
    display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
    color: #191D14;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-optical-sizing: auto;
    font-size: 1rem;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
}

h2 {
    color: #0D0D0D;
    font-size: 45px;
    line-height: 1.4em;
    margin-top: 0;
}

p {
    margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
    font-style: italic;
}

blockquote {
    margin: 0 1.5em;
}

address {
    margin: 0 0 1.5em;
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch", courier, monospace;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code,
kbd,
tt,
var {
    font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

@media (max-width: 767px) {

    body,
    button,
    input,
    select,
    optgroup,
    textarea {
        font-size: 14px;
    }

    h2 {
        font-size: 32px;
    }
}

/* Elements
--------------------------------------------- */
body {
    background: #fff;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

ul,
ol {
    margin: 0 0 1.5em 3em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li>ul,
li>ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

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

figure {
    margin: 1em 0;
}

table {
    margin: 0 0 1.5em;
    width: 100%;
}

/* Links
--------------------------------------------- */
a {
    color: #4169e1;
}

a:visited {
    color: #800080;
}

/* a:hover,
a:focus,
a:active {
	color: #191970;
} */

:focus-visible {
    outline: none;
}

a:focus {
    outline: none;
}

a:hover,
a:active {
    outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 1px solid;
    border-color: #ccc #ccc #bbb;
    border-radius: 3px;
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
    padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: #111;
}

select {
    border: 1px solid #ccc;
}

textarea {
    width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

.vc_column_container>.vc_column-inner {
    /* padding-left: 0 !important;
	padding-right: 0 !important; */
}

.vc_row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.vc_row.wpb_row>.wpb_column>.vc_column-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
}



/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Content
--------------------------------------------- */

.wpb-content-wrapper {
    max-width: 1300px !important;
    margin: auto !important;
    padding: 0 20px 0 20px !important;
}

/* Navigation
--------------------------------------------- */

.site-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    padding: 12px 55px;
    padding-right: 13px;
    box-shadow: 0px 2px 16px 6px #0000001F;
    background-color: #fff;
}

/* Dynamický shrink-on-scroll — na všech desktopech (≥992px), včetně velkých displejů.
   Mobil (≤991px) má vlastní layout. */
@media (min-width: 992px) {
    .site-header {
        transition:
            padding 0.25s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.25s ease,
            background-color 0.25s ease,
            backdrop-filter 0.25s ease;
    }

    .site-header.scrolled {
        padding-top: 7px;
        padding-bottom: 7px;
        padding-left: 36px;
        padding-right: 10px;
        box-shadow: 0px 4px 16px 2px rgba(0, 0, 0, 0.12);
        background-color: rgba(255, 255, 255, 0.94);
        backdrop-filter: saturate(180%) blur(8px);
        -webkit-backdrop-filter: saturate(180%) blur(8px);
    }
}

.site-title {
    margin: 0;
}

.site-title a {
    color: #000;
    font-weight: 900;
    font-size: 24px;
    text-decoration: none;
}

@media (min-width: 992px) {
    .site-title a {
        transition: font-size 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .site-header.scrolled .site-title a {
        font-size: 20px;
    }

    .site-branding,
    .custom-logo-link {
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: left center;
    }

    .site-header.scrolled .custom-logo-link {
        transform: scale(0.9);
    }
}

.main-navigation {
    display: block;
    /* width: 100%; */
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation ul ul {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    float: left;
    position: absolute;
    top: 100%;
    left: -999em;
    z-index: 99999;
}

.main-navigation ul ul ul {
    left: -999em;
    top: 0;
}

.main-navigation ul ul li:hover>ul,
.main-navigation ul ul li.focus>ul {
    display: block;
    left: auto;
}

.main-navigation ul ul a {
    width: 200px;
}

.main-navigation ul li:hover>ul,
.main-navigation ul li.focus>ul {
    left: auto;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    color: #434939;
    transition: .3s ease-in-out;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .main-navigation a {
        transition: color .3s ease-in-out, font-size 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .site-header.scrolled .main-navigation a {
        font-size: 13.5px;
    }
}

.main-navigation a:hover {
    color: #87BA41;
}

.main-navigation li.current-menu-item a {
    color: #87BA41;
}

.navigation-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

@media (min-width: 992px) {
    .navigation-right {
        transition: gap 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .site-header.scrolled .navigation-right {
        gap: 18px;
    }
}

header#masthead.sticky {
    position: sticky;
    /* z-index 100+ — sekce obsahu mají občas position:relative bez z-indexu
       (např. .contact-image-holder s `left: -100px`), které by jinak sahaly
       přes sticky header. Vysoká hodnota + isolation: isolate zaručí, že
       header zůstane vždy na vrchu stackingu. */
    z-index: 100;
    isolation: isolate;
    top: 0;
}

/* Small menu. */

@media screen and (min-width: 992px) {

    header#masthead.sticky {
        top: 25px;
    }

    .menu-toggle {
        display: none;
    }

    .main-navigation ul {
        display: flex;
        gap: 30px;
    }

}

@media (min-width: 992px) {
    .main-navigation ul {
        transition: gap 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .site-header.scrolled .main-navigation ul {
        gap: 20px;
    }

    /* Auto-hide on scroll-down, show on scroll-up.
       JS přepíná `.header-hidden` na #masthead podle směru scrollu. */
    header#masthead {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    header#masthead.header-hidden {
        /* -100% schová celé masthead, -30px navíc překryje top: 25px offset */
        transform: translateY(calc(-100% - 30px));
    }

    /* Užívateli s prefers-reduced-motion vypneme tween — visibility toggle
       proběhne instantně, bez slide animace. */
    @media (prefers-reduced-motion: reduce) {
        header#masthead {
            transition: none;
        }
    }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
    margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle[aria-expanded="false"] .navigation-icon-cross {
    display: none;
}

.menu-toggle[aria-expanded="true"] .navigation-icon-menu {
    display: none;
}

@media (max-width: 991px) {

    header#masthead.sticky {
        position: fixed;
        width: 100%;
    }

    .site-title a {
        font-size: 22px;
    }

    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .main-navigation.toggled li {
        padding: 8px 20px;
    }

    .main-navigation.toggled a {
        font-size: 16px;
        color: #191D14;
        letter-spacing: 0.5px;
        font-weight: 400;
    }

    .menu-primary-container {
        display: none
    }

    .toggled .menu-primary-container {
        position: absolute;
        display: block;
        top: 40px;
        padding-top: 60px;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: white;
        z-index: -1;
    }

    .site-header {
        margin-top: 0;
        border-radius: 40px;
        flex-direction: row-reverse;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        padding: 12px 35px;
    }

    .navigation-cta {
        position: absolute;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .navigation-cta .btn-cta {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .navigation-cta span {
        display: none;
    }

    .site-branding {
        margin-inline: auto;
        position: relative;
        left: -24px;
    }

    header#masthead {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Buttons
--------------------------------------------- */

.btn {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: 100px;
    background: #eee;
    color: #191D14;
    cursor: pointer;
    gap: 8px;
    font-weight: 600;
    transition: 0.25s ease-in-out;
    letter-spacing: 0.15px;
    border: 0;
    text-decoration: none;
}

a.btn:visited {
    color: #191D14;
}

.btn:active {
    transform: scale(0.98);
}

.btn.btn-primary {
    background: #87BA41;
    border: 1px solid #8bbe43;
}

.btn.btn-primary:hover {
    background: #8bbe4394;
    border: 1px solid #8bbe43;
}

.btn.btn-secondary {
    background: transparent;
    border: 1px solid #8bbe43;
}

.btn.btn-secondary:hover {
    background: #87ba411d;
}

.btn-cta {
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    align-items: center;
    border: none;
    border-radius: 100px;
    background: #87BA41;
    border: 1px solid #87BA41;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease-in-out;
}

@media (min-width: 992px) {
    .site-header.scrolled .btn-cta {
        padding: 10px 18px;
        font-size: 13.5px;
    }
}

.btn-cta.open-contact-modal {
    animation: phoneShake 1s ease-in-out;
}

.btn-cta.open-contact-modal:hover .navigation-cta-icon {
    animation: phoneShakeGentle 1s ease-in-out;
}

.btn-cta.open-contact-modal:hover {
    background: #8bbe4394;
    border: 1px solid #8bbe43;
}

@keyframes phoneShakeGentle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-10deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(10deg);
    }
}


.navigation-cta-icon {
    color: #2B4700;
}

.btn.with-arrow {
    white-space: nowrap;
}

.btn.with-arrow svg {
    transition: 0.3s ease-in-out;
}

.btn.with-arrow:hover svg {
    transform: translateX(4px);
}

.btn-inner {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 460px) {
    .btn {
        padding: 10px 16px;
    }
}

/* Posts and pages
--------------------------------------------- */

.sticky {
    display: block;
}

.type-page {
    margin: 0 0 1.5em;
}

.updated:not(.published) {
    display: none;
}

.admin-bar .page-content,
.admin-bar .entry-content,
.admin-bar .entry-summary,
.admin-bar #primary {
    margin: 45px 0 0;
}

.page-content,
.entry-content,
.entry-summary,
#primary {
    margin-top: 80px;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

.entry-title {
    display: none;
}

/* Základní typografie a layout pro běžné stránky (GDPR, Privacy, právní texty).
   Wrapper .wpb-content-wrapper dodává vnější šířku; obsah uvnitř omezíme na
   čitelnou míru (~820px) a vycentrujeme — dlouhé právní texty se přes celou
   šířku špatně čtou. Platí vždy, nezávisle na ID stránky. */
.page-content {
    max-width: 820px;
    margin-inline: auto;
    padding-bottom: 80px;
    color: #434939;
}

/* Hlavní nadpis stránky — centrovaný „hero", oddělený jemnou linkou */
.page-content>h1:first-child,
.page-content .header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    color: #191D14;
    text-align: center;
    margin: 0.2em 0 0.5em;
    letter-spacing: -0.01em;
}

.page-content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    color: #191D14;
    margin: 0 0 0.6em;
}

/* Hlavička sekce stránky (.header) — podnadpis pod h1 + spodní linka */
.page-content .header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e7e9db;
}

.page-content .header .subtitle {
    color: #5a6650;
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0;
}

/* H2 — sekční nadpis s krátkým zeleným podtržítkem */
.page-content h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    color: #2c3e1c;
    margin: 2em 0 0.6em;
    padding-bottom: 12px;
    position: relative;
}

.page-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: #87BA41;
}

.page-content h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    color: #2c3e1c;
    margin: 1.5em 0 0.4em;
}

.page-content h4 {
    font-size: 1.1rem;
    line-height: 1.35;
    color: #2c3e1c;
    margin: 1.2em 0 0.4em;
}

.page-content p,
.page-content li {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #434939;
}

.page-content p {
    margin: 0 0 1em;
}

/* Seznamy — vlastní zelené odrážky */
.page-content ul,
.page-content ol {
    margin: 0 0 1.3em 0;
    padding: 0;
    list-style: none;
}

.page-content li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.6em;
}

.page-content ul>li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #87BA41;
}

/* Číslované seznamy — zelená čísla */
.page-content ol {
    counter-reset: jc-ol;
}

.page-content ol>li {
    counter-increment: jc-ol;
}

.page-content ol>li::before {
    content: counter(jc-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #87BA41;
}

.page-content a {
    color: #5a7a2a;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.page-content a:hover {
    color: #87BA41;
}

.page-content strong {
    color: #2c3e1c;
}

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

@media (max-width: 767px) {
    .page-content h1 {
        font-size: 1.9rem;
    }

    .page-content h2 {
        font-size: 1.4rem;
    }

    .page-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 991px) {

    .admin-bar .page-content,
    .admin-bar .entry-content,
    .admin-bar .entry-summary {
        margin: 0.9em 0 0;
    }

    .page-content,
    .entry-content,
    .entry-summary {
        margin: 1.5em 0 0;
    }
}

@media (max-width: 767px) {

    .admin-bar .page-content,
    .admin-bar .entry-content,
    .admin-bar .entry-summary {
        margin: 3.5em 0 0;
    }

    .page-content,
    .entry-content,
    .entry-summary {
        margin: 7em 0 0;
    }
}

/* Comments
--------------------------------------------- */
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
    margin: 0 0 1.5em;
}

.widget select {
    max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
    display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

/* Modal
--------------------------------------------- */

body.modal-opened {
    overflow-y: hidden;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1B1C1CBF;
    backdrop-filter: blur(4px);
    z-index: 99999;
    /* Centrování přes flex (ne transform), aby uvnitř fungoval position:fixed toast */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* jQuery .fadeIn() nastaví display:block — pro vycentrování potřebujeme flex */
.modal[style*="display: block"],
.modal[style*="display:block"] {
    display: flex !important;
}

.modal .modal-content {
    /* Soft brand-tinted gradient — nevtíravý, ale prolomí "korporátní bílou". */
    background:
        radial-gradient(circle at 0% 0%, rgba(135, 186, 65, 0.10) 0%, transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(135, 186, 65, 0.08) 0%, transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fbfdf6 100%);
    border-radius: 40px;
    padding: 45px 40px 35px;
    display: flex;
    flex-direction: column;
    width: 75%;
    position: relative;
    overflow: hidden;
    /* Vlastní stacking context, aby dekorativní ::before (z-index:-1) za fotkou
       zůstalo uvnitř karty a nepropadlo za bílé pozadí. */
    isolation: isolate;
    max-height: 90vh;
    max-width: 1100px;
    /* Decentní brand glow shadow — víc premium než plochá nula. */
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(135, 186, 65, 0.18);
    border: 5px solid #87BA41
}

/* Dekorativní SVG ornament v horním pravém rohu — subtle, brand-tinted dots
   pattern, podobně jako kalkulačka sekce. Neagresivní, nevtíravý. */
.modal .modal-content::after {
    content: "";
    position: absolute;
    top: 20px;
    right: -40px;
    width: 240px;
    height: 240px;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' viewBox='0 0 240 240'%3E%3Ccircle cx='120' cy='120' r='8' fill='%2387BA41' fill-opacity='.16'/%3E%3Ccircle cx='60' cy='60' r='5' fill='%2387BA41' fill-opacity='.20'/%3E%3Ccircle cx='180' cy='60' r='6' fill='%2387BA41' fill-opacity='.18'/%3E%3Ccircle cx='40' cy='180' r='4' fill='%2387BA41' fill-opacity='.22'/%3E%3Ccircle cx='200' cy='200' r='10' fill='%2387BA41' fill-opacity='.14'/%3E%3Ccircle cx='100' cy='200' r='3' fill='%2387BA41' fill-opacity='.26'/%3E%3Ccircle cx='220' cy='120' r='5' fill='%2387BA41' fill-opacity='.20'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

/* Zajistit, aby modal-body obsah seděl nad dekoracemi.
   POZN: .modal-close má `position: absolute` ze své defaultní stylu —
   NESMÍME to přepsat na relative (jinak zmizí z pravého horního rohu). */
.modal .modal-body {
    position: relative;
    z-index: 2;
}

.modal .modal-close {
    z-index: 3;
}

.modal .modal-body {
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 18px;
    display: flex;
    justify-content: end;
    cursor: pointer;
}

.modal-close svg {
    position: relative;
}

@media (min-width: 992px) {
    .modal .modal-body h2 {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .modal .modal-content {
        width: 90%;
    }
}

@media (max-width: 767px) {
    .modal {
        width: 100%;
        height: 100dvh;
    }

    body.modal-opened {
        overflow: hidden;
        /* position: fixed; */
    }

    .modal .modal-content {
        width: 95%;
    }

    .modal-close {
        right: 21px;
        top: 21px;
    }

    .modal-contact-wrapper h2 {
        font-size: 24px;

    }
}

/* Galleries
--------------------------------------------- */
.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

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

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
    display: block;
}

/* Pills
--------------------------------------------- */

.pills-row {
    display: flex;
    gap: 10px;
}

.pill {
    padding: 6px 16px;
    background-color: #87BA4129;
    border-radius: 16px;
    font-size: 14px;
    letter-spacing: 0.1px;
    font-weight: 500;
    line-height: 20px;
}

/* Headings
--------------------------------------------- */

.subheading {
    font-size: 22px;
    color: #426900;
    line-height: 28px;
}

@media (max-width: 767px) {
    .subheading {
        font-size: 16px;
    }
}

/* Hero
--------------------------------------------- */

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 48px;
}

.hero-text-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 48px;
    background: #F3F5E7;
    border-radius: 40px;
    box-shadow: 0px 5px 12px 0px rgba(161, 214, 90, 0.15);
    /* gap: 100px; */
}

.hero-text-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(135, 186, 65, 0.5) 0%, rgba(195, 201, 180, 0.3) 94.72%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-text-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 10%;
    width: 361px;
    height: 351px;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position-x: right;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='361' height='351' fill='none' viewBox='0 0 361 351'%3E%3Cpath fill='%23434939' fill-opacity='.05' d='m388.181 307.377-27.526-61.625c-5.135-11.503-17.255-18.898-30.812-18.898h-32.867c2.465-6.984 2.465-14.585-.411-21.774-2.054-5.341-8.011-7.806-13.352-5.752s-7.806 8.012-5.752 13.352c1.233 3.287.822 6.779-1.027 9.655s-5.135 4.519-8.422 4.519H123.193c-3.492 0-6.573-1.643-8.422-4.519-1.848-2.876-2.259-6.368-1.027-9.655l24.65-61.625c1.644-3.903 5.341-6.368 9.449-6.368h27.115c5.752 0 10.271-4.519 10.271-10.27 0-5.752-4.519-10.271-10.271-10.271h-27.115c-12.735 0-23.828 7.6-28.553 19.309L94.64 205.08c-2.875 6.984-2.875 14.79-.41 21.774H61.363c-13.557 0-25.472 7.395-30.812 18.898L3.024 307.377c-4.109 9.039-3.287 19.31 2.26 27.732 6.162 9.449 16.638 14.995 28.552 14.995H172.7c8.833 0 16.844-3.081 23.006-8.627 6.163 5.34 14.174 8.627 23.007 8.627h138.862c11.709 0 22.39-5.546 28.553-14.995 5.546-8.422 6.368-18.488 2.259-27.732zM195.5 290.122l-19.104-42.726h38.208zm-11.709 33.894c-2.259 3.492-6.573 5.546-11.298 5.546H33.632c-4.725 0-9.039-2.054-11.298-5.546-1.233-1.849-2.26-4.724-.616-8.217l27.525-61.625c1.85-4.108 6.574-6.778 11.915-6.778h83.81c5.34 0 10.065 2.67 11.914 6.778l27.526 61.625c1.643 3.493.41 6.368-.617 8.217m184.875 0c-2.259 3.492-6.573 5.546-11.298 5.546H218.507c-4.725 0-9.039-2.054-11.298-5.546-1.233-1.849-2.26-4.724-.616-8.217l27.525-61.625c1.849-4.108 6.574-6.778 11.915-6.778h83.81c5.34 0 10.065 2.67 11.914 6.778l27.526 61.625c1.643 3.493.41 6.368-.617 8.217'/%3E%3Cpath fill='%23434939' fill-opacity='.05' d='M257.125 144.687c-16.639 0-30.813-9.449-30.813-20.541 0-5.752-4.519-10.271-10.27-10.271-5.752 0-10.271 4.519-10.271 10.271 0 19.925 17.666 36.359 41.083 40.261V175.5c0 5.752 4.519 10.271 10.271 10.271s10.271-4.519 10.271-10.271v-11.093c23.417-3.902 41.083-20.336 41.083-40.261 0-22.596-23.007-41.084-51.354-41.084-16.639 0-30.813-9.449-30.813-20.541s14.174-20.542 30.813-20.542 30.812 9.45 30.812 20.542c0 5.751 4.52 10.27 10.271 10.27s10.271-4.519 10.271-10.27c0-19.926-17.666-36.359-41.083-40.262V11.167c0-5.752-4.519-10.271-10.271-10.271s-10.271 4.519-10.271 10.27V22.26c-23.417 3.903-41.083 20.336-41.083 40.262 0 22.596 23.006 41.083 51.354 41.083 16.639 0 30.812 9.449 30.812 20.542 0 11.092-14.173 20.541-30.812 20.541'/%3E%3C/svg%3E");
}

.hero-img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    padding-right: 20px;
    max-height: calc(100dvh - 230px);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-weight: 800;
    font-size: 42px;
    line-height: 1.3em;
    margin: 0;
}

ul.services-list {
    padding-left: 0;
    margin-left: 0;
    list-style: none;
}

ul.services-list li {
    position: relative;
    font-size: 28px;
    font-weight: bold;
    padding-left: 20px;
    margin-bottom: 10px;
}

ul.services-list li a {
    color: #191D14;
    text-decoration: none;
}

ul.services-list li::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    background-color: #87BA41;
    font-weight: bold;
    border-radius: 100%;
    width: 10px;
    height: 10px;
}

.hero-buttons-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-img {
    position: relative;
}

.hero-img-wrapper::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background-color: #87ba41;
    z-index: -1;
    border-radius: 60px;
}

.hero-img-wrapper img {
    display: block;
    height: 100% !important;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
}

.hero-wrapper {
    display: flex;
    flex-wrap: wrap;
}

/* Wrapper inside flex parent: flex item by default shrink-to-fit. Bez tohoto
   `.wpb-content-wrapper` se zmenšil na šířku svého obsahu místo aby zaplnil
   1300px max-width — proto byly hero karty užší než header pill / „O mně" atd. */
.hero-wrapper>.wpb-content-wrapper {
    width: 100%;
    flex: 1 1 100%;
}

.hero-cards-wrapper-outer>.wpb_column:first-child>.vc_column-inner {
    padding-left: 0 !important;
}

.hero-cards-wrapper-outer>.wpb_column:last-child>.vc_column-inner {
    padding-right: 0 !important;
}

.hero-grid .cards-row {
    display: none;
}

.hero-wrapper .wpb_content_element {
    margin-bottom: 0;
}

.hero-text,
.services-list,
.hero-buttons-row {
    z-index: 1;
}

@media (max-width: 1300px) {
    .hero-grid {
        /* max-height: 110dvh; */
    }
}

@media (min-width: 1280px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-text {
        font-size: 37px;
        margin-bottom: 15px;

    }
}


@media screen and (min-width: 992px) and (max-width: 1250px) {
    .hero-text {
        font-size: 37px;
        gap: 6px;
    }
}

@media (min-width: 992px) {
    .hero-text span {
        display: block;
        max-width: 265px;
    }
}

/* === MacBook / kompaktní desktop sweetspot (992–1599px) ===
   Default `.hero-text-wrapper { padding: 30px 48px }` a font 42px působí na MBA/MBP
   13"/14" trochu prostorově neefektivně — text se láme na 3 řádky, fotka se
   ořezává kvůli max-height: 100dvh-230px. Tighter typografie + dech v paddingu. */
@media (min-width: 992px) and (max-width: 1599px) {
    .hero-grid {
        grid-column-gap: 32px;
    }

    .hero-text-wrapper {
        padding: 26px 36px;
        border-radius: 32px;
    }

    .hero-text-wrapper::before {
        border-radius: 32px;
    }

    .hero-text {
        font-size: 36px;
        gap: 6px;
        line-height: 1.25em;
    }

    .hero-text span {
        max-width: 100%;
    }

    ul.services-list li::before {
        width: 8px;
        height: 8px;
    }

    .hero-buttons-row {
        gap: 8px;
        margin-top: 4px;
    }

    .hero-buttons-row .btn {
        padding: 12px 20px;
        font-size: 14.5px;
    }

    /* Fotka — dej jí celistvost, nepořezávej zbytečně. Headroom proti hlavičce
       (header + section margin) je menší než na velkých monitorech. */
    .hero-img-wrapper {
        padding-right: 12px;
        max-height: calc(100dvh - 180px);
    }

    .hero-img-wrapper::before {
        border-radius: 48px;
    }
}

/* Užší sweetspot pro MacBook 13" Air (1280–1440px, často kratší výška ~800px) —
   ještě o ston tighter aby celý hero fitnul nad fold. */
@media (min-width: 1280px) and (max-width: 1440px) {
    .hero-text {
        font-size: 34px;
    }

    .hero-text-wrapper {
        padding: 22px 32px;
    }
}

@media (max-width: 991px) {

    .hero-grid {
        display: flex;
        flex-direction: column;
        max-height: unset;
        gap: 70px;
    }

    .hero-text {
        font-size: 36px;
    }

    .hero-text-wrapper {
        order: 0;
        gap: 35px;
    }

    .hero-grid .cards-row {
        order: 3;
        position: relative;
        top: -35px;
    }

    .hero-img-wrapper {
        order: 1;
        padding-right: 60px;
        position: relative;
        top: -50px;
        max-height: 100%;
        min-height: 214px;
    }

    .hero-wrapper {
        gap: 20px
    }

    .hero-wrapper .wpb_content_element {
        margin-bottom: 0 !important;
    }

    .hero-img-wrapper::before {
        height: 75%;
        bottom: 0px;
        border-radius: 32px;
    }

    .hero-img-wrapper img {
        width: 450px;
        float: unset;
        height: auto !important;
        position: relative;
        left: 12%;
        bottom: 0;
    }

    ul.services-list {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .hero-text {
        font-size: 30px;
    }

    .hero-img-wrapper img {
        width: 230px;
        left: 19%;
        bottom: -5px;
    }

    ul.services-list {
        margin-bottom: 10px;
    }

    ul.services-list li {
        font-size: 24px;

    }

    .hero-text-wrapper {
        padding: 24px;
        gap: 18px;
    }

    .hero-text-wrapper::after {
        width: 280px;

    }
}

@media (max-width: 600px) {
    .hero-buttons-row {
        flex-direction: column;
    }

    .hero-buttons-row br {
        display: none;
    }

    .hero-buttons-row .btn {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
}

/* Iphone fix */
@media only screen and (min-device-width: 414px) and (max-device-width: 896px) and (-webkit-min-device-pixel-ratio: 3) {
    .hero-img-wrapper img {
        bottom: -6px;
    }
}


.hero-wrapper>.wpb_column {
    align-self: flex-end;
}

/* Card
--------------------------------------------- */

.cards-row {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
}

.cards-row.columns-3>.card {
    width: 33.333333%;
    margin-right: 15px;
}

.cards-row.columns-3>.card:last-child {
    margin-right: 0;
}

.card {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    border-radius: 40px;
    outline: 1px solid #c3c9b43d;
    padding: 32px;
    padding-top: 24px;
    gap: 15px;
    background-color: #e7e9db6e;
}

.card.hoverable,
.hoverable {
    transition: background .2s ease-in-out;
    border: 1px solid transparent;
    box-shadow: 0px 5px 12px 0px rgba(161, 214, 90, 0.15);
}

.card.hoverable:hover,
.hoverable:hover {
    background: #87BA4129;
    outline: none;
}

.card p {
    margin: 0;
}

.card .card-title {
    font-size: 22px;
    font-weight: 700;
}

.card .card-icon {
    background: #87ba41;
    border-radius: 100px;
    padding: 0px;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card:hover .card-icon svg {
    animation: iconWiggle 0.5s ease-in-out;
}


@keyframes iconWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

.card.in-view .card-icon svg {
    animation: iconWiggleInView 1.5s ease-in-out;
}


@keyframes iconWiggleInView {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* 
.card.in-view {
	animation: iconBgPulse 1.5s ease-in-out;
}

.card.in-view:nth-child(1) {
	animation-delay: 0s;
}

.card.in-view:nth-child(2) {
	animation-delay: 0.2s;
}

.card.in-view:nth-child(3) {
	animation-delay: 0.4s;
}

.card.in-view:nth-child(4) {
	animation-delay: 0.6s;
}

@keyframes iconBgPulse {

	0% {
		background-color: #e7e9db6e;
	}

	100% {
		background-color: #87BA4129;
	}
}

*/
.duvody-slider .card:nth-child(3) .card-icon svg {
    width: 40px;
}

/* Klikatelné karty služeb + CTA "Mám zájem" ----------------------------- */
.service-card {
    cursor: pointer;
    position: relative;
}

.service-card:focus-visible {
    outline: 2px solid #87BA41;
    outline-offset: 3px;
}

/* CTA na spodku karty — odsazené dolů, ať jsou karty zarovnané */
.service-card .service-cta {
    margin-top: auto;
    padding-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #5a7a2a;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .2s ease, color .2s ease;
}

.service-card .service-cta svg {
    width: 18px;
    height: 18px;
    transition: transform .25s ease;
}

/* Na dotykových zařízeních hover není — CTA ukaž vždy */
@media (hover: hover) {
    .service-card .service-cta {
        opacity: 0;
    }

    .service-card:hover .service-cta,
    .service-card:focus-visible .service-cta {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (hover: none) {
    .service-card .service-cta {
        opacity: 1;
        transform: none;
    }
}

.service-card:hover .service-cta svg {
    transform: translateX(4px);
}

/* Trust signály v modalu */
.modal-trust {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #434939;
}

.modal-trust svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #87BA41;
}

.blank-card {
    background-color: #EDEFE1;
    outline: none;
    position: relative;
    width: 100%;
    flex: 1 1 0;
    display: flex;
}

.blank-card img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: unset;
}

.slick-slider .card .card-icon,
.slick-slider .card .card-title {
    margin-bottom: 16px;
}

.slick-slider .card {
    height: 250px;
}

.cards-row .slick-list {
    padding-top: 10px !important;
    margin-inline: -10px;
    overflow: visible;
}

.cards-row .slick-slide {
    margin-inline: 10px;
    box-sizing: border-box;
}

@media (max-width: 991px) {}

@media (max-width: 767px) {
    .cards-row {
        flex-direction: column;
        gap: 10px;
    }

    .cards-row.columns-3>.card {
        margin-right: 0;
        width: 100%;
    }

    .blank-card img {
        position: static;
        top: unset;
        left: unset;
        transform: unset;
        width: 80%;
        max-width: unset;
    }

    .blank-card .blank-card-inner {
        display: flex;
        justify-content: center;
    }
}

/* Swiperbox */

#swipebox-overlay {
    background: #0d0d0dbd;
}

#swipebox-bottom-bar,
#swipebox-top-bar {
    background: #87ba41;
}

.nivo-lightbox-theme-default .nivo-lightbox-close {
    background-image: url(https://www.jakubcesek.cz/wp-content/plugins/responsive-lightbox/assets/swipebox/img/icons.svg) !important;
    background-position: 15px 12px !important;
    background-repeat: no-repeat;
    border: none !important;
    text-decoration: none !important;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

@media (-webkit-min-device-pixel-ratio: 1.3),
(-o-min-device-pixel-ratio: 2.6/2),
(min--moz-device-pixel-ratio: 1.3),
(min-device-pixel-ratio: 1.3),
(min-resolution: 1.3dppx) {
    .nivo-lightbox-theme-default .nivo-lightbox-close {
        background-image: url(close@2x.png);
        background-size: unset !important;
    }
}

.nivo-lightbox-content,
.nivo-lightbox-overlay {
    /* position: fixed; */
    overflow: hidden;
}

.nivo-lightbox-body-effect-fade {}

/* Stats
--------------------------------------------- */




@media (min-width: 1600px) {
    #stats::after {
        width: calc(100% + 300px);
        left: -150px;
    }
}

@media (max-width: 1400px) {
    #stats::after {
        width: 100%;
        left: 0;
    }
}

#stats::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(135, 186, 65, 0.5) 0%, rgba(195, 201, 180, 0.3) 94.72%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

#stats {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    background: linear-gradient(#F3F5E7, #F3F5E7) padding-box, linear-gradient(85deg, rgba(135, 186, 65, 0.5) 0%, rgba(195, 201, 180, 0.0) 94.72%) border-box;
    border: 1px solid transparent;
    border-radius: 40px;
    padding-block: 50px;
    margin-top: 100px;
    width: calc(100vw - 10%);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 5px 12px 0px rgba(161, 214, 90, 0.15);
}


#stats>.vc_col-sm-12 {
    max-width: 1300px;
    margin-inline: auto;
}

/* Stats grid — explicitně, ať nezávisí na Tailwind purge buildu */
.stats-row .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.stat-card .stat-value {
    font-size: 45px;
    color: #87BA41;
    font-weight: 800;
}

@media (max-width: 1200px) {
    #stats {
        width: calc(100vw - 25%);
    }
}

@media (max-width: 991px) {
    #stats {
        margin-top: 50px;
        width: 100%;
    }
}

@media (max-width: 767px) {

    /* Žádný vnější box kolem stats — jen samostatné karty pod sebou.
       Ruší se i flex, posun (translateX) a gradientový rámeček (::before).
       padding-inline: 20px zaručí odstup karet od obou okrajů i kdyby vnitřní
       wrapper padding selhal (karty se dřív lepily na pravý okraj). */
    #stats {
        display: block;
        background: unset !important;
        border: none;
        padding: 0 20px;
        margin-top: 0;
        margin-bottom: 35px;
        width: 100%;
        max-width: 100%;
        left: auto;
        transform: none;
        box-shadow: none;
        box-sizing: border-box;
    }

    /* Vnitřní wrapper už padding nepotřebuje (řeší ho #stats výše) — jinak by
       se 20px sčítalo a karty byly zbytečně úzké. */
    #stats>.wpb-content-wrapper {
        padding-inline: 0 !important;
    }

    #stats::before,
    #stats *::before,
    #stats *::after {
        content: unset;
    }

    /* Karty pod sebou na plnou šířku */
    .stats-row .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        width: 100%;
        margin-bottom: 0 !important;
        /* Plné pozadí + okraj místo border-box gradientu — ten na mobilu
           občas nedokreslil pravou hranu (background bez pravého okraje). */
        background: #F3F5E7;
        box-shadow: 0px 5px 12px 0px rgba(161, 214, 90, 0.15);
        border: 1px solid rgba(135, 186, 65, 0.35);
        border-radius: 24px;
        gap: 4px;
        padding: 28px 16px;
    }
}

/* O mně
--------------------------------------------- */
#o-mne {
    position: relative;
    background: linear-gradient(#F3F5E7, #F3F5E7) padding-box, linear-gradient(85deg, rgba(135, 186, 65, 0.5) 0%, rgba(195, 201, 180, 0.0) 94.72%) border-box;
    border: 1px solid transparent;
    box-shadow: 0px 5px 12px 0px rgba(161, 214, 90, 0.15);
}

#o-mne::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(135, 186, 65, 0.5) 0%, rgba(195, 201, 180, 0.3) 94.72%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.o-mne-row {
    background-color: #F3F5E7;
    border-radius: 40px;
    padding: 60px;
    padding-right: 0%;
    position: relative;
    margin-top: 100px;
    scroll-margin-top: 130px;
}

.o-mne-row .o-mne-figure {
    position: absolute;
    right: 0;
    height: calc(100% + 10px);
    top: -10px;
}

.o-mne-row .o-mne-figure::before {
    content: "";
    position: absolute;
    right: 65%;
    top: 7%;
    width: 307px;
    height: 299px;
    background-repeat: no-repeat;
    background-position-x: right;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='297' height='297' fill='none' viewBox='0 0 297 297'%3E%3Cpath fill='%23434939' fill-opacity='.05' d='M148.5.854C67.062.854.854 67.062.854 148.5S67.062 296.146 148.5 296.146c11.034 0 22.069-1.244 32.793-3.73 4.196-.933 6.838-5.129 5.906-9.325s-5.129-6.838-9.325-5.906a126.4 126.4 0 0 1-21.603 2.797v-22.846c0-4.351-3.419-7.771-7.771-7.771s-7.771 3.42-7.771 7.771v22.846c-66.674-3.885-119.982-57.348-123.867-123.867h22.846c4.352 0 7.771-3.419 7.771-7.77 0-4.352-3.42-7.771-7.77-7.771H16.861C20.747 73.9 74.21 20.592 140.729 16.707v22.846c0 4.352 3.419 7.77 7.771 7.77s7.771-3.418 7.771-7.77V16.707c69.16 4.04 124.333 61.545 124.333 131.638 0 4.351 3.419 7.77 7.771 7.77s7.771-3.419 7.771-7.77C296.146 66.906 229.938.699 148.5.699z'/%3E%3Cpath fill='%23434939' fill-opacity='.05' d='M241.75 187.354c12.589 0 23.312 7.149 23.312 15.542 0 4.352 3.42 7.771 7.771 7.771 4.352 0 7.771-3.419 7.771-7.771 0-15.075-13.366-27.509-31.083-30.462v-8.392c0-4.352-3.419-7.771-7.771-7.771s-7.771 3.419-7.771 7.771v8.392c-17.717 2.953-31.083 15.387-31.083 30.462 0 17.096 17.406 31.083 38.854 31.083 12.589 0 23.312 7.149 23.312 15.542 0 8.392-10.723 15.542-23.312 15.542s-23.313-7.15-23.313-15.542c0-4.352-3.419-7.771-7.77-7.771-4.352 0-7.771 3.419-7.771 7.771 0 15.075 13.366 27.509 31.083 30.462v8.392c0 4.352 3.419 7.771 7.771 7.771s7.771-3.419 7.771-7.771v-8.392c17.717-2.953 31.083-15.387 31.083-30.462 0-17.096-17.407-31.083-38.854-31.083-12.589 0-23.313-7.15-23.313-15.542 0-8.393 10.724-15.542 23.313-15.542M148.499 94.104c-4.351 0-7.771 3.42-7.771 7.771v42.429l-43.205 28.752c-3.575 2.331-4.507 7.149-2.176 10.724 1.554 2.175 3.885 3.419 6.527 3.419 1.554 0 2.953-.467 4.352-1.244l46.625-31.083c2.176-1.399 3.419-3.885 3.419-6.527V101.72c0-4.352-3.419-7.771-7.771-7.771z'/%3E%3C/svg%3E");
    animation: floatDiag 6s ease-in-out infinite;
}

.o-mne-row .o-mne-figure img {
    opacity: 0;
    transform: translateY(30px);
    transition: all 3s ease;
}

.o-mne-figure img.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.o-mne-row .o-mne-figure {
    margin: 0;
}

.o-mne-row .o-mne-figure>img {
    position: relative;
    top: 1px;
    height: 100%;
    width: auto;
    max-width: unset;
    z-index: 0;
    display: block;
}

@media (min-width: 1200px) {
    .o-mne-row .o-mne-figure>img {
        left: -20px;
    }
}

/* 992–1199px (tablet landscape / kompaktní desktop)
   Fotka zůstává vpravo (anchored bottom), ale leží ZA textem — text má vyšší
   z-index a zůstává plně čitelný. Tím se vyřeší překryv (dřív fotka přebíjela
   text), aniž bychom fotku museli zmenšit do poloviny šířky. */
@media (min-width: 992px) and (max-width: 1199px) {
    .o-mne-row .grid {
        position: relative;
    }

    .o-mne-row .o-mne-text {
        position: relative;
        z-index: 2;
        /* text nepřesáhne do pravé poloviny, kde sedí fotka */
        max-width: 60%;
    }

    .o-mne-row .o-mne-figure {
        position: absolute;
        right: 0;
        top: 50px;
        bottom: 0;
        height: calc(100% + 10px);
        width: auto;
        margin: 0;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        z-index: 1;
        pointer-events: none;
    }

    .o-mne-row .o-mne-figure::before {
        right: 50%;
        top: 0;
        /* width: 200px;
        height: 200px; */
    }

    .o-mne-row .o-mne-figure>img {
        position: relative;
        top: auto;
        left: auto;
        right: 0;
        height: 100%;
        width: auto;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: right bottom;
    }
}

@media screen and (min-width: 992px) {
    #o-mne .o-mne-text {
        padding-right: 15px;
    }
}

@media screen and (max-width: 991px) {
    .o-mne-row {
        padding: 45px 45px 0px 45px
    }

    #o-mne .o-mne-text {
        margin-bottom: 35px;
    }

    .o-mne-row .o-mne-figure {
        position: relative;
    }

    .o-mne-figure>img {
        /* width: 100% !important; */
        height: auto;
        right: 0 !important;
        top: unset;
        left: 0;
    }

    .o-mne-row .o-mne-figure::before {
        right: -25px;
    }

}

@media (max-width: 767px) {
    #o-mne {
        margin-top: 50px;
    }

    .o-mne-row .o-mne-figure {
        position: relative;
        bottom: 0;
        right: unset;
        left: unset;
        transform: none;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .o-mne-figure>img {
        position: relative;
        left: 0;
        right: 0;
        margin-inline: auto;
        width: auto;
        max-width: 100%;
        height: auto;
    }

    .o-mne-row .o-mne-figure>img {
        width: 100% !important;
        top: 10px;
    }

    .o-mne-row .o-mne-figure::before {
        width: 150px;
        height: 150px;
        background-size: contain;
    }

    .wpb_single_image {
        margin-bottom: 0 !important;
    }

    .o-mne-row {
        scroll-margin-top: 65px;
    }
}

@media (max-width: 567px) {
    .o-mne-row .o-mne-figure::before {
        right: -58px;
    }
}

@media (max-width: 460px) {
    .o-mne-row .o-mne-figure>img {
        width: 100% !important;
        max-width: 320px;
        left: 0 !important;
    }
}

/* Slick slider
--------------------------------------------- */

.slick-next.slick-arrow,
.slick-prev.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #87BA41;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 40px;
    width: 50px;
    z-index: 1;
    transition: 0.25s ease-in-out;
}


.slick-next:hover svg {
    animation: arrowRight 0.8s ease-in-out infinite;
}

.slick-prev:hover svg {
    animation: arrowLeft 0.8s ease-in-out infinite;
}

@keyframes arrowRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

@keyframes arrowLeft {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-4px);
    }
}

.slick-next.slick-arrow {
    right: 0;
}

.slick-prev.slick-arrow {
    left: 0;
    transform: translateY(-50%) rotate(180deg);
}

.slick-dots {
    position: absolute;
    bottom: -10px;
    display: flex;
    transform: translateX(-50%);
    list-style: none;
    padding-left: 0;
    left: 50%;
    gap: 10px;
    margin-left: 0;
}

.slick-dots button {
    width: 12px;
    height: 12px;
    font-size: 0;
    color: transparent;
    border: 0;
    border-radius: 100px;
    background: #87BA414D;
    cursor: pointer;
}

.slick-dots .slick-active button {
    background: #87BA4180;
}

/* Proč spolupracovat se mnou
--------------------------------------------- */

#duvody {
    margin-top: 120px;
}

#duvody h2 {
    margin-bottom: 40px;
}

#duvody .wpb_content_element {
    margin-bottom: 0 !important;
}


@media screen and (max-width: 991px) {
    #duvody {
        margin-top: 100px;
    }

    .duvody-slider {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 767px) {
    #duvody {
        margin-top: 70px;
    }
}

@media screen and (max-width: 567px) {
    .duvody-slider {
        grid-template-columns: 1fr;
    }
}

/* Certifikaty
--------------------------------------------- */

#certifikace {
    scroll-margin-top: 120px;
    margin-top: 100px;
}

.certifikaty-slider .slick-list {
    padding: 20px !important;
    margin-inline: -10px;
    padding-right: 0;
}

#certifikace .slick-initialized .slick-slide {
    display: flex;
    align-items: center;
}

.certifikaty-slider .slick-track {
    display: flex !important;
}

.certifikaty-slider .slick-slide {
    height: inherit !important;
    display: flex;
    align-items: center;
}

.certifikat-item {
    padding-inline: 25px;
    padding-block: 4px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0px 2px 6px 2px #00000012;
    margin-inline: 10px;
    transition: opacity 0.5s ease-in-out;
}

.certifikaty-slider .slick-dots {
    bottom: -30px;
}

@media (min-width: 768px) {
    #certifikace .vc_col-sm-4 {
        padding-right: 15px;
    }

    .certifikat-item[aria-hidden="true"] {
        opacity: 0 !important;
    }

    .certifikaty-slider .slick-list {
        margin-right: 40px;
    }

    .certifikaty-slider .slick-dots {
        margin-left: -20px;
    }
}

@media (max-width: 767px) {

    #certifikace {
        margin-top: 50px;
        scroll-margin-top: 10px;
    }

    .certifikaty-slider .slick-list {
        overflow: visible;
    }

    .certifikat-item {
        height: 260px !important;
    }

    .certifikat-item img {
        width: auto;
        margin: 0 auto;
    }
}

/* Testimonials
--------------------------------------------- */

#reference {
    margin-top: 120px;
    scroll-margin-top: 120px;
    background: linear-gradient(#F3F5E7, #F3F5E7) padding-box, linear-gradient(85deg, rgba(135, 186, 65, 0.5) 0%, rgba(195, 201, 180, 0.0) 94.72%) border-box;
    border: 1px solid transparent;
    border-radius: 40px;
    padding-block: 50px;
    margin-top: 55px;
    width: calc(100vw - 10%);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 5px 12px 0px rgba(161, 214, 90, 0.15);
    overflow: hidden;
}

#reference>.vc_col-sm-12 {
    max-width: 1300px;
    margin-inline: auto;
    float: unset;
    padding-inline: 15px;
}

#reference::before,
#reference::after,
#reference>.vc_col-sm-12::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='428' height='428' fill='none' viewBox='0 0 428 428'%3E%3Cpath stroke='%23434939' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='.05' stroke-width='16.5' d='M213.929 214h.142m71.102 0h.16m-142.666 0h.16m249.506-7.722c0 94.214-79.857 170.594-178.333 170.594a186.5 186.5 0 0 1-34.508-3.174c-8.185-1.552-12.269-2.319-15.122-1.873-2.854.428-6.92 2.586-15.016 6.884a115.92 115.92 0 0 1-75.328 11.716 94.5 94.5 0 0 0 19.385-41.872c1.783-9.452-2.64-18.636-9.273-25.359-30.032-30.531-48.471-71.655-48.471-116.916 0-94.213 79.857-170.611 178.333-170.611s178.333 76.398 178.333 170.611'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    z-index: -1;
    animation: floaty 6s ease-in-out infinite;
}



#reference::before {
    left: -110px;
    top: -25px;
    animation: floatY 5s ease-in-out infinite;
}

#reference::after {
    right: 0;
    top: 48%;
    animation: floatX 7s ease-in-out infinite;
}

#reference>.vc_col-sm-12::before {
    width: 300px;
    height: 300px;
    background-size: contain;
    right: -9%;
    top: -204px;
    animation: floatDiag 6s ease-in-out infinite;
}


/* Vertikální pohyb */
@keyframes floatY {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Horizontální pohyb */
@keyframes floatX {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Diagonální pohyb */
@keyframes floatDiag {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-15px, -15px);
    }

    100% {
        transform: translate(0, 0);
    }
}


#reference.testimonials-row {
    /* display: flex; */
    background-color: #F3F5E7;
    border-radius: 40px;
    padding: 70px;
    position: relative;
    margin-top: 120px;
    scroll-margin-top: 120px;
}

.testimonials-wrapper {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
}

.testimonial-item {
    flex: 1 1 0;
    display: flex !important;
    /* Slider same height */
}

.testimonial-inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.testimonial-item:last-child {
    margin-right: 0;
}

.testimonial-item .testimonial-text-wrapper {
    background-color: #E7E9DB;
    padding: 40px 35px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
    min-height: 440px;
    transition: 0.3s background-color ease-in-out;
    /*height: 100%;   Slider same height  */
}

.testimonial-item.slick-center .testimonial-text-wrapper {
    transition: 0.3s background-color ease-in-out;
    background-color: #E2ECCC;
}

.testimonial-item .testimonial-text-wrapper:hover svg {
    animation: bubbleFloat 2s ease-in-out infinite;
}


@keyframes bubbleFloat {

    0% {
        transform: scale(1.00);
    }


    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1.0);
    }
}


.testimonial-item:not(.slick-center) .testimonial-text-wrapper:hover {
    background-color: #d8ddbb;
}

.testimonial-item.slick-center .testimonial-text-wrapper::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background-color: #E2ECCC;
    transform: translateX(-50%) rotate(45deg);
}

.testimonial-item .testimonial-text-wrapper p {
    margin: 0;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.testimonial-item .testimonial-text-wrapper .testimonial-icon {
    background-color: #87BA41;
    border-radius: 100px;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-item .person-detail-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.testimonial-item .person-detail-wrapper img {
    display: none;
    width: 70px;
    height: 70px;
    border-radius: 100px;
    object-fit: cover;
}

.testimonial-item .person-detail-inner {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.testimonial-item .person-detail-inner .person-name {
    font-size: 16px;
    letter-spacing: 0.15px;
    font-weight: 500;
    color: #191D14;
    text-align: center;
}

.testimonial-item .person-detail-inner .job-title {
    letter-spacing: 0.25px;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
}

.testimonials-row .slick-track {
    display: flex !important;
}

.testimonials-row .slick-slide {
    height: inherit !important;
}

.testimonials-row .slick-next {
    right: -65px;
}

.testimonials-row .slick-prev {
    left: -65px;
}

.testimonials-row .slick-list {
    margin-inline: -10px;
}

.testimonials-row .slick-slide {
    margin-inline: 10px;
    box-sizing: border-box;
}

.testimonials-row .slick-current svg {
    animation: bubbleFloat 2s ease-in-out infinite;
}

.testimonials-wrapper .slick-dots {
    bottom: -55px;
}


@media (max-width: 991px) {
    #reference {
        width: 100%;
    }
}

@media (min-width: 768px) {}

@media (max-width: 767px) {
    #reference.testimonials-row {
        margin: 50px auto 0;
        padding: 30px 0;
        padding-bottom: 60px;
        scroll-margin-top: 35px;
        width: 90%;
        max-width: 90%;
        border-radius: 24px;
        /* Zrušení desktopového posunu — bez toho zůstává left:50% +
           translateX(-50%) a pozadí se posune doleva / přeteče vpravo. */
        left: auto;
        transform: none;
    }

    #reference>.vc_col-sm-12 {
        padding-inline: 0px;
    }

    .testimonial-inner {
        max-width: calc(100% - 60px);
        margin-inline: auto
    }

    .testimonials-row {
        margin-top: 0;
        scroll-margin-top: 65px;
    }

    #reference::before,
    #reference::after {
        width: 290px;
        height: 290px;
        background-size: cover;
    }

    #reference::after {
        top: 54%;
    }

    #reference>.vc_col-sm-12::before {
        width: 150px;
        height: 150px;
        top: 15px;
        background-size: cover;
    }
}

/* Služby
--------------------------------------------- */

.sluzby-row {
    margin-top: 120px;
    scroll-margin-top: 140px;
}

.cards-row.sluzby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.sluzby-grid.slick-slider .card,
.sluzby-grid.slick-slider .blank-card {
    height: 350px;
}

/* Efekt na target */
#financni-planovani:target,
#investice:target,
#pojisteni:target,
#uvery:target,
#hypoteky:target {
    animation: jumpHighlight 3s ease-in-out;
}

@keyframes jumpHighlight {
    0% {
        transform: translateY(0);
        background-color: #87ba4169;
    }

    30% {
        transform: translateY(-10px);
        background-color: #87ba4169;
    }

    60% {
        transform: translateY(0);
        background-color: #87ba4169;
    }

    100% {
        transform: translateY(0);
        background-color: #e7e9db6e;
    }
}

@media (max-width: 991px) {
    .sluzby-row {
        margin-top: 100px;
    }

    .cards-row.sluzby-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .cards-row.sluzby-grid .card {
        margin-bottom: 0 !important;
    }

    .blank-card {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 767px) {

    .sluzby-row {
        margin-top: 70px;
        scroll-margin-top: 85px;
    }


}

@media (max-width: 567px) {
    .cards-row.sluzby-grid {
        grid-template-columns: 1fr;
    }
}

.cards-row.sluzby-grid.slick-slider {
    display: block;
}

/* Floating action menu (FAB)
--------------------------------------------- */

.fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fab-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #87BA41 0%, #6a9a2e 100%);
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(135, 186, 65, 0.45);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fab-pulse 2.5s ease-in-out infinite;
}

.fab-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(135, 186, 65, 0.55);
}

.fab-toggle:focus-visible {
    outline: 3px solid rgba(135, 186, 65, 0.5);
    outline-offset: 3px;
}

.fab-toggle:active {
    transform: scale(0.95);
}

@keyframes fab-pulse {

    0%,
    100% {
        box-shadow: 0 12px 30px rgba(135, 186, 65, 0.45), 0 0 0 0 rgba(135, 186, 65, 0.5);
    }

    50% {
        box-shadow: 0 12px 30px rgba(135, 186, 65, 0.45), 0 0 0 14px rgba(135, 186, 65, 0);
    }
}

.fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.fab-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.fab-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

.fab[data-open="true"] .fab-icon-default {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

.fab[data-open="true"] .fab-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.fab[data-open="true"] .fab-toggle {
    animation: none;
}

.fab-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transform-origin: bottom right;
}

.fab[data-open="true"] .fab-actions {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-actions li {
    margin: 0;
}

.fab-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #1f2937;
    border: 1px solid rgba(135, 186, 65, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.fab-action:hover {
    background: #87BA41;
    border-color: #87BA41;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 24px rgba(135, 186, 65, 0.4);
}

.fab-action:hover svg {
    color: #fff !important;
}

.fab-action:focus-visible {
    outline: 2px solid #87BA41;
    outline-offset: 3px;
}

.fab-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.fab-action-icon svg {
    width: 22px;
    height: 22px;
    color: #87BA41;
    transition: color 0.2s ease;
}

.fab-action[data-fab-label]::after {
    content: attr(data-fab-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.fab-action:hover::after,
.fab-action:focus-visible::after {
    opacity: 1;
}

@media (hover: none) {
    .fab-action[data-fab-label]::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .fab {
        right: 16px;
        bottom: 16px;
    }

    .fab-toggle {
        width: 56px;
        height: 56px;
    }

    .fab-icon svg {
        width: 22px;
        height: 22px;
    }

    .fab-action {
        width: 44px;
        height: 44px;
    }

    .fab-action-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .fab-toggle,
    .fab-icon,
    .fab-actions,
    .fab-action {
        animation: none !important;
        transition: none !important;
    }
}

/* Ambient SVG background decorations (front page)
--------------------------------------------- */

.front-page {
    position: relative;
    overflow-x: clip;
}

.bg-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-deco {
    position: absolute;
    display: block;
    background: var(--deco-img) no-repeat center / contain;
    width: 164px;
    height: 164px;
    opacity: 0.9;
}

/* Position, size, rotation, flip and opacity for each .bg-deco are generated
   per-element (random scatter) in template-parts/bg-decorations.php.
   Vertical position is a % of the page height, so the scatter stays spread out
   regardless of how tall the sections render. */

/* Section content needs to sit above the decorations */
.front-page>section,
.front-page>.wpb-content-wrapper {
    position: relative;
    z-index: 1;
}

/* /* Kontaktní sekce výš než ostatní sekce, aby fixed chybový/úspěšný toast
   formuláře nepřekryla následující sekce (loga „S kým spolupracuji").
   Sekce se vizuálně nepřekrývají, takže vyšší z-index nemá vedlejší efekt. 
.front-page>#kontakt {

    /*
    z-index: 100;
}

*/


@media (max-width: 1199px) {

    /* Tablet: shrink the whole layer. `scale` is used (not `transform`) so it
       composes with the inline `transform: rotate()` instead of overriding it. */
    .bg-deco {
        scale: 0.8;
    }
}

@media (max-width: 767px) {

    /* Mobile: thin them out and fade to avoid clutter on small screens. */
    .bg-deco {
        scale: 0.55;
        opacity: 0.5 !important;
    }

    .bg-deco:nth-child(even) {
        display: none;
    }
}

/* Kalkulačky (HP rozcestník)
--------------------------------------------- */

/* Mobilní dropdown (.mobile-switcher-select) zrušen — na mobilu se přepínače
   zobrazují jako tlačítka pod sebou, jednotně se stylem FI scénářů. JS už
   select negeneruje (initMobileSwitchers vypnuto). Pro jistotu ho skryjeme. */
.mobile-switcher-select {
    display: none !important;
}

.kalk-cta {
    width: 100%;
    justify-content: center;
}

.kalk-cta svg {
    transition: 0.3s ease-in-out;
}

.kalk-cta:hover svg {
    transform: translateX(4px);
}

/* FI calc: "Zobrazit detail výpočtu" — secondary inside the green result card */
.result-preview .fi-show-details {
    background: rgba(255, 255, 255, 0.7);
    border-color: #87BA41;
    color: #2B4700;
    padding: 10px 18px;
    font-size: 14px;
}

.result-preview .fi-show-details:hover {
    background: #fff;
}

/* kalk-want inside FI result card — full-width pill with arrow */
.result-preview .kalk-want {
    width: 100%;
    justify-content: center;
}

.result-preview .kalk-want svg {
    transition: 0.3s ease-in-out;
}

.result-preview .kalk-want:hover svg {
    transform: translateX(4px);
}

/* Tabs */
.kalk-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    max-width: max-content;
    margin-inline: auto;
    box-shadow: inset 0 0 0 1px rgba(135, 186, 65, 0.15);
}

/* Tighter gap mezi heading a tabs — nadpis "Finanční kalkulačky" už nese vlastní mb */
#kalkulacky .heading-wrapper {
    margin-bottom: 0;
}

#kalkulacky .heading-wrapper h2 {
    margin-bottom: 0.5rem;
}

.kalk-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 0;
    background: transparent;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #434939;
    letter-spacing: 0.15px;
    transition: color 0.2s ease, box-shadow 0.2s ease;
}

.kalk-tab:hover {
    background: rgba(135, 186, 65, 0.12);
}

.kalk-tab:focus-visible {
    outline: 2px solid #87BA41;
    outline-offset: 3px;
}

.kalk-tab.active {
    background: #87BA41;
    color: #fff;
    box-shadow: 0 4px 14px rgba(135, 186, 65, 0.35);
}

.kalk-tab.active .kalk-tab-icon svg {
    color: #fff !important;
}

/* Mobil: tab-pills (Hypotéka/Půjčka/FI) jako sloupec tlačítek na plnou šířku —
   jednotně se stylem FI scénářů. MUSÍ být ZA base .kalk-tabs/.kalk-tab definicí
   (stejná specificita → rozhoduje pořadí), jinak base radius:100px přebije
   → kontejner „vejce" a aktivní tlačítko přetéká. */
@media (max-width: 767px) {
    .kalk-tabs {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 6px;
        max-width: none;
        width: 100%;
        border-radius: 16px;
        box-sizing: border-box;
    }

    .kalk-tab {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 10px;
        box-sizing: border-box;
    }
}

.kalk-tab-icon {
    display: inline-flex;
    line-height: 0;
}

.kalk-tab-icon svg {
    width: 22px;
    height: 22px;
    transition: 0.25s ease-in-out;
}

/* Panels — grid stacking pattern.
   Cíl: výška panelů je STEJNÁ napříč všemi 3 taby (Hypotéka/Půjčka/FI),
   switching nezpůsobuje layout shift. Margin-top 1rem zároveň dává prostor
   pro box-shadow halo (puntík) aktivního tab pillu, který dřív "neviditelně"
   vyčníval mimo layout.

   Mechanika: všechny panely sdílí jednu grid cell. Cell se přizpůsobí výšce
   nejvyššího panelu. Inactive panely jsou `visibility: hidden + pointer-events
   none`, takže jsou v DOM (zaberou prostor v gridu), ale neviditelné a neklikatelné. */
.kalk-panels {
    margin-top: 1rem;
}

.kalk-want {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

/* Skryté panely úplně mimo tok (display:none) — jinak grid-stack držel výšku
   nejvyššího panelu (FI) i pro Hypotéku/Půjčku → prázdné místo dole.
   Takhle kontejner měří jen aktivní panel a výška je dynamická. */
.kalk-panel {
    display: none;
}

.kalk-panel.active {
    display: block;
    animation: kalk-panel-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes kalk-panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect prefers-reduced-motion across kalkulačka UI */
@media (prefers-reduced-motion: reduce) {

    .kalk-panel.active,
    .kalk-tab,
    .kalk-cta svg,
    .kalk-want svg,
    .result-preview .kalk-want svg {
        animation: none !important;
        transition: none !important;
    }

    .kalk-cta:hover svg,
    .kalk-want:hover svg,
    .result-preview .kalk-want:hover svg {
        transform: none;
    }
}

/* Tweak calculator-box inside section (already styled via calculator.css) */
.kalk-panel .calculator-box {
    margin-top: 0;
}

/* Skeleton while calculator JS+CSS lazy-loads (before assets ready, fi-calc visible
   but unstyled). Hidden once any class is added to a child or after a small delay. */
.kalk-panel:not([data-initialized="1"])::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(243, 245, 231, 0) 0%,
            rgba(243, 245, 231, 0.4) 50%,
            rgba(243, 245, 231, 0) 100%);
    background-size: 200% 100%;
    animation: kalk-shimmer 1.4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.kalk-panel.active.kalk-loading:not([data-initialized="1"]) {
    min-height: 380px;
    position: relative;
}

.kalk-panel.active.kalk-loading:not([data-initialized="1"])::after {
    opacity: 1;
}

@keyframes kalk-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Pozn.: dřívější mobilní .kalk-tabs column override byl odstraněn — na mobilu
   se tab-pills skrývají úplně (viz .kalk-tabs { display:none } výše) a nahrazuje
   je auto-generovaný dropdown (.mobile-switcher-select). */

#kalkulacky.kalkulacky-row {
    position: relative;
    margin: 100px auto 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(135, 186, 65, 0.18) 0%, transparent 30%) padding-box,
        radial-gradient(circle at 100% 100%, rgba(135, 186, 65, 0.14) 0%, transparent 28%) padding-box,
        linear-gradient(#F3F5E7, #F3F5E7) padding-box,
        linear-gradient(85deg, rgba(135, 186, 65, 0.5) 0%, rgba(195, 201, 180, 0.0) 94.72%) border-box;
    border: 1px solid transparent;
    border-radius: 40px;
    padding-block: 40px;
    /* Vizuální edge musí sedět na ROVNĚŽ jako vnitřní karty „O mně" / Hero atd.
       Ty žijí UVNITŘ `.wpb-content-wrapper` (1300 max + 20px padding) — jejich
       visible card edge je 1260px max. Kalkulačka funguje jako celá karta-sekce
       (bez wpb-content-wrapperu okolo), takže max-width: 1260px + 20px breathing
       room na malé viewporty. */
    max-width: 1260px;
    width: calc(100% - 40px);
    box-shadow: 0px 5px 12px 0px rgba(161, 214, 90, 0.15);
    scroll-margin-top: 130px;
    overflow: hidden;
}

.kalkulacky-inner {
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 15px;
    position: relative;
    z-index: 1;
}

/* Decorative accents — abstract sparse dots & a trending line. Subtle, brand-tinted. */
#kalkulacky.kalkulacky-row::before,
#kalkulacky.kalkulacky-row::after {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

#kalkulacky.kalkulacky-row::before {
    width: 320px;
    height: 220px;
    left: 24px;
    top: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220' fill='none' viewBox='0 0 320 220'%3E%3Cpath d='M20 180 L80 130 L140 150 L200 80 L280 40' stroke='%2387BA41' stroke-opacity='.18' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Ccircle cx='80' cy='130' r='5' fill='%2387BA41' fill-opacity='.32'/%3E%3Ccircle cx='140' cy='150' r='5' fill='%2387BA41' fill-opacity='.32'/%3E%3Ccircle cx='200' cy='80' r='5' fill='%2387BA41' fill-opacity='.32'/%3E%3Ccircle cx='280' cy='40' r='7' fill='%2387BA41' fill-opacity='.5'/%3E%3C/svg%3E");
    animation: floatY 6s ease-in-out infinite;
}

#kalkulacky.kalkulacky-row::after {
    width: 240px;
    height: 240px;
    right: 30px;
    bottom: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' viewBox='0 0 240 240'%3E%3Ccircle cx='120' cy='120' r='8' fill='%2387BA41' fill-opacity='.18'/%3E%3Ccircle cx='60' cy='60' r='5' fill='%2387BA41' fill-opacity='.22'/%3E%3Ccircle cx='180' cy='60' r='6' fill='%2387BA41' fill-opacity='.2'/%3E%3Ccircle cx='40' cy='180' r='4' fill='%2387BA41' fill-opacity='.26'/%3E%3Ccircle cx='200' cy='200' r='10' fill='%2387BA41' fill-opacity='.16'/%3E%3Ccircle cx='100' cy='200' r='3' fill='%2387BA41' fill-opacity='.3'/%3E%3Ccircle cx='220' cy='120' r='5' fill='%2387BA41' fill-opacity='.22'/%3E%3C/svg%3E");
    animation: floatDiag 7s ease-in-out infinite;
}

@media (max-width: 1199px) {
    #kalkulacky.kalkulacky-row::before {
        width: 240px;
        height: 160px;
    }

    #kalkulacky.kalkulacky-row::after {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 767px) {
    #kalkulacky.kalkulacky-row {
        margin-top: 50px;
        border-radius: 24px;
        scroll-margin-top: 65px;
        padding-block: 35px;
        width: calc(100% - 30px);
    }

    #kalkulacky.kalkulacky-row::before,
    #kalkulacky.kalkulacky-row::after {
        display: none;
    }
}

/* Samostatná stránka „Finanční kalkulačky" (ID 405): kalkulačka má nahoře
   margin-top 100px, ale dole 0 → nalepená na footer. Doplníme stejnou mezeru
   dole, ať je sekce vzdušná z obou stran. */
.page-id-405 #kalkulacky.kalkulacky-row {
    margin-bottom: 100px;
}

@media (max-width: 767px) {
    .page-id-405 #kalkulacky.kalkulacky-row {
        margin-bottom: 50px;
    }
}

/* Kontakt
--------------------------------------------- */

.contact-row {
    margin-top: 120px;
    scroll-margin-top: 120px;
}

.form-input-row {
    display: flex;
    gap: 15px;
    flex-direction: row;
}

.form-input-row .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
    border: 1px solid #c3c9b4b8;
    border-radius: 16px;
    padding-block: 4px;
    padding-left: 16px;
    /* Explicit white bg — bez tohoto select dědil `background: transparent`
       z pravidla níže a v modalu se zobrazoval brand-tinted gradient pod ním,
       zatímco inputy si držely browser-default bílou. */
    background-color: #fff;
}


.wpcf7 input:focus-visible,
.wpcf7 select:focus-visible,
.wpcf7 textarea:focus-visible,
.wpcf7 input:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover {
    border: 1px solid 1px solid #87ba418a;
    outline: 2px solid #87ba411c;
}

.wpcf7 textarea {
    padding: 16px;
    resize: vertical;
}


.wpcf7 input,
.wpcf7 select {
    height: 56px;
}

.wpcf7 select {
    width: 100%;
    position: relative;
    /* `background: transparent` odstraněno — viz výše. Select nyní matchne inputům. */
}

.wpcf7 select {
    -moz-appearance: none;
    -webkit-appearance: none;
}

.wpcf7 select::-ms-expand {
    display: none;
}

span.gdpr-accept {
    color: rgb(117, 117, 117);
    font-size: 12px;
    margin-top: -15px;
    display: block;
}

span.gdpr-accept a {
    color: rgb(117, 117, 117);
}



.wpcf7 p {
    margin: 0;
    margin-bottom: 15px !important;
}

.wpcf7-not-valid {
    border: 1px solid #dc3232 !important;
}

.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 12px;
    padding-left: 15px;
    margin-top: 5px;
}


.wpcf7-form-control-wrap[data-name="service"]::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml,<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 15.6982L7 10.6982H17L12 15.6982Z" fill="%23434939"/></svg>');
}

.form-input-row p {
    width: 50%;
}

.form-input-row input[name="email"] {
    width: 100%;
}

.form-input-row input[name="phone"] {
    width: 100%;
}

.contact-image-wrapper {
    position: relative;
}

.contact-image-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 100%;
    border-radius: 60px;
    z-index: -1;
    background: #87BA41;
}

.contact-image-holder {
    position: relative;
    left: -100px;
    bottom: -5px;
}

.contact-card-row {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 24px;
    bottom: 10%;
    right: 0;
}

.contact-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid #C3C9B4;
    box-shadow: 0px 2px 16px 6px #0000001F;
    position: relative;
    text-decoration: none;
    color: #434939;
}

.contact-card:hover {
    color: #434939;
}

.contact-card .contact-card-text {
    text-decoration: none;
    font-weight: bold;
}

.contact-card .contact-card-icon {
    width: 80px;
    height: 80px;
    background-color: #87BA41;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
}

.contact-card .contact-card-icon svg {
    width: 50px;
    height: 50px;
}

.contact-card {
    animation: phoneShake 1s ease-in-out;
    transition: background-color 0.3s ease-in-out;
}

.contact-card:hover {
    background: #ffffffde;
}

.contact-card:hover svg {
    animation: phoneShakeGentle 1s ease-in-out;
}

.contact-card p {
    margin: 0;
    height: min-content;
}

.contact-card a {
    font-weight: 600;
    letter-spacing: 0.15px;
    color: #434939;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.wpcf7 form .wpcf7-response-output {
    border-radius: 100px;
    padding: 16px 24px;
    font-weight: 700;
    margin: 2em 0em 1em;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    position: fixed;
    z-index: 99999;
    left: 24px;
    right: auto;
    bottom: 24px;
    border: none;
    background-color: #f34b4b;
    color: #fff;
    box-shadow: 0 12px 32px rgba(243, 75, 75, 0.35);
}

.wpcf7 form.sent .wpcf7-response-output {
    border: none;
    background-color: #87BA41;
    color: #fff;
}

.image-column {
    display: flex;
    justify-content: end;
}

.image-column>.vc_column-inner {
    justify-content: end;
}

.wpcf7 form .btn-submit {
    position: relative;
}

.wpcf7 form .btn-submit:hover svg {
    animation: arrowRight 0.8s ease-in-out infinite;
}

.wpcf7 form .btn-submit .btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wpcf7 form .btn-submit .btn-loader::after {
    content: "";
    display: none;
    border-radius: 10000rem;
    width: 16px;
    height: 16px;
    border-width: 2.5px;
    border-style: solid;
    border-color: #191D14 #191D14 #191D14 transparent;
    animation: loader 1.2s linear infinite;
}

.wpcf7 form .btn-submit::before {
    content: "";
    pointer-events: none;
    position: absolute;
    border-radius: 6px;
    transform: translateY(-100%);
    opacity: 0;
    filter: blur(12px);
    transition: transform .15s ease, opacity .1s ease;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.wpcf7 form.submitting .btn-submit .btn-loader::after {
    display: block;
}

.wpcf7 form.submitting .btn-submit::before {
    opacity: 1;
    transform: translateY(0);
}

.wpcf7 form.submitting .btn-submit .btn-inner {
    transition: transform .15s ease, opacity .1s ease;
}

.wpcf7 form.submitting .btn-submit .btn-inner {
    opacity: 0;
    transform: translateY(100%);
}


@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.wpcf7 .wpcf7-response-output {
    max-width: calc(100% - 40px);
    overflow: hidden;
    transition: none;
}

/* Plovoucí toast (chyba/odeslání) — kompaktní, ukotvený v rohu, ne přes tlačítko */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    position: fixed;
    left: 24px;
    right: auto;
    bottom: 24px;
    width: auto;
    max-width: min(360px, calc(100vw - 48px));
}

@media (max-width: 767px) {

    .wpcf7 form.invalid .wpcf7-response-output,
    .wpcf7 form.sent .wpcf7-response-output,
    .wpcf7 form.failed .wpcf7-response-output,
    .wpcf7 form.spam .wpcf7-response-output {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

.wpcf7 .wpcf7-response-output.slide-in {
    animation: slideInFromLeft 0.5s ease-out forwards;
}

.wpcf7 .wpcf7-response-output.slide-out {
    animation: slideOutToLeft 0.5s ease-in forwards;
}

.wpcf7 .wpcf7-response-output.hidden {
    display: none !important;
}

.wpcf7-response-output.wpcf7-validation-errors {
    border-color: #dc3232;
    background-color: #fff5f5;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    border-color: #46b450;
    background-color: #f0fff4;
}

@keyframes loader {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(1turn)
    }
}


/* MacBook range (1280–1599px) — default `-100px` bleed přesahuje do formuláře.
   Aplikujeme dříve, aby se sekce kontaktu vešla pohodlně na MBA/MBP viewport. */
@media (min-width: 1280px) and (max-width: 1599px) {
    .contact-image-holder {
        left: -50px;
    }
}

@media (max-width: 1150px) {
    .contact-image-holder {
        left: -80px;
    }
}

@media (max-width: 1100px) {
    .contact-image-holder {
        left: -30px;
    }
}

@media (max-width: 991px) {
    #kontakt>.wpb_column {
        width: 100% !important;
    }

    .contact-card {
        border-radius: 16px;
        padding: 10px 16px;
    }

    .contact-card .contact-card-icon {
        width: 48px;
        height: 48px;
    }

    .contact-card .contact-card-icon svg {
        width: 32px;
        height: 32px;
    }

    .form-input-row {
        flex-direction: column;
        gap: 0;
    }

    .form-input-row p {
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {}

@media (max-width: 767px) {
    .contact-row {
        margin-top: 70px;
        scroll-margin-top: 35px;
    }

    .contact-row .heading-wrapper {
        text-align: center;
    }

    .contact-row .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .contact-image-wrapper::before {
        width: 100%;
        left: 0;
    }

    .contact-image-holder {
        left: 11px;
    }

    .contact-card-row {
        right: -25px;
        width: 100%;
        align-items: end;
        gap: 16px;
    }

    .contact-card p {
        width: 0;
        transition: all .3s ease-in-out;
        white-space: nowrap;
        overflow: hidden;
    }

    .contact-card {
        padding-block: 10px;
        border-top-left-radius: 100px;
        border-bottom-left-radius: 100px;
        transition: all .3s ease-in-out;
        width: fit-content;
    }

    .contact-card .contact-card-icon {
        transform: rotate(360deg);
        transition: all .3s ease-in-out;
    }

    .contact-card:hover .contact-card-icon {
        transform: rotate(0deg);
        aspect-ratio: 1;
    }

    .contact-card:hover p {
        width: 100%;
    }

    .contact-card:hover {
        /* border-top-left-radius: 16px;
		border-bottom-left-radius: 16px;
		border-top-right-radius: 0;
		border-bottom-right-radius: 0; */
    }

    .contact-card .contact-card-text {
        font-size: 12px;
    }
}

@media (max-width: 567px) {
    .contact-card-row {
        gap: 10px;
    }

    .contact-card .contact-card-icon {
        width: 30px;
        height: 30px;
    }

    .contact-card .contact-card-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Spoluprace a Logo carousel
--------------------------------------------- */
#spoluprace {
    margin-top: 80px;
    pointer-events: none;
}

/* Větší mezera mezi nadpisem a logy — byly nalepené na sebe.
   (+ markup má ještě .mt-4 wrapper, takže celkem ~48px) */
#spoluprace>h2 {
    margin-bottom: 32px;
}

.logo-carousel {
    overflow: hidden;
}

.logo-carousel .logos {
    display: flex;
    align-items: center;
    gap: 60px;
    will-change: transform;
}

.logo-carousel .logos img {
    height: 45px;
    width: auto;
    flex: 0 0 auto;
    max-width: none;
    /*filter: grayscale(100%);*/
    opacity: 0.6;
    transition: filter .3s, opacity .3s;
}

.logo-carousel .logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Volitelně na menších displejích menší gap */
@media (max-width: 1199px) {
    .logo-carousel .logos {
        gap: 40px;
    }
}

@media (max-width: 767px) {
    #spoluprace {
        margin-top: 50px
    }

    .logo-carousel .logos {
        gap: 60px;
    }

    .logo-carousel .logos img {
        height: 35px;
    }
}

/* Hidden modal
--------------------------------------------- */

#hidden-modal .wpb_content_element {
    margin-bottom: 0;
}

/* Site footer
--------------------------------------------- */
.site-footer {
    margin-top: 35px;
}

.site-footer .wpb-content-wrapper {
    width: 100%;
}

.site-footer {
    background-color: #F3F5E7;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    display: flex;
    flex-direction: column;
    padding-top: 45px;
}

.site-footer .top {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
    padding-bottom: 40px;
}

.site-footer .footer-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}


.site-footer .footer-heading {
    font-size: 40px;
    font-weight: 800;
}

.site-footer .first-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
}

.site-footer .socials-row {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.site-footer .socials-row a {
    text-decoration: none;
    height: 48px;
    width: 48px;
    transition: .15s ease-in-out;
}

.site-footer .socials-row a:hover {
    background-color: #E4E8DA;
    border-radius: 100px;
}

.site-footer .second-row {
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.site-footer .footer-contact-card {
    padding: 24px;
    width: 400px;
    border-radius: 16px;
    display: flex;
    border: 1px solid #c3c9b47a;
    align-items: center;
    gap: 16px;
    height: 64px;
    text-decoration: none;
    color: #434939;
    font-weight: 500;
}

.site-footer .footer-contact-card:hover {
    background: #87BA4129;
    border: 1px solid transparent;
    box-shadow: 0px 5px 12px 0px rgba(161, 214, 90, 0.15);
    transition: background .2s ease-in-out;
}

.site-footer .footer-contact-card svg {
    width: 40px;
    height: 40px;
}

.site-footer .bottom {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-block: 24px !important;
    flex-wrap: wrap;
}

.site-footer .line {
    border-top: 1px solid #C3C9B4;
    margin-inline: 15px;
}

.copyright {
    display: flex;
    gap: 30px;
    align-items: center;
}

.site-footer ul.footer-menu {
    margin: 0;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 24px;
}

.copyright a.footer-link,
.footer-menu .menu-item a {
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
    color: #434939;
    transition: .3s ease-in-out;
}

.copyright a.footer-link:hover,
.footer-menu .menu-item a:hover {
    color: #87ba41;
}

.site-footer .line.mobile-only {
    display: none;
}

.announcement-footer {
    font-size: 10px;
}

@media (min-width: 768px) {

    .site-footer .bottom .wpb-content-wrapper {
        max-width: unset !important;
        padding: unset !important;
        margin: unset !important;
        width: auto !important;
    }

}

@media (max-width: 767px) {

    .site-footer .bottom.wpb-content-wrapper {
        max-width: unset !important;
        padding: unset !important;
        padding-bottom: 12px !important;
        margin: unset !important;
        width: auto !important;
    }

    .site-footer .line.mobile-only {
        display: block;
    }

    .site-footer .first-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .site-footer .top {
        gap: 32px;
        padding-bottom: 50px;
    }

    .site-footer .footer-contact-row {
        gap: 16px;
    }

    .site-footer .footer-contact-card {
        padding: 16px;
        width: 100%;
    }

    .site-footer .second-row {
        flex-direction: column;
        align-items: center;
    }

    .site-footer .footer-contact-card svg {
        width: 30px;
        height: 30px;
    }

    .site-footer {
        border-top-left-radius: 50px;
        border-top-right-radius: 50px;
        padding-top: 10px;
    }

    .site-footer .footer-heading {
        font-size: 32px;
    }

    .site-footer ul.footer-menu {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .site-footer ul.footer-menu li {
        padding-inline: 10px;
        padding-block: 12px;
    }

    .site-footer .bottom {
        padding-top: 0px !important
    }

    .site-footer .footer-nav {
        padding-block: 8px;
    }

    .site-footer .copyright {
        padding: 10px;
        margin-top: 8px;
    }
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* IG Feed
--------------------------------------------- */

.igf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .igf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .igf-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.igf-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.igf-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .igf-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

.igf-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

.igf-item:hover {
    transform: scale(1.05);
    z-index: 1;
}

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

.igf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(135, 186, 65, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.igf-item:hover .igf-overlay {
    opacity: 1;
}

/* Instagram feed (sekce #instagram) — nadpis, mřížka, CTA na profil */
.ig-feed-wrapper {
    scroll-margin-top: 120px;
    /* Explicitní mezery (Tailwind build neobsahuje md:mt-28) — konzistentní
       odstup od sekce nad ním i od „S kým spolupracuji" pod ním. */
    margin-top: 96px;
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .ig-feed-wrapper {
        margin-top: 64px;
    }
}

/* Mezera pod nadpisem feedu (mt-8 z markupu řeší horní; tady jemné doladění) */
.ig-feed-wrapper .heading-wrapper {
    margin-bottom: 8px;
}

/* Mřížka feedu — plná šířka contentu (stejně jako kontakt sekce, .wpb-content-wrapper
   dává max 1300px), zaoblené rohy + jemný stín jako karty webu */
.ig-feed-wrapper .igf-grid {
    gap: 20px;
    max-width: none;
    margin-inline: 0;
}

.ig-feed-wrapper .igf-item {
    border-radius: 16px;
    box-shadow: 0px 5px 12px 0px rgba(161, 214, 90, 0.15);
}

.ig-feed-cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* CTA „Zobrazit profil" — Instagram gradient, sladěný se zaoblením tématu */
.ig-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 100px;
    background: linear-gradient(95deg, #F3F5E7 0%, #F3F5E7 100%) padding-box,
        linear-gradient(95deg, #feda75 0%, #d62976 50%, #4f5bd5 100%) border-box;
    border: 2px solid transparent;
    color: #2c3e1c;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.15px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ig-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(214, 41, 118, 0.18);
}

.ig-profile-btn:visited {
    color: #2c3e1c;
}

/* Instagram ikona (těsný viewBox → bez prázdného okraje), v barvě Instagramu */
.ig-profile-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #d62976;
}

@media (max-width: 767px) {
    .ig-feed-wrapper .igf-grid {
        gap: 12px;
    }

    .ig-feed-wrapper .igf-item {
        border-radius: 12px;
    }
}

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
    display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
    outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

    /*rtl:ignore*/
    float: left;

    /*rtl:ignore*/
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {

    /*rtl:ignore*/
    float: right;

    /*rtl:ignore*/
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* Contact modal
--------------------------------------------- */

.modal-contact-wrapper {
    display: flex;
    flex-direction: row;
    gap: 48px;
}

.modal-contact-wrapper textarea {
    height: 7em !important;
}

.modal-contact-wrapper .modal-form-wrapper {
    width: 50%;
}

.modal-contact-wrapper .modal-image-holder {
    width: 50%;
}

.modal-image-holder {
    display: flex;
    align-items: end;
    justify-content: end;
    position: relative;
    padding-right: 25px;
}

.modal-image-holder img {
    width: 80%;
}

.modal-image-holder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    background-image:
        linear-gradient(135deg, rgba(135, 186, 65, 0.55) 0%, rgba(106, 154, 46, 0.18) 60%, transparent 100%),
        url("https://www.jakubcesek.cz/wp-content/themes/jakubcesek/assets/img/contact-modal-bg.png");
    border-radius: 25px;
    box-shadow: inset 0 0 0 1px rgba(135, 186, 65, 0.25);
}

@media (max-width: 767px) {
    .modal-image-holder {
        display: none;
    }

    .modal-contact-wrapper .modal-form-wrapper {
        width: 100%;
    }
}

/* 404
--------------------------------------------- */

.error-404 {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 50vh;
}

/* FAQ Section
--------------------------------------------- */

.faq-section {
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}

.faq-question {
    padding: 20px 0;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #87BA41;
    transition: transform 0.3s ease;
}

details[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 0 20px;
    color: #666;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}