@media (max-width: 768px) {
    .wp-block-domee-hero-section {
        max-width: none;
        width: 100%;
        margin: 0;
        padding-left: 4px;
        padding-right: 4px;
    }

    .wp-block-domee-hero-section .hero-content,
    .wp-block-domee-hero-section .hero-container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .wp-block-domee-hero-section .hero-card {
        margin: 0 var(--karta-okraj-mobil) !important;
        padding: 40px 20px !important;
    }

}
.wp-block-domee-hero-section {
    margin: 0;
    padding: 60px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: visible;
}

/* Plná karta jako ostatní karty webu (tokeny ze style.css). Dřív poloprůhledná se sklem
   a šikmým přechodem v ::before + nadskakování při najetí -> šikmé pruhy a nepřirozený stín. */
.wp-block-domee-hero-section .hero-card {
    background: var(--karta-bg);
    border-radius: var(--radius-l);
    padding: 60px 40px;
    border: 0;
    box-shadow: var(--karta-stin);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.wp-block-domee-hero-section .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.wp-block-domee-hero-section .hero-text {
    text-align: left;
    animation: fadeInUp 0.8s ease-out;
}

.wp-block-domee-hero-section .hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #2C3639;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.wp-block-domee-hero-section .hero-subtitle {
    font-size: 20px;
    color: #6C757D;
    margin-bottom: 32px;
    line-height: 1.5;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.wp-block-domee-hero-section .hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

.wp-block-domee-hero-section .btn {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.wp-block-domee-hero-section .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.wp-block-domee-hero-section .btn:hover::before {
    left: 100%;
}

.wp-block-domee-hero-section .btn-primary {
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.wp-block-domee-hero-section .btn-primary:hover {
    background: linear-gradient(135deg, #E67E22, #D35400);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.wp-block-domee-hero-section .btn-primary-modern {
    background: var(--gradient-brand-smooth);
    color: white;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
}

.wp-block-domee-hero-section .btn-primary-modern:hover {
    background: var(--gradient-modern-diagonal);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.4);
}

.wp-block-domee-hero-section .btn-secondary {
    background: #fff;
    border: 2px solid rgba(39, 174, 96, 0.3);
    color: #2C3639;
}

.wp-block-domee-hero-section .btn-secondary:hover {
    border-color: #27AE60;
    color: #27AE60;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.2);
}

.wp-block-domee-hero-section .app-download-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px; /* hned pod CTA, řádek důvěry až pod nimi */
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out 0.8s both;
}

.wp-block-domee-hero-section .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(44, 54, 57, 0.9);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-s);
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    font-size: 12px;
}

.wp-block-domee-hero-section .download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.wp-block-domee-hero-section .download-btn:hover::before {
    left: 100%;
}

.wp-block-domee-hero-section .download-btn:hover {
    background: rgba(44, 54, 57, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 54, 57, 0.3);
}

.wp-block-domee-hero-section .download-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.wp-block-domee-hero-section .download-btn:hover .download-icon {
    transform: scale(1.1);
}

.wp-block-domee-hero-section .download-text {
    display: flex;
    flex-direction: column;
}

.wp-block-domee-hero-section .download-label {
    font-size: 10px;
    opacity: 0.8;
    line-height: 1;
}

.wp-block-domee-hero-section .download-store {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.wp-block-domee-hero-section:has(> .hero-dekorace) {
    position: relative;
}

/* Tvar přesahuje vpravo (right: -60/-80 px). Do šířky ~1180 px vyčuhoval mimo stránku
   a šlo ji posunout do strany (mobil 462 px při 390). Na širším desktopu je hero užší
   než okno a tvar má vykukovat za kartou - proto ořez jen do 1279 px. clip, ne hidden:
   nevytváří scrollovací kontejner, svisle tvar přesahovat smí. */
@media (max-width: 1279px) {
    .wp-block-domee-hero-section:has(> .hero-dekorace) {
        overflow-x: clip;
    }
}

/* Tvar z loga v pozadí (Hero → Tvar z loga v pozadí) - za kartou, vpravo nahoře */
.wp-block-domee-hero-section .hero-dekorace {
    position: absolute;
    z-index: 0;
    top: -120px;
    right: -60px;
    width: 520px;
    height: 520px;
    color: var(--color-secondary, #27AE60);
    opacity: 0.08;
    pointer-events: none;
}

.wp-block-domee-hero-section .hero-card {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .wp-block-domee-hero-section .hero-dekorace {
        width: 300px;
        height: 300px;
        top: -60px;
        right: -80px;
    }
}

.wp-block-domee-hero-section .hero-visual {
    position: relative; /* kotva plovoucího štítku */
    text-align: center;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.wp-block-domee-hero-section .hero-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-l);
    overflow: visible;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.wp-block-domee-hero-section .hero-image:hover {
    transform: translateY(-4px);
}

.wp-block-domee-hero-section .hero-image-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-m);
    transition: transform 0.3s ease;
}

.wp-block-domee-hero-section .hero-image:hover .hero-image-img {
    transform: scale(1.05);
}

.wp-block-domee-hero-section .hero-video {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.wp-block-domee-hero-section .hero-video:hover {
    transform: translateY(-4px);
}

.wp-block-domee-hero-section .hero-video-iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-m);
    transition: transform 0.3s ease;
}

.wp-block-domee-hero-section .hero-video:hover .hero-video-iframe {
    transform: scale(1.02);
}

.wp-block-domee-hero-section .hero-image.has-logo-shape,
.wp-block-domee-hero-section .hero-video.has-logo-shape {
    position: relative;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.wp-block-domee-hero-section .has-logo-shape .hero-image-img,
.wp-block-domee-hero-section .has-logo-shape .hero-video-iframe {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    -webkit-clip-path: url(#domeeHeroClip);
    clip-path: url(#domeeHeroClip);
}

.wp-block-domee-hero-section .has-logo-shape:hover .hero-image-img,
.wp-block-domee-hero-section .has-logo-shape:hover .hero-video-iframe {
    transform: none;
}

.wp-block-domee-hero-section .hero-shape-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--color-primary);
    pointer-events: none;
    overflow: visible;
}

/* Fotka v domečku: měkký stín kopírující tvar (drop-shadow řídí alfa ořezu, box-shadow by
   kreslil čtverec) a posunutý brandový tvar za ní - vrstvené jako logo. */
.wp-block-domee-hero-section .has-logo-shape .hero-image-img,
.wp-block-domee-hero-section .has-logo-shape .hero-video-iframe {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 18px 28px rgba(44, 54, 57, 0.22));
}

.wp-block-domee-hero-section .hero-shape-zadni {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: translate(3.5%, 3.5%);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.28) 0%, rgba(243, 156, 18, 0.32) 100%);
    -webkit-clip-path: url(#domeeHeroClip);
    clip-path: url(#domeeHeroClip);
    pointer-events: none;
}

.wp-block-domee-hero-section .has-logo-shape .hero-shape-ring {
    z-index: 2;
}

.wp-block-domee-hero-section .domee-hero-clip-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.wp-block-domee-hero-section .hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(39, 174, 96, 0.1));
    border: 2px dashed rgba(243, 156, 18, 0.3);
    border-radius: var(--radius-l);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6C757D;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.wp-block-domee-hero-section .hero-image-placeholder:hover {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(39, 174, 96, 0.15));
    border-color: rgba(243, 156, 18, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(243, 156, 18, 0.2);
}

.wp-block-domee-hero-section .placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.wp-block-domee-hero-section .placeholder-icon {
    font-size: 24px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.wp-block-domee-hero-section .hero-image-placeholder:hover .placeholder-icon {
    transform: scale(1.1);
}

.wp-block-domee-hero-section .placeholder-text {
    font-size: 16px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .wp-block-domee-hero-section {
        padding: 40px 0;
    }

    .wp-block-domee-hero-section .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .wp-block-domee-hero-section .hero-text {
        text-align: center;
    }

    .wp-block-domee-hero-section .hero-title {
        font-size: 28px;
    }

    .wp-block-domee-hero-section .hero-subtitle {
        font-size: 16px;
    }

    .wp-block-domee-hero-section .hero-cta {
        justify-content: center;
    }

    .wp-block-domee-hero-section .app-download-buttons {
        justify-content: center;
    }

    .wp-block-domee-hero-section .hero-image-placeholder {
        height: 300px;
    }

    .wp-block-domee-hero-section .download-btn {
        min-width: 160px;
    }

}
@media (min-width: 769px) and (max-width: 1024px) {
    .wp-block-domee-hero-section .hero-content {
        gap: 40px;
    }

    .wp-block-domee-hero-section .hero-title {
        font-size: 36px;
    }

    .wp-block-domee-hero-section .hero-subtitle {
        font-size: 18px;
    }

    .wp-block-domee-hero-section .hero-card {
        padding: 50px 30px;
        margin: 0 30px;
    }

}
.wp-block-domee-hero-section .hero-microcopy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 14px 0 0 0;
    font-size: 16px;
    color: var(--color-gray, #6C757D);
}

.wp-block-domee-hero-section .hero-microcopy .microcopy-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary, #F39C12);
    flex-shrink: 0;
}

/* Řádek důvěry: každá položka mikrotextu se zelenou fajfkou */
.wp-block-domee-hero-section .hero-microcopy__polozka {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
}

.wp-block-domee-hero-section .hero-microcopy__polozka .domee-ikona {
    font-size: 17px;
    color: var(--color-secondary, #27AE60);
}

/* Plovoucí skleněný štítek přes obrázek (Hero → Nadtitulek a štítek) */
.wp-block-domee-hero-section .hero-stitek {
    position: absolute;
    z-index: 3;
    left: -18px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(320px, 80%);
    padding: 12px 16px 12px 12px;
    text-align: left;
    background: var(--milk-noise), var(--milk-bg-strong);
    backdrop-filter: var(--milk-blur);
    -webkit-backdrop-filter: var(--milk-blur);
    border: 1px solid var(--milk-border);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-2), var(--ring);
    animation: hero-stitek-in 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) 0.9s both;
}

.wp-block-domee-hero-section .hero-stitek__ikona {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-s);
    background: rgba(39, 174, 96, 0.12);
    color: #1E8A4C;
    font-size: 21px;
}

.wp-block-domee-hero-section .hero-stitek__text {
    display: flex;
    flex-direction: column;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--color-gray, #6C757D);
}

.wp-block-domee-hero-section .hero-stitek__text strong {
    font-size: 15px;
    color: var(--color-dark, #2C3639);
}

@keyframes hero-stitek-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .wp-block-domee-hero-section .hero-stitek { animation: none; }
}

/* Video (MP4): poměr stran podle souboru, max. ~520 px na výšku (společná komponenta
   .domee-video ve style.css). Plovoucí štítek by zakryl spodek telefonu - jde pod video. */
.wp-block-domee-hero-section .hero-mp4.domee-video {
    --domee-video-max-h: 520px;
}

.wp-block-domee-hero-section .hero-visual.hero-visual--mp4 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wp-block-domee-hero-section .hero-visual--mp4 .hero-stitek {
    position: static;
    order: 2;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .wp-block-domee-hero-section .hero-mp4.domee-video {
        --domee-video-max-h: 420px;
    }
}

/* Mobil: obrázek je malý, štítek by zakryl polovinu - pod obrázek, na střed */
@media (max-width: 768px) {
    .wp-block-domee-hero-section .hero-visual {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .wp-block-domee-hero-section .hero-stitek {
        position: static;
        order: 2;
        max-width: 100%;
        margin-top: 14px;
    }
}

.wp-block-domee-hero-section .hero-secondary-link {
    margin: 10px 0 0 0;
    font-size: 15px;
}

.wp-block-domee-hero-section .hero-secondary-link a {
    color: var(--color-gray, #6C757D);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.wp-block-domee-hero-section .hero-secondary-link a:hover {
    color: #E67E22;
}

@media (max-width: 768px) {
    .wp-block-domee-hero-section .hero-microcopy {
        justify-content: center;
    }

    .wp-block-domee-hero-section .hero-secondary-link {
        text-align: center;
    }

}
