/* ==========================================================================
   01. Základ, fonty a proměnné
   ========================================================================== */

@font-face {
    font-family: Manrope;
    src: url(fonty/Manrope-Regular.ttf) format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url(fonty/Manrope-ExtraBold.ttf) format("truetype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: Poppins;
    src: url(fonty/Poppins-Regular.ttf) format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Poppins;
    src: url(fonty/Poppins-ExtraBold.ttf) format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #243324;
    --muted: #667463;
    --black: #000000;
    --accent: #40af97;
    --accent-dark: #237662;
    --paper: #f8fbf6;
    --white: #ffffff;
    --line: #e9f1e5;
    --decoration: #bfdbb1;
    --accent-warm: #D8B65C;
    --page-width: 1380px;
    --shadow-soft: 0 18px 55px rgba(47, 62, 47, 0.09);
    --shadow-card: 0 12px 35px rgba(47, 62, 47, 0.07);
}

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

html {
    background: var(--paper);
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(ellipse at 88% 12%, rgba(202, 218, 194, 0.35), transparent 28%), var(--paper);
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    font-family: Manrope, Poppins, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}


a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}


@media (min-width: 1000px) {
    body p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   02. Společné rozložení a grafické čáry
   ========================================================================== */

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

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

.angle-line {
    display: block;
    width: 100%;
    height: 32px;
    overflow: visible;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 7%, rgba(0, 0, 0, 0.7) 14%, #000 24%, #000 72%, rgba(0, 0, 0, 0.7) 84%, rgba(0, 0, 0, 0.25) 93%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 7%, rgba(0, 0, 0, 0.7) 14%, #000 24%, #000 72%, rgba(0, 0, 0, 0.7) 84%, rgba(0, 0, 0, 0.25) 93%, transparent 100%);
}

.angle-line path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
}

@media (min-width: 700px) {
    .page-width {
        width: min(calc(100% - 64px), var(--page-width));
    }
}

@media (min-width: 1000px) {
    .angle-line {
        height: 40px;
    }
}

/* ==========================================================================
   03. Společná tlačítka
   ========================================================================== */

.button {
    --slant: 16px;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 30px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
    position: relative;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    clip-path: polygon(0 0, calc(100% - var(--slant)) 0, 100% 100%, var(--slant) 100%);
}


.button-secondary {
    background: var(--accent-dark);
    color: var(--ink);
    transition: color 0.5s ease;
}

.button-secondary::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 2px;
    background: #fff;
    clip-path: polygon(0 0, calc(100% - var(--slant) + 1px) 0, 100% 100%, calc(var(--slant) - 1px) 100%);
}

.button-light::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 2px;
    clip-path: polygon(0 0, calc(100% - var(--slant) + 1px) 0, 100% 100%, calc(var(--slant) - 1px) 100%);
    background: var(--paper);
}

.button-secondary:hover {
    color: var(--paper);
}

.button-primary {
    transition: background 0.5s ease, color 0.5s ease;
    color: var(--ink);
    background: var(--accent);
}

.button-primary:hover {
    color: var(--paper);
    background: var(--accent);
}

.button-primary::after,
.button-secondary::after,
.site-header nav .kontakt-tlacitko::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    width: auto;
    height: auto;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-primary:hover::after,
.button-secondary:hover::after,
.site-header nav .kontakt-tlacitko:hover::after {
    width: auto;
    transform: scaleY(1);
}

.button-light {
    flex: none;
    color: var(--ink);
    background: var(--decoration);
}


.button-light::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-dark);
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.button-light:hover {
    transform: none;
}

.button-light:hover::after {
    width: 50%;
}

@media (min-width: 1000px) {
    .button-light {
        width: 320px;
        height: 70px;
        min-height: 70px;
        margin-block: 25px;
        padding: 18px 25px;
        font-size: 1.25rem;
    }

    .button-light::before {
        background: var(--line);
    }
}

/* ==========================================================================
   04. Společné nadpisy sekcí
   ========================================================================== */

.section-title {
    position: relative;
    margin-bottom: 30px;
}


.section-title h2 {
    width: min(calc(100% - 32px), var(--page-width));
    margin: 0 auto 8px;
    color: var(--ink);
    font-size: clamp(2rem, 10vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.section-title h2 span {
    color: var(--accent-dark);
}



:is(.services, .portfolio, .latest-articles, .faq-section) .section-title {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    width: min(calc(100% - 32px), var(--page-width));
    height: auto;
    margin: 18px auto 42px;
}

:is(.services, .portfolio, .latest-articles, .faq-section) .section-title.section-title-first {
    margin-top: 0;
}

@media (max-width: 999px) {
    :is(.services, .portfolio, .latest-articles, .faq-section) .section-title.section-title-first {
        margin-bottom: 0;
    }

    :is(.services, .portfolio, .latest-articles, .faq-section) .section-title.section-title-first h2 {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

:is(.services, .portfolio, .latest-articles, .faq-section) .section-title h2 {
    position: static;
    grid-column: 1 / span 5;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

:is(.services, .portfolio, .latest-articles, .faq-section) .section-title h2::before,
:is(.services, .portfolio, .latest-articles, .faq-section) .section-title h2::after {
    content: "";
    flex: 1 1 0;
    height: 2px;
    margin-top: 0.25em;
    background: var(--accent);
}

:is(.services, .portfolio, .latest-articles, .faq-section) .section-title h2::before {
    margin-right: 28px;
}

:is(.services, .portfolio, .latest-articles, .faq-section) .section-title h2::after {
    margin-left: 28px;
}

:is(.services, .portfolio, .latest-articles, .faq-section) .section-title h2 span {
    margin-left: 0.25em;
}

@media (min-width: 1000px) {
    .section-title {
        position: relative;
        height: 105px;
        margin-bottom: 28px;
    }

    .section-title h2 {
        position: absolute;
        z-index: 2;
        bottom: 18px;
        width: auto;
        margin: 0;
        font-size: 3rem;
        line-height: 1;
        white-space: nowrap;
        right: max(16px, calc((100vw - var(--page-width)) / 2 + 16px));
        left: auto;
        text-align: right;
    }
}

/* ==========================================================================
   05. Hlavička a navigace
   ========================================================================== */

/* Horní informační lišta */
.informacni_lista {
    position: relative;
    z-index: 101;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.informacni_lista-text {
    display: inline-block;
    padding: 3px 14px;
    background: var(--accent-dark);
}

@media (min-width: 700px) {
    .informacni_lista {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .informacni_lista-text {
        animation: informacni_lista-pulse 4s ease-in-out infinite;
    }

    @keyframes informacni_lista-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.04); }
    }
}

.site-header {
    position: relative;
    z-index: 100;
    background: rgba(248, 251, 246, 0.96);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 32px), var(--page-width));
    margin: 0 auto;
    padding: 16px 0 8px;
    
}

#logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}

.logo-symbol {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.logo-name {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.logo-name strong {
    font-weight: 700;
}

.logo-text small {
    color: var(--black);
    font-size: 0.70rem;
    letter-spacing: 0.3em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.site-header nav {
    display: none;
    width: 100%;
    margin-top: 14px;
}

.menu-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.mobile-menu-button {
    cursor: pointer;
}

.menu-checkbox:focus-visible+.mobile-menu-button {
    outline: 3px solid var(--accent-dark);
    outline-offset: 3px;
}

.menu-checkbox:checked~nav {
    display: block;
}

.site-header nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 0 0 10px;
    list-style: none;
}

.site-header nav .nav-submenu {
    display: none;
}

.site-header nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 7px 0;
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 180ms ease;
}

.site-header nav a:not(.kontakt-tlacitko)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 180ms ease;
}

.site-header nav a:not(.kontakt-tlacitko):is(:hover, [aria-current="true"]) {
    color: var(--accent-dark);
}

.site-header nav a:not(.kontakt-tlacitko):is(:hover, [aria-current="true"])::after {
    width: 100%;
}

.site-header nav .kontakt-tlacitko {
    --slant: 10px;
    width: fit-content;
    gap: 8px;
    padding: 8px 20px;
    font-weight: 700;
    transition: background-color 180ms ease;
}

body#top .site-header nav {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 700ms ease-in-out, margin-top 700ms ease-in-out, opacity 600ms ease-in-out, visibility 0s linear 900ms;
}

body#top .site-header nav>ul {
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
}

body#top .menu-checkbox:checked~nav {
    grid-template-rows: 1fr;
    margin-top: 14px;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.site-header nav>ul>li>a {
    padding: 12px 18px;
    font-size: 1.15rem;
    font-weight: 700;
}

.site-header nav>ul>li:not(:last-child) {
    border-bottom: 1px solid rgba(47, 62, 47, 0.12);
}

.site-header nav>ul>li>a.kontakt-tlacitko {
    margin-left: 18px;
}

.header-line {
    display: none;
}

.site-header nav .kontakt-tlacitko {
    position: relative;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    clip-path: polygon(0 0, calc(100% - var(--slant)) 0, 100% 100%, var(--slant) 100%);
    color: var(--ink);
    background: var(--accent);
}

.site-header nav .kontakt-tlacitko:hover {
    color: var(--paper);
    background: var(--accent);
}

@media (min-width: 700px) {
    .header-inner {
        width: min(calc(100% - 64px), var(--page-width));
    }
}

@media (min-width: 1000px) {
    body#top .site-header nav {
        display: block;
        max-height: none;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        transition: none;
    
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
        height: 100px;
        background: transparent;
        isolation: isolate;
        overflow: visible;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-header::before {
        content: "";
        position: absolute;
        z-index: 0;
        inset: 0;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        clip-path: polygon(0 0, 100% 0, 100% 94px, 51% 94px, 47% 62px, 0 62px);
        pointer-events: none;
    }

    .header-inner {
        display: block;
        position: relative;
        z-index: 4;
        width: min(calc(100% - 80px), var(--page-width));
        height: 100px;
        margin: 0 auto;
        padding: 0;
    }

    #logo {
        position: absolute;
        z-index: 4;
        top: 7px;
        left: 0;
        gap: 13px;
    }

    .logo-symbol {
        width: 47px;
        height: 47px;
    }

    .logo-name {
        font-size: 1.75rem;
    }

    .header-line {
        position: absolute;
        z-index: 3;
        top: 58px;
        left: 0;
        width: 100%;
        height: 40px;
        margin: 0;
        pointer-events: none;
    }

    .site-header nav {
        display: block;
        grid-template-rows: none;
        position: absolute;
        z-index: 4;
        top: 30px;
        right: 0;
        width: auto;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transition: none;
    }

    .menu-checkbox {
        display: none;
    }

    .mobile-menu-button {
        display: none;
    }

    .site-header nav>ul {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 24px;
        min-height: auto;
        overflow: visible;
        padding: 0;
    }

    .site-header nav a {
        justify-content: center;
        width: auto;
        padding: 7px 0;
        font-size: 1.05rem;
        white-space: nowrap;
    }

    .site-header nav .kontakt-tlacitko {
        margin-left: 3px;
        padding: 8px 18px;
    }

    .header-line {
        display: block;
    }

    body#top .site-header nav {
        margin-top: 0;
        grid-template-rows: none;
    }

    body#top .site-header nav>ul {
        min-height: auto;
        overflow: visible;
    }

    body#top .menu-checkbox:checked~nav {
        grid-template-rows: none;
        margin-top: 0;
    }

    .site-header nav>ul>li>a {
        padding: 7px 0;
        font-size: 1.05rem;
        font-weight: 400;
    }

    .site-header nav>ul>li:not(:last-child) {
        border-bottom: 0;
    }

    .site-header nav>ul>li>a.kontakt-tlacitko {
        margin-left: 3px;
        padding: 8px 18px;
        font-weight: 700;
    }

    .site-header nav>ul>.nav-services-item {
        position: relative;
    }

    .site-header nav .nav-submenu {
        display: flex;
        position: absolute;
        top: 100%;
        left: -14px;
        z-index: 6;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-width: 240px;
        border-top: 3px solid var(--paper);
        padding: 8px 0;
        background: var(--paper);
        box-shadow: 0 12px 28px rgba(47, 62, 47, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(6px);
    }

    .site-header nav .nav-services-item:hover .nav-submenu,
    .site-header nav .nav-services-item:focus-within .nav-submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    @media (prefers-reduced-motion: no-preference) {
        .site-header nav .nav-submenu {
            transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
        }

        .site-header nav .nav-services-item:hover .nav-submenu,
        .site-header nav .nav-services-item:focus-within .nav-submenu {
            transition-delay: 0s;
        }
    }

    .site-header nav .nav-submenu a {
        justify-content: flex-start;
        width: fit-content;
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .site-header nav .nav-submenu a::after {
        left: 16px;
        transform: none;
    }

    .site-header nav .nav-submenu a:not(.kontakt-tlacitko):hover::after,
    .site-header nav .nav-submenu a:not(.kontakt-tlacitko):focus-visible::after {
        width: calc(100% - 32px);
    }
}

/* ==========================================================================
   06. Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 32px 0 42px;
    isolation: isolate;
    background: #fff;
}

.hero-inner {
    display: grid;
    gap: 42px;
}

.hero-copy {
    max-width: 590px;
}

.hero h1 {
    margin: 0 0 22px;
    color: var(--ink);
    font-size: clamp(2.8rem, 11vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.08;
    text-align: left;
}

.hero h1 span {
    display: block;
    color: var(--accent);
}

.hero h1 .hero-line {
    padding-left: 0;
}

.hero h1 .hero-line-dark {
    color: var(--ink);
}

.hero h1 .hero-line:nth-child(2) {
    padding-left: 12px;
}

.hero h1 .hero-line:nth-child(3) {
    padding-left: 24px;
}

.hero-copy .hero-text {
    max-width: 335px;
    margin: 22px 0 0 36px;
    color: black;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
    text-align-last: auto;
}

.hero-copy .hero-text+.hero-text {
    margin-top: 14px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    gap: 12px;
    margin: 30px auto 0;
}

.hero-actions .button {
    font-size: 1.10rem;
    padding-inline: 34px;
    align-self: flex-start;
}

.hero-actions .button:nth-child(2) {
    margin-left: 20px;
}

.hero-media {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    opacity: 0.65;
    pointer-events: none;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 700px) {
    .hero-copy {
        --hero-title-size: clamp(2.5rem, 12vw, 4.5rem);
    }

    .hero h1 {
        font-size: var(--hero-title-size);
        letter-spacing: -0.055em;
        line-height: 1.03;
        text-align: start;
    }

    .hero h1 .hero-line {
        padding-left: 0.6em;
    }

    .hero h1 .hero-line:nth-child(2) {
        padding-left: 0.85em;
    }

    .hero h1 .hero-line:nth-child(3) {
        padding-left: 1.1em;
    }

    .hero-copy .hero-text {
        max-width: none;
        margin-top: 25px;
        margin-left: calc(1.35 * var(--hero-title-size));
        font-size: 0.96rem;
        line-height: 1.75;
    }

    

    .hero-copy .hero-text+.hero-text {
        margin-top: 25px;
    }

    .hero-actions {
        margin-top: 58px;
    }

}

/* Tablet — tlačítka v jednom řádku, bez zásahu do desktopu. */
@media (min-width: 700px) and (max-width: 999px) {
    .hero-media {
        opacity: 0.2;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-actions .button:nth-child(2) {
        align-self: auto;
    }
}

@media (min-width: 1000px) {
    body .hero-text {
        font-size: 1rem;
    }

    .hero {
        --hero-top-space: 68px;
        container-type: inline-size;
        overflow: visible;
        margin-top: -38px;
        padding: 68px 0 14px;
        min-height: 640px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 0.88fr) minmax(450px, 1.12fr);
        align-items: stretch;
        align-content: center;
        gap: 45px;
    }

    .hero-copy {
        --hero-title-size: clamp(3.8rem, 5vw, 5.25rem);
        position: relative;
        z-index: 2;
    }

    .hero h1 {
        margin-bottom: 0;
    }

    .hero h1 .hero-line {
        padding-left: 0.1em;
    }

    .hero h1 .hero-line:nth-child(2) {
        padding-left: 0.3em;
    }

    .hero h1 .hero-line:nth-child(3) {
        padding-left: 0.6em;
    }

    .hero-copy .hero-text {
        max-width: 530px;
        margin-left: calc(0.9 * var(--hero-title-size));
        font-size: 1rem;
    }

    .hero-actions {
        align-items: flex-start;
        margin-inline: 0;
    }

    .hero-actions .button:nth-child(1) {
        margin-left: 90px;
        align-self: auto;
    }

    .hero-actions .button:nth-child(2) {
        margin-left: 110px;
    }

    .hero-media {
        position: relative;
        z-index: 1;
        inset: auto;
        margin-left: -295px;
        opacity: 1;
        pointer-events: auto;
    }

    .hero-image {
        position: absolute;
        top: calc(-1 * var(--hero-top-space) - 38px);
        right: calc(-1 * max(32px, (100cqw - var(--page-width)) / 2));
        bottom: 0;
        left: 0;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
    }

    body:has(.hero) .site-header::before {
        background: #fff;
    }
}

@media (min-width: 1000px) and (max-height: 850px) {
    .hero {
        --hero-top-space: clamp(1.5rem, 5vh, 4.25rem);
        min-height: auto;
        margin-top: -2.375rem;
        padding: clamp(1.5rem, 5vh, 4.25rem) 0 1rem;
    }

    .hero-copy {
        --hero-title-size: clamp(3rem, 4.3vw, 5.25rem);
    }

    .hero-copy .hero-text,
    .hero-copy .hero-text + .hero-text {
        margin-top: clamp(0.8rem, 2vh, 1.5rem);
        line-height: 1.55;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        margin-top: clamp(1rem, 3vh, 2rem);
        margin-left: 92px;
    }

    .hero-actions .button {
        font-size: clamp(0.9rem, 1.2vw, 1rem);
        padding-inline: clamp(1.1rem, 1.8vw, 2rem);
    }

    .hero-actions .button:nth-child(1) {
        margin-left: 0;
    }

    .hero-actions .button:nth-child(2) {
        margin-left: 20px;
    }

    .hero-media {
        margin-left: clamp(-18.4375rem, -14vw, -7.5rem);
    }

}

/* Nižší desktop — doplnění kompaktní varianty. */
@media (min-width: 1000px) and (max-height: 750px) {
    .hero {
        --hero-top-space: 1.5rem;
        padding-top: 1.5rem;
    }

    .hero-actions {
        margin-top: 1rem;
    }

}

/* ==========================================================================
   07. Mé služby
   ========================================================================== */

.services {
    position: relative;
}

.services::before {
    content: "";
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 32px;
    background: #ffffff;
    clip-path: polygon(47% 0, 100% 0, 100% 100%, 51% 100%);
    pointer-events: none;
}

@media (min-width: 700px) {
    .services::before {
        display: block;
    }
}

.sluzba-card h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 180ms ease;
}

.sluzba-card:hover h3::after {
    width: 100%;
}

.sluzba-card p {
    margin: 0;
    color: var(--black);
    font-size: 1rem;
    line-height: 1.65;
}

.sluzby-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.sluzba-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    padding: 0;
    border: 0;
    background: #40af97;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.sluzba-icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.sluzba-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 0;
    text-align: center;
}

.sluzba-content h3 {
    align-self: center;
    color: var(--ink);
}

.sluzba-content .sluzba-otazka {
    align-self: center;
    margin: 14px 0 14px;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--accent-dark);
    text-align: center;
}

.sluzba-content p {
    width: 100%;
}


.sluzba-card-link {
    display: block;
    border-radius: 0;
    color: inherit;
    text-decoration: none;
}

.sluzba-card-link:focus-visible {
    outline-offset: 4px;
}

.sluzba-card-link:focus-visible .sluzba-card h3::after {
    width: 100%;
}

.services {
    padding: 56px 0 72px;
    background: linear-gradient(180deg, var(--line), var(--paper) 42%);
    overflow: hidden;
    isolation: isolate;

}

.sluzba-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}


.sluzba-card-link:hover .sluzba-icon::before,
.sluzba-card-link:focus-visible .sluzba-icon::before {
    transform: scaleY(1);
}

.services .sluzby-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 34px;
}

.services .sluzba-card-link {
    --icon: 72px;
    position: relative;
    display: block;
    height: auto;
    padding-top: 40px;
    grid-row: auto;
    grid-template-rows: none;
}

.services .sluzba-card {
    width: 100%;
    margin: 0;
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
    transition: border-color 180ms ease, box-shadow 180ms ease;
    position: relative;
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.services .sluzba-icon {
    width: var(--icon);
    height: var(--icon);
    margin: 0 auto 22px;
    border: 0;
    align-self: auto;
    justify-self: auto;
}

.services .sluzba-icon-img {
    width: 100%;
    height: 100%;
}

.services .sluzba-content {
    display: block;
    height: auto;
    text-align: left;
}

.sluzba-otazka {
    width: 100%;
    padding: 0 0 24px;
    color: var(--accent-dark);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.services .sluzba-content h3 {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 22px;
    padding-bottom: 14px;
    font-size: 1.5rem;
    line-height: 1.25;
    text-align: left;
}

.services .sluzba-card h3::after,
.services .sluzba-card:hover h3::after,
.services .sluzba-card-link:focus-visible .sluzba-card h3::after {
    left: 50%;
    width: 0;
    height: 2px;
    border-radius: 0;
    transform: translateX(-50%);
    transition: width 180ms ease;
}

.services .sluzba-card-link:hover h3::after {
    width: 100%;
}

.services .sluzba-card-link:focus-visible h3::after {
    width: 100%;
}

.services .sluzba-card p {
    text-align: left;
}

@media (min-width: 700px) {
    .sluzby-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .services .sluzba-card {
        grid-template-columns: 112px minmax(0, 1fr);
        column-gap: 24px;
    }

    .sluzba-icon {
        align-self: stretch;
        width: auto;
        height: auto;
        border-right: 1px solid var(--line);
    }

    .sluzba-icon-img {
        width: 76px;
        height: 76px;
    }

    .sluzba-content {
        height: 100%;
    }

    .services .sluzba-card-link,
    .services .sluzba-card {
        grid-row: span 4;
        grid-template-rows: subgrid;
        row-gap: 0;
    }

    .services .sluzba-card-link {
        display: grid;
        padding-bottom: 40px;
    }

    .services .sluzba-content {
        display: contents;
    }

    .services .sluzba-content .sluzba-otazka {
        align-self: start;
    }

    .services .sluzba-content h3 {
        align-self: start;
        justify-self: center;
        text-align: center;
    }

    .services .sluzby-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 36px;
    }

}

@media (min-width: 1000px) {
    .services>.page-width {
        width: min(calc(100% - 32px), 1380px);
    }

    .sluzby-grid {
        column-gap: 22px;
    }

    .services {
        padding-block: 30px 50px;
    }
}

@media (min-width: 1100px) {
    .sluzby-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
    }

    .sluzba-content h3 {
        font-size: 1.8rem;
    }

    .services .sluzba-card-link {
        grid-template-columns: 1fr;
    }

    .services .sluzba-card {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .services .sluzba-content .sluzba-otazka {
        align-self: start;
        justify-self: center;
        margin: 0 0 10px;
        line-height: 1.35;
        text-align: center;
    }

    .services .sluzba-card p {
        align-self: start;
    }

    .services .sluzba-content .sluzba-otazka {
        font-size: 1.3rem;
    }

    .services .sluzba-content h3 {
        font-size: 1.8rem;
    }

    .services .sluzby-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0 44px;
        padding-top: 20px;
    }

    .services .sluzba-card-link {
        --gap: 44px;
        padding-top: 60px;
    }

    .services .sluzba-card-link:not(:last-child)::before,
    .redesign-page .redesign-service-card:not(:nth-child(3n)):not(:last-child)::before {
        content: "";
        position: absolute;
        top: var(--service-line-top, 26px);
        left: var(--service-line-left, calc(50% + var(--icon) / 2));
        width: var(--service-line-width, calc(100% + var(--gap) - var(--icon) / 2));
        height: var(--service-line-height, 70px);
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70 H31 L51 0 H100' fill='none' stroke='%23243324' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
        pointer-events: none;
        opacity: var(--service-line-opacity, 1);
    }

    .services .sluzba-card::before {
        content: "";
        position: absolute;
        top: -38px;
        left: calc(50% - 4px);
        width: 8px;
        height: 8px;
        background: var(--accent);
        transition: background-color 450ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .services .sluzba-card-link:hover .sluzba-card::before {
        background: var(--ink);
    }

    .services .sluzba-card-link:focus-visible .sluzba-card::before {
        background: var(--ink);
    }

    .services .sluzba-card::after {
        content: "";
        position: absolute;
        top: -30px;
        left: calc(50% - 0.7px);
        width: 1.4px;
        height: 30px;
        background: var(--ink);
    }

}

/* Animované spojnice služeb — pouze desktop */
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
    .services .sluzba-card-link:not(:last-child)::before {
        animation: serviceLineDraw 12s linear infinite;
        animation-delay: var(--service-delay, 0s);
    }

    .services .sluzba-card-link:not(:last-child)::after,
    .redesign-page .redesign-service-card:not(:nth-child(3n)):not(:last-child)::after {
        content: "";
        position: absolute;
        width: 8px;
        height: 8px;
        background: var(--accent);
        transform: translate(-50%, -50%);
        z-index: 5;
        pointer-events: none;
        animation: var(--service-square-animation, serviceSquareDraw) var(--service-duration, 12s) linear infinite;
        animation-delay: var(--service-delay, 0s);
    }

    .services .sluzba-card-link:nth-child(2) {
        --service-delay: -8s;
    }

    .services .sluzba-card-link:nth-child(3) {
        --service-delay: -4s;
    }

    @keyframes serviceLineDraw {
        0%, 33.34%, 100% {
            clip-path: inset(0 100% 0 0);
            opacity: 0;
        }
        1% {
            clip-path: inset(0 100% 0 0);
            opacity: 1;
        }
        9% {
            clip-path: inset(0 69% 0 0);
            opacity: 1;
        }
        18% {
            clip-path: inset(0 49% 0 0);
            opacity: 1;
        }
        31% {
            clip-path: inset(0);
            opacity: 1;
        }
        33.33% {
            clip-path: inset(0);
            opacity: 0;
        }
    }

    @keyframes serviceSquareDraw {
        0%, 33.34%, 100% {
            left: calc(50% + 36px);
            top: 96px;
            opacity: 0;
        }
        1% {
            left: calc(50% + 36px);
            top: 96px;
            opacity: 1;
        }
        9% {
            left: calc(81% + 38.48px);
            top: 96px;
            opacity: 1;
        }
        18% {
            left: calc(101% + 40.08px);
            top: 26px;
            opacity: 1;
        }
        31% {
            left: calc(150% + 44px);
            top: 26px;
            opacity: 1;
        }
        33.33% {
            left: calc(150% + 44px);
            top: 26px;
            opacity: 0;
        }
    }
}

/* ==========================================================================
   08. Výzvy ke kontaktu — cena a spolupráce
   ========================================================================== */

.price-cta {
    color: var(--paper);
    background: var(--ink);
    position: relative;
    overflow: hidden;
    padding: 28px 18px;
}

.price-cta-line {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    height: 60px;
    top: calc(52.4% + 10px);
}

.price-cta-line path {
    stroke: #fff;
    opacity: 0.55;
}

.price-cta-inner {
    gap: 10px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
}

.price-cta-inner>div {
    padding-right: 35px;
}

.price-cta-inner>.button {
    justify-self: center;
    top: 35px;
}

.price-cta h2 {
    margin: 0;
    color: var(--paper);
    font-size: clamp(1.65rem, 5vw, 2.5rem);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.price-cta h2 span {
    color: var(--accent-warm);
}

.price-cta p {
    margin: 8px 0 0;
    color: rgba(248, 251, 246, 0.78);
    line-height: 1.65;
}

.price-cta::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 33px;
    clip-path: polygon(47% 0, 100% 0, 100% 100%, 51% 100%);
    pointer-events: none;
}

.portfolio+.price-cta::before {
    background: #ffffff;
}

.price-cta::before {
    background: var(--paper);
}

@media (min-width: 700px) {
    .price-cta-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .price-cta {
        padding-block: 40px 40px;
    }

    .price-cta-inner>.button {
        justify-self: end;
    }
}

/* ==========================================================================
   09. Vybrané projekty
   ========================================================================== */

#portfolio {
    scroll-margin-top: 0;
}

.portfolio,
.redesign-page .web-solutions + .price-cta + .redesign-reasons {
    position: relative;
}

.portfolio::before,
.redesign-page .web-solutions + .price-cta + .redesign-reasons::before {
    content: "";
    position: absolute;
    right: 0;
    width: 100%;
    clip-path: polygon(47% 0, 100% 0, 100% 100%, 51% 100%);
    pointer-events: none;
    top: -1px;
    height: 33px;
    background: var(--ink);
}

.portfolio {
    padding: 55px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.portfolio-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 18px;
    color: inherit;
    text-decoration: none;
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(47, 62, 47, 0.1);
    box-shadow: 0 10px 24px rgba(47, 62, 47, 0.08);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(202, 218, 194, 0.55), rgba(233, 241, 229, 0.65)), var(--paper);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.015);
}

.portfolio-content {
    min-width: 0;
    text-align: center;
}

.portfolio-content h3 {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    letter-spacing: -0.035em;
    line-height: 1.2;
    color: var(--ink);
}

.portfolio-content .portfolio-category {
    position: relative;
    display: block;
    width: fit-content;
    isolation: isolate;
    margin: 0 auto 8px;
    padding: 3px 8px;
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.portfolio-content .portfolio-category::before {
    content: "";
    position: absolute;
    inset: 0 -6px;
    z-index: 0;
    background: var(--ink);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
    transform: scaleY(0);
    transform-origin: center;
    visibility: hidden;
    transition: transform 250ms ease-in-out, visibility 0s linear 250ms;
}

.portfolio-content .portfolio-category span {
    position: relative;
    z-index: 1;
}

.portfolio-card:hover .portfolio-category,
.portfolio-card:focus-visible .portfolio-category {
    color: var(--paper);
}

.portfolio-card:hover .portfolio-category::before,
.portfolio-card:focus-visible .portfolio-category::before {
    transform: scaleY(1);
    visibility: visible;
    transition-delay: 0s;
}

.portfolio-content p {
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--black);
}

.portfolio-card:focus-visible {
    outline-offset: 6px;
}

.portfolio-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.portfolio-card {
    border-color: rgba(202, 218, 194, 0.6);
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: none;
}

.portfolio {
    color: var(--ink);
    background: #ffffff;
}


.portfolio-card::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 95px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 95' preserveAspectRatio='none'%3E%3Cpath d='M280 14 H590 L645 65 H680' fill='none' stroke='%23243324' stroke-width='1.4' stroke-linejoin='miter' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% 100%;
    opacity: 0.85;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.portfolio-card:hover::before,
.portfolio-card:focus-visible::before {
    opacity: 1;
}

.portfolio-card::after {
    content: "";
    position: absolute;
    top: 61px;
    left: 68%;
    z-index: 1;
    width: 8px;
    height: 8px;
    background: var(--accent);
    pointer-events: none;
    transition: background-color 180ms ease;
}

.portfolio-card:focus-visible::after {
    background: var(--muted);
}

@media (min-width: 700px) {
    .portfolio {
        padding: 65px 0;
    }

    #portfolio {
        scroll-margin-top: 35px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .portfolio-card {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: 24px;
        padding: 20px 24px;
    }

    .portfolio-image {
        position: relative;
        z-index: 0;
    }

    .portfolio-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .portfolio-content p:not(.portfolio-category) {
        margin-bottom: 18px;
    }
}

@media (min-width: 1000px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .portfolio-content {
        height: 235px;
    }

    .portfolio {
        padding-block: 30px 20px;
    }
}

@media (min-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 36px;
    }

    .portfolio-content h3 {
        font-size: 1.45rem;
    }
}

/* Postupné vykreslování čar čtyř projektů — 4 sekundy na kartu. */
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
    .portfolio-card::before {
        animation: portfolioLineDraw 16s linear infinite;
        animation-delay: var(--portfolio-delay, 0s);
    }

    .portfolio-card::after {
        transform: translate(-50%, -50%);
        animation: portfolioSquareDraw 16s linear infinite;
        animation-delay: var(--portfolio-delay, 0s);
    }

    .portfolio-card:nth-child(2) {
        --portfolio-delay: -12s;
    }

    .portfolio-card:nth-child(3) {
        --portfolio-delay: -8s;
    }

    .portfolio-card:nth-child(4) {
        --portfolio-delay: -4s;
    }

    @keyframes portfolioLineDraw {
        0%, 25%, 100% {
            clip-path: inset(0 72% 0 0);
            opacity: 0;
        }
        1% {
            clip-path: inset(0 72% 0 0);
            opacity: 1;
        }
        15% {
            clip-path: inset(0 41% 0 0);
            opacity: 1;
        }
        20% {
            clip-path: inset(0 35.5% 0 0);
            opacity: 1;
        }
        23% {
            clip-path: inset(0 32% 0 0);
            opacity: 1;
        }
        24.99% {
            clip-path: inset(0 32% 0 0);
            opacity: 0;
        }
    }

    @keyframes portfolioSquareDraw {
        0%, 25%, 100% {
            left: 28%;
            top: 14px;
            opacity: 0;
        }
        1% {
            left: 28%;
            top: 14px;
            opacity: 1;
        }
        15% {
            left: 59%;
            top: 14px;
            opacity: 1;
        }
        20% {
            left: 64.5%;
            top: 65px;
            opacity: 1;
        }
        23% {
            left: 68%;
            top: 65px;
            opacity: 1;
        }
        24.99% {
            left: 68%;
            top: 65px;
            opacity: 0;
        }
    }
}

/* ==========================================================================
   10. Nejnovější články
   ========================================================================== */

#nejnovejsi-clanky {
    scroll-margin-top: 0;
}

.latest-articles {
    position: relative;
    padding: 56px 0 72px;
    background: linear-gradient(180deg, var(--line), var(--paper) 42%);
}

/* Horní geometrické zakončení sekce */

.latest-articles::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 0;
    width: 100%;
    height: 33px;
    background: var(--ink);
    clip-path: polygon(47% 0, 100% 0, 100% 100%, 51% 100%);
    pointer-events: none;
}

/* ===== ROZLOŽENÍ ČLÁNKŮ ===== */

.articles-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 12px;
}

/* Články bez rámečků, pozadí a stínů */

.articles-empty-state {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-inline: auto;
    color: inherit;
    text-align: center;
    text-decoration: none;
}


/* ===== OBRÁZEK ČLÁNKU ===== */

.articles-empty-media {
    display: grid;
    width: 100%;
    flex: none;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    background: var(--white);
}

.articles-empty-media img {
    display: block;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.articles-empty-state:hover .articles-empty-media img,
.articles-empty-state:focus-visible .articles-empty-media img {
    transform: scale(1.015);
}

/* ===== TEXTOVÝ OBSAH ===== */

.articles-empty-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 18px 20px 24px;
    
}

.articles-empty-state .cta-eyebrow {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Nadpis článku */

.articles-empty-state h3 {
    position: relative;
    display: inline-block;
    width: fit-content;
    margin: 0 0 10px;
    padding-bottom: 7px;
    color: var(--ink);
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    letter-spacing: -0.035em;
    line-height: 1.2;
}

/* Popis článku */

.articles-empty-state > .articles-empty-content > p:not(.cta-eyebrow) {
    margin: 0 0 18px;
    color: var(--black);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Tlačítko */

.articles-empty-state .button {
    margin-top: auto;
}

/* ==========================================================================
   MOBIL – ZALOMENÁ ČÁRA ZA TLAČÍTKEM
   ========================================================================== */

@media (max-width: 699px) {

    .latest-articles {
        padding-bottom: 12px;
    }

    .latest-articles .articles-grid {
        gap: 36px;
    }

    .latest-articles .articles-empty-content {
        position: relative;
        isolation: isolate;
    }

    /* Zalomená čára bez tyrkysového čtverečku */

    .latest-articles .articles-empty-content::before {
        content: "";
        position: absolute;
        bottom: 34px;
        left: 0;
        width: 100%;
        height: 28px;
        z-index: 0;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 28' preserveAspectRatio='none'%3E%3Cpath d='M0 8 H350 L420 22 H1000' fill='none' stroke='%23243324' stroke-width='1.4' stroke-linejoin='miter' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
        pointer-events: none;
    }

    /* Tlačítko překrývá čáru */

    .latest-articles .articles-empty-content > .button-primary {
        position: relative;
        z-index: 2;
    }
}

/* ==========================================================================
   TABLET – DVA SLOUPCE, BEZ DEKORATIVNÍCH ČAR
   ========================================================================== */

@media (min-width: 700px) {

    #nejnovejsi-clanky {
        scroll-margin-top: 35px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .articles-empty-content {
        padding: 22px 24px 28px;
    }
}

/* ==========================================================================
   DESKTOP – SPOLEČNÁ GEOMETRICKÁ ČÁRA
   ========================================================================== */

@media (min-width: 1000px) {

    .articles-grid {
        position: relative;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
        padding-bottom: 58px;
    }

    /* Společná zalomená čára pod články */

    .latest-articles .articles-grid::after {
        content: "";
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 100%;
        height: 40px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 40' preserveAspectRatio='none'%3E%3Cpath d='M0 4 H470 L510 36 H1000' fill='none' stroke='%23243324' stroke-width='1.4' stroke-linejoin='miter' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
        pointer-events: none;
        
    }

    .latest-articles {
        padding-block: 30px 35px;
    }
}

/* Jeden čtvereček postupně vykresluje celou spodní čáru. */
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
    .latest-articles .articles-grid::after {
        animation: articleLineDraw 8s linear infinite;
    }

    .latest-articles .articles-grid::before {
        content: "";
        position: absolute;
        width: 8px;
        height: 8px;
        background: var(--accent);
        transform: translateX(-50%);
        z-index: 1;
        pointer-events: none;
        animation: articleSquareDraw 8s linear infinite;
    }

    @keyframes articleLineDraw {
        0%, 100% { clip-path: inset(0 100% 0 0); opacity: 0; }
        2% { clip-path: inset(0 100% 0 0); opacity: 1; }
        42% { clip-path: inset(0 53% 0 0); opacity: 1; }
        50% { clip-path: inset(0 49% 0 0); opacity: 1; }
        90% { clip-path: inset(0); opacity: 1; }
        96%, 99.99% { clip-path: inset(0); opacity: 0; }
    }

    @keyframes articleSquareDraw {
        0%, 100% { left: 0; bottom: 37px; opacity: 0; }
        2% { left: 0; bottom: 37px; opacity: 1; }
        42% { left: 47%; bottom: 37px; opacity: 1; }
        50% { left: 51%; bottom: 5px; opacity: 1; }
        90% { left: 100%; bottom: 5px; opacity: 1; }
        96%, 99.99% { left: 100%; bottom: 5px; opacity: 0; }
    }
}

/* ==========================================================================
   11. Časté dotazy
   ========================================================================== */

.faq-section {
    position: relative;
    padding: 56px 0 76px;
    background: #ffffff;
}

.faq-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 32px;
    clip-path: polygon(47% 0, 100% 0, 100% 100%, 51% 100%);
    pointer-events: none;
    background: var(--paper);
}

@media (max-width: 999px) {
    .faq-section::before {
        display: none;
        content: none;
    }
}

.faq-layout {
    width: min(calc(100% - 32px), var(--page-width));
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid rgba(202, 218, 194, 0.8);
    border-radius: 8px;
    background: rgba(248, 251, 246, 0.92);
    box-shadow: 0 8px 24px rgba(47, 62, 47, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.faq-item:hover {
    background: #f2f8f1;
}

.faq-item[open] {
    border-color: var(--decoration);
    box-shadow: 0 12px 30px rgba(47, 62, 47, 0.09);
}

.faq-item summary {
    position: relative;
    padding: 18px 56px 18px 20px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 550;
    line-height: 1.45;
    list-style: none;
}

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

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 18px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent-dark);
    background: var(--line);
    font-size: 1.2rem;
    font-weight: 400;
    transform: translateY(-50%);
    transition: color 180ms ease;
}

.faq-item:not([open]):hover summary::after {
    color: var(--ink);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.faq-item p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--black);
    line-height: 1.7;
}

@media (min-width: 1000px) {
    .faq-section {
        padding-block: 30px 50px;
    }
}

/* ==========================================================================
   12. Patička
   ========================================================================== */

footer {
    padding: 30px 20px;
    font-size: 0.8rem;
    text-align: center;
    color: var(--paper);
    background: #243324;
}

.site-footer-panel {
    padding: 52px 0 58px;
    font-size: 1rem;
    text-align: left;
    color: rgba(248, 251, 246, 0.76);
    background: #303330;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
}

.site-footer-copy {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid var(--white);
    font-size: 0.8rem;
    text-align: center;
}

.site-footer-brand {
    min-width: 0;
}

.site-footer-column {
    min-width: 0;
}

.site-footer-brand {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 25px;
    row-gap: 22px;
}

.site-footer-identity {
    align-self: start;
    display: grid;
    gap: 2px;
}

.site-footer-meta {
    margin: 0;
    font-size: 1.10rem;
    line-height: 1.5;
}

.site-footer-contacts {
    display: grid;
    grid-column: 1 / -1;
    justify-items: center;
    gap: 6px;
}

.site-footer-column {
    position: static;
    inset: auto;
    z-index: auto;
    width: auto;
    margin: 0;
}

.site-footer-logo {
    display: flex;
    align-self: start;
    align-items: center;
    gap: 14px;
}

.site-footer-name {
    display: inline-block;
    color: var(--paper);
    font-size: clamp(1.55rem, 5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-decoration: none;
}

.site-footer-name strong {
    color: var(--decoration);
}

.site-footer-email {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-size: 1.10rem;
}

.site-footer-whatsapp,
.site-footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--decoration);
    text-decoration: none;
    font-size: 1.10rem;
}

.site-footer-email {
    color: var(--paper);
}

.site-footer-icon {
    flex: none;
    width: 18px;
    height: 18px;
}

.site-footer-email:hover,
.site-footer-whatsapp:hover,
.site-footer-phone:hover {
    color: var(--accent-warm);
}

.site-footer-column a:not(.button):hover {
    color: var(--accent-warm);
}

.site-footer-column h2 {
    margin: 0 0 14px;
    color: var(--paper);
    font-size: 1.3rem;
    line-height: 1.25;
}

.site-footer-column ul {
    display: grid;
    justify-content: start;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-column a:not(.button) {
    display: inline-flex;
    align-items: center;
    padding: 7px 0;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(248, 251, 246, 0.76);
    text-decoration: none;
    transition: color 180ms ease;
}

@media (min-width: 700px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 32px;
    }
}

@media (min-width: 1000px) {
    .site-footer-panel {
        padding-block: 30px 10px;
    }

    .site-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 22px 42px;
    }

    .site-footer-column a:not(.button) {
        font-size: 1.05rem;
    }
}

/* Služby — jednoduché karty */
@media (max-width: 699px) {
    section.services {
        padding: 44px 0 72px;
        overflow: hidden;
        background: #f2f7f0;
        scroll-margin-top: 0;

    }

    .services::before {
        display: none;
        content: none;
    }

    .services .section-title.section-title-first {
        margin-bottom: 24px;
    }

    .services>.page-width {
        width: min(calc(100% - 8px), var(--page-width));
    }

    .services .sluzby-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        gap: 64px;
    }

    .services .sluzba-card-link {
        position: relative;
        display: block;
        isolation: isolate;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .services .sluzba-card {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: start;
        column-gap: 16px;
        row-gap: 0;
    }

    .services .sluzba-card::before,
    .services .sluzba-card::after {
        content: none;
    }

    .services .sluzba-card>.sluzba-icon {
        position: relative;
        z-index: 3;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        justify-self: start;
        width: 76px;
        height: 76px;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        transform: none;
        animation: none;
    }

    .services .sluzba-icon::before {
        content: none;
    }

    .services .sluzba-icon-img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: contain;
        filter: none;
        box-shadow: none;
    }

    .services .sluzba-card>.sluzba-content {
        position: relative;
        z-index: 2;
        display: block;
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        min-width: 0;
        height: auto;
        margin: 14px 0 0;
        padding: 0;
        background: transparent;
        background-image: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        text-align: left;
    }

    .services.home-services .sluzba-card>.sluzba-content {
        display: flex;
        flex-direction: column;
    }

    .services .sluzba-content .sluzba-otazka {
        width: 100%;
        margin: 0 0 12px;
        padding: 0;
        color: var(--accent-dark);
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1.45;
        text-align: center;
    }

    .services.home-services .sluzba-content .sluzba-otazka {
        order: 0;
    }

    .services.home-services .sluzba-content p {
        order: 1;
    }

    .services .sluzba-content h3 {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0 0 14px;
        padding: 0;
        color: var(--ink);
        font-size: 1.35rem;
        line-height: 1.3;
        text-align: left;
    }

    .services.home-services .sluzba-content h3 {
        --slant: 16px;
        width: fit-content;
        max-width: 100%;
        min-height: 48px;
        order: 2;
        margin: 24px auto 0;
        padding: 11px 30px;
        align-items: center;
        color: var(--ink);
        background: var(--accent);
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1.3;
        text-align: center;
        clip-path: polygon(0 0, calc(100% - var(--slant)) 0, 100% 100%, var(--slant) 100%);
    }

    .services .sluzba-card h3::after {
        content: none;
    }

    .services .sluzba-card-link::after {
        content: none;
    }

    /* SVG čáru vkládá skript. */
    .services .service-flow-line {
        position: absolute;
        top: 80px;
        left: 22px;
        width: 40px;
        height: calc(100% - 16px);
        z-index: 1;
        overflow: visible;
        pointer-events: none;
        filter: drop-shadow(0 0 1px rgba(47, 62, 47, 0.3));
    }

    .services .service-flow-line path {
        fill: none;
        stroke-linecap: butt;
        stroke-linejoin: miter;
        vector-effect: non-scaling-stroke;
    }

}

@media (min-width: 700px) {
    .services .service-flow-line {
        display: none;
    }
}

/* Výzvy ke kontaktu — bez skosených prvků nad a pod sekcí (mobil) */
@media (max-width: 699px) {
    .price-cta-inner>div {
        padding-right: 0;
        text-align: center;
    }

    .price-cta-inner>div p {
        margin-block: 12px;
    }

    .price-cta-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .price-cta-inner .button-light {
        position: relative;
        top: 0;
        height: 48px;
        font-size: 1.25rem;
        margin: auto 0 0;
    }

    .price-cta-line {
        display: none;
    }

    .price-cta-inner::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 100vw;
        height: 48px;
        transform: translateX(-50%);
        z-index: -1;
        pointer-events: none;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 48' preserveAspectRatio='none'%3E%3Cpath d='M0 16 H44 L56 32 H100' fill='none' stroke='white' stroke-opacity='.55' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    }

    .price-cta::before,
    .portfolio::before,
    .redesign-page .web-solutions + .price-cta + .redesign-reasons::before,
    .latest-articles::before {
        display: none;
        content: none;
    }
}

/* Tlačítka v hero sekci a portfoliu */
.hero-actions,
.portfolio-actions {
    filter:
        drop-shadow(0 6px 5px rgba(47, 62, 47, 0.18)) drop-shadow(0 16px 14px rgba(47, 62, 47, 0.28));
}

/* Tlačítko Kontakt v navigaci */
.site-header nav li:has(> .kontakt-tlacitko) {
    filter:
        drop-shadow(0 6px 5px rgba(47, 62, 47, 0.18)) drop-shadow(0 14px 12px rgba(47, 62, 47, 0.28));
}

/* Tlačítka na stránce Kódování — stejný vzhled jako Kontakt v navigaci */
.button-prace {
    --slant: 10px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    clip-path: polygon(0 0, calc(100% - var(--slant)) 0, 100% 100%, var(--slant) 100%);
    color: var(--ink);
    background: var(--accent);
    transition: background-color 180ms ease;
}

.button-prace:hover {
    color: var(--paper);
    background: var(--accent);
}

.button-prace::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-prace:hover::after {
    transform: scaleY(1);
}

/* Bez automatického pohybu */
.button,
.site-header nav .kontakt-tlacitko {
    animation: none;
    transform: none;
}

/* Vybrané projekty — stejný statický efekt levitace jako u služeb (mobil) */
@media (max-width: 699px) {
    .portfolio-grid {
        gap: 28px;
    }

    .section-title {
        margin-top: 18px;
        margin-bottom: 18px;
    }

    :is(.services, .portfolio, .latest-articles, .faq-section) .section-title {
        margin-top: 18px;
        margin-bottom: 18px;
    }

    :is(.services, .portfolio, .latest-articles, .faq-section) .section-title.section-title-first {
        margin-top: 18px;
        margin-bottom: 18px;
    }

    :is(.services, .portfolio, .latest-articles, .faq-section) .section-title h2 {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto auto;
        justify-content: center;
        align-items: center;
        row-gap: 8px;
    }

    :is(.services, .portfolio, .latest-articles, .faq-section) .section-title h2::before {
        display: none;
    }

    :is(.services, .portfolio, .latest-articles, .faq-section) .section-title h2::after {
        flex: none;
        margin: 0;
        grid-column: 1 / -1;
        grid-row: 2;
    }

    :is(.services, .portfolio, .latest-articles, .faq-section) .section-title h2 span {
        margin-left: 0.25em;
        grid-column: 2;
        grid-row: 1;
    }

    .portfolio-card::before,
    .portfolio-card::after {
        display: none;
    }

    .portfolio-image {
        border: 1px solid #e0ebe2;
        border-radius: 8px;
        box-shadow:
            0 3px 5px rgba(47, 62, 47, 0.03),
            0 12px 22px rgba(47, 62, 47, 0.08),
            0 26px 42px rgba(47, 62, 47, 0.12);
        transform: none;
        animation: none;
        transition: none;
    }

    .portfolio-image img,
    .portfolio-card:hover .portfolio-image img,
    .articles-empty-media img,
    .articles-empty-state:hover .articles-empty-media img,
    .articles-empty-state:focus-visible .articles-empty-media img {
        transform: none;
        transition: none;
    }
}

/* ===== POHYBLIVÝ ČTVEREČEK NA ČÁŘE ===== */

@media (max-width: 699px) {

    /* Vypnutí původního statického čtverečku */
    .services .sluzba-card-link::before {
        content: none;
    }

    /* Nový pohyblivý čtvereček */
    .services .service-flow-marker {
        position: absolute;
        z-index: 4;

        width: 12px;
        height: 12px;

        background: var(--accent);
        border: 1px solid #ffffff;
        border-radius: 0;

        transform: translate(-50%, -50%);
        pointer-events: none;
        opacity: 0;
    }
}

@media (min-width: 700px) {
    .services .service-flow-marker {
        display: none;
    }
}

/* Podstránka — kódování a redesign. Sdílené karty, FAQ a CTA zůstávají společné. */
.redesign-page .redesign-reasons {
    padding-block: 44px;
    background: linear-gradient(180deg, var(--line), var(--paper) 42%);
}
.redesign-page .faq-section.redesign-reasons::before {
    top: -1px;
    height: 33px;
    background: var(--ink);
}
.redesign-page .redesign-services-grid {
    padding-bottom: 0;
}
.redesign-page .redesign-service-card {
    align-items: center;
}
@media (min-width: 700px) and (max-width: 999px) {
    .redesign-page .redesign-service-card:nth-child(odd) {
        background-image: linear-gradient(rgba(47, 62, 47, 0.22), rgba(47, 62, 47, 0.22));
        background-size: 1px 150px;
        background-position: right center;
        background-repeat: no-repeat;
    }
}
@media (min-width: 1000px) {
    .redesign-page .redesign-service-card:nth-child(3n + 1),
    .redesign-page .redesign-service-card:nth-child(3n + 2) {
        background-image: linear-gradient(rgba(47, 62, 47, 0.22), rgba(47, 62, 47, 0.22));
        background-size: 1px 150px;
        background-position: right center;
        background-repeat: no-repeat;
    }
}
@media (max-width: 699px) {
    .redesign-page .redesign-service-card {
        padding-bottom: 2px;
        background-image: linear-gradient(rgba(47, 62, 47, 0.22), rgba(47, 62, 47, 0.22));
        background-size: 280px 1px;
        background-position: center bottom;
        background-repeat: no-repeat;
    }

    .redesign-page .redesign-service-card .cta-eyebrow {
        font-size: 1.0625rem;
    }

    .redesign-page .redesign-service-card h3 {
        font-size: 1.625rem;
    }

    .redesign-page .redesign-service-card > .articles-empty-content > p:not(.cta-eyebrow) {
        font-size: 1rem;
    }
}
@media (min-width: 700px) {
    .redesign-page .redesign-service-card {
        display: grid;
        grid-row: span 5;
        grid-template-rows: subgrid;
        row-gap: 0;
        align-items: stretch;
    }

    .redesign-page .redesign-service-card .articles-empty-content {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
        row-gap: 0;
        align-items: start;
        justify-items: center;
    }
}
@media (min-width: 1000px) {
    .redesign-page .redesign-service-card .articles-empty-content h3 {
        font-size: 1.8rem;
    }
}
/* Spojnice karet redesignu — desktop, dvě řady po třech. */
@media (min-width: 1100px) {
    .redesign-page .redesign-service-card {
        --gap: 28px;
        --service-line-top: 13px;
        --service-line-left: calc(50% + 36px);
        --service-line-width: calc(100% + var(--gap) - 72px);
        --service-line-height: 46px;
        --service-line-opacity: 0;
    }
}

@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
    .redesign-page .redesign-service-card {
        --service-duration: 16s;
        --service-square-animation: redesignSquareDraw;
        --service-delay: 0s;
    }

    .redesign-page .redesign-service-card:nth-child(2) {
        --service-delay: -12s;
    }

    .redesign-page .redesign-service-card:nth-child(4) {
        --service-delay: -8s;
    }

    .redesign-page .redesign-service-card:nth-child(5) {
        --service-delay: -4s;
    }

    .redesign-page .redesign-service-card:not(:nth-child(3n)):not(:last-child)::before {
        animation: redesignLineDraw var(--service-duration) linear infinite;
        animation-delay: var(--service-delay);
    }

    @keyframes redesignLineDraw {
        0%, 25%, 100% {
            clip-path: inset(0 100% 0 0);
            opacity: 0;
        }
        0.75% {
            clip-path: inset(0 100% 0 0);
            opacity: 1;
        }
        6.75% {
            clip-path: inset(0 69% 0 0);
            opacity: 1;
        }
        13.5% {
            clip-path: inset(0 49% 0 0);
            opacity: 1;
        }
        23.25% {
            clip-path: inset(0);
            opacity: 1;
        }
        24.99% {
            clip-path: inset(0);
            opacity: 0;
        }
    }

    @keyframes redesignSquareDraw {
        0%, 25%, 100% {
            left: calc(50% + 36px);
            top: 59px;
            opacity: 0;
        }
        0.75% {
            left: calc(50% + 36px);
            top: 59px;
            opacity: 1;
        }
        6.75% {
            left: calc(81% + 22.36px);
            top: 59px;
            opacity: 1;
        }
        13.5% {
            left: calc(101% + 13.56px);
            top: 13px;
            opacity: 1;
        }
        23.25% {
            left: calc(150% - 8px);
            top: 13px;
            opacity: 1;
        }
        24.99% {
            left: calc(150% - 8px);
            top: 13px;
            opacity: 0;
        }
    }
}

.redesign-page .redesign-service-media {
    width: 72px;
    height: 72px;
    flex: none;
    aspect-ratio: auto;
    margin-inline: auto;
    overflow: visible;
    background: transparent;
}
.redesign-page .redesign-service-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.redesign-page .redesign-reasons li + li {
    margin-top: 12px;
}

.redesign-page .redesign-reasons-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 32px;
}
.redesign-page .redesign-reasons-layout picture img {
    width: 100%;
    height: auto;
}

.redesign-page .web-creation-image {
    display: block;
    position: relative;
    align-self: stretch;
}
@media (min-width: 1000px) {
    .redesign-page .redesign-reasons-layout .web-creation-image img {
        position: absolute;
        inset: 0;
        height: 100%;
        object-fit: cover;
    }
}

.redesign-page .redesign-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
}
.redesign-page .redesign-benefits li {
    position: relative;
    padding-left: 24px;
}
.redesign-page .redesign-benefits li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
}

.redesign-page .services::before {
    content: none;
}

@media (min-width: 1000px) {
    .redesign-page > .services:first-child {
        margin-top: -38px;
        padding-top: 34px;
    }

    .redesign-page .redesign-reasons-layout {
        grid-template-columns: minmax(0, 3fr) minmax(0, 3fr);
        gap: 64px;
    }
}


/*  geometrické oddělení řešení webu */

.redesign-page .services.web-solutions,
.redesign-page .web-solutions + .price-cta::before {
    --pozadi-dekorace: #B5CEBE;
}

.redesign-page .web-solutions + .price-cta::before {
    background: var(--pozadi-dekorace);
}

.redesign-page .services.web-solutions {
    --divider-width: min(calc(100% - 32px), var(--page-width));
    --divider-height: 32px;

    position: relative;
    margin-top: var(--divider-height);
    padding-top: 48px;
    background: var(--pozadi-dekorace);
    box-shadow: 0 calc(-1 * var(--divider-height)) 0 var(--paper);
    overflow: visible;
}

/* Geometrický barevný přechod mezi sekcemi. */
.redesign-page .services.web-solutions::before {
    content: "";
    display: block;
    position: absolute;
    top: calc(-1 * var(--divider-height));
    left: 0;
    right: auto;
    width: 100%;
    height: var(--divider-height);
    background: var(--pozadi-dekorace);
    clip-path: polygon(
        0 0,
        calc(50% - var(--divider-width) * 0.03) 0,
        calc(50% + var(--divider-width) * 0.01) 100%,
        100% 100%,
        0 100%
    );
    pointer-events: none;
}

@media (max-width: 699px) {
    .redesign-page .services.web-solutions {
        box-shadow: 0 calc(-1 * var(--divider-height)) 0 #f2f7f0;
    }
}

@media (min-width: 700px) {
    .redesign-page .services.web-solutions {
        --divider-width: min(calc(100% - 64px), var(--page-width));
    }
}

/* Cookies — společné okno, tlačítka využívají existující styly. */
.cookie-dialog {
    width: min(560px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid var(--pozadi-dekorace, #B5CEBE);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}
.cookie-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.cookie-content { margin: 0; padding: 24px; border-top: 4px solid var(--accent); }
.cookie-content h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.2; }
.cookie-dialog .cookie-content p { margin: 0; font-size: 16px; line-height: 1.65; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cookie-actions > .button { flex: 1 1 180px; }
.cookie-options > .button { width: 100%; }
.cookie-dialog .button, [data-cookie-open] { font-family: inherit; cursor: pointer; }
.cookie-dialog button:focus-visible, [data-cookie-open]:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: -6px;
}
.cookie-dialog input:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.cookie-options { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--pozadi-dekorace, #B5CEBE); }
.cookie-options label { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.cookie-options input { flex: none; width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent-dark); }
.cookie-options small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; }
@media (min-width: 700px) {
    .cookie-content { padding: 32px; }
}
@media (min-width: 1000px) {
    .cookie-dialog {
        top: auto;
        bottom: 6dvh;
        margin: 0 auto;
        max-height: 88dvh;
    }
}


