/* Paragonka — Sjednocený vizuální styl podstránek */

/* 0. Pojistky (dropdown menu a animace maskotky pro stránky, kde v inline CSS chybí) */
.group:hover .dropdown-menu {
    display: block;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* 1. Adaptivní tmavá navigace nad tmavou hlavičkou (bez bílé 1px linky) */
nav.glass-panel {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}
nav.pg-nav-dark {
    background: rgba(3, 5, 10, 0.80) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}
nav.pg-nav-dark > div.max-w-7xl > a > span {
    color: #ffffff !important;
}
nav.pg-nav-dark > div.max-w-7xl > div.hidden.md\:flex > a,
nav.pg-nav-dark > div.max-w-7xl > div.hidden.md\:flex > div > button {
    color: #cbd5e1 !important;
}
nav.pg-nav-dark > div.max-w-7xl > div.hidden.md\:flex > a:hover,
nav.pg-nav-dark > div.max-w-7xl > div.hidden.md\:flex > div > button:hover {
    color: #5eead4 !important;
}
nav.pg-nav-dark > div.max-w-7xl > div.hidden.md\:block > a {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 55%, #0d9488 100%) !important;
    color: #031517 !important;
    box-shadow: 0 8px 24px -6px rgba(20, 184, 166, 0.58) !important;
}
nav.pg-nav-dark > div.max-w-7xl > div.md\:hidden > button {
    color: #e2e8f0 !important;
}

/* 2. Tmavá hlavička podstránek sladěná s úvodní sekcí */
body > header {
    position: relative;
    background-color: #03050a !important;
    background-image:
        radial-gradient(ellipse 68% 62% at 72% 18%, rgba(20, 184, 166, 0.24) 0%, rgba(13, 148, 136, 0.08) 48%, transparent 74%),
        radial-gradient(ellipse 45% 42% at 15% 85%, rgba(56, 189, 248, 0.11) 0%, transparent 70%) !important;
    border-bottom: 1px solid rgba(45, 212, 191, 0.22) !important;
    color: #f8fafc;
}
body > header::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(45, 212, 191, 0.72) 50%, transparent 100%);
    pointer-events: none;
    z-index: 15;
}
body > header .bg-grid {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
    background-size: 48px 48px !important;
    opacity: 0.75 !important;
    mask-image: radial-gradient(ellipse 80% 75% at 45% 30%, #000 20%, transparent 88%);
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 45% 30%, #000 20%, transparent 88%);
}
body > header .inline-flex.rounded-full {
    background: rgba(20, 184, 166, 0.14) !important;
    border-color: rgba(45, 212, 191, 0.34) !important;
    color: #5eead4 !important;
    box-shadow: none !important;
}
body > header h1 {
    color: #ffffff !important;
    letter-spacing: -0.035em;
}
body > header h1 span.text-transparent,
body > header h1 span.bg-clip-text {
    background-image: linear-gradient(115deg, #a7f3d0 0%, #5eead4 45%, #2dd4bf 100%) !important;
    display: inline-block;
    padding-bottom: 0.1em;
}
body > header p {
    color: #94a3b8 !important;
}
/* Statistické karty uvnitř hlavičky (např. paragonka-vs-cloud.html) */
body > header .grid > div {
    background: rgba(255, 255, 255, 0.045) !important;
    border-color: rgba(255, 255, 255, 0.11) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}
body > header .grid > div .text-slate-900 {
    color: #ffffff !important;
}
body > header .grid > div .text-brand-600 {
    color: #5eead4 !important;
}
body > header .grid > div .text-emerald-600 {
    color: #34d399 !important;
}
body > header .grid > div .text-slate-500 {
    color: #94a3b8 !important;
}

/* 3. Tmavý postranní box <aside> u obsahových stránek (funkce, důvody, srovnání) */
main:has(.content-body) aside > div.sticky {
    background-color: #060b14 !important;
    background-image: radial-gradient(ellipse 90% 55% at 88% 0%, rgba(20, 184, 166, 0.2), transparent 66%) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow:
        0 24px 56px -18px rgba(2, 6, 23, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0;
}
main:has(.content-body) aside > div.sticky h3 {
    color: #ffffff !important;
}
main:has(.content-body) aside > div.sticky .text-slate-400 {
    color: #94a3b8 !important;
}
main:has(.content-body) aside > div.sticky .text-slate-800,
main:has(.content-body) aside > div.sticky .text-slate-900 {
    color: #f8fafc !important;
}
main:has(.content-body) aside > div.sticky .text-emerald-600 {
    color: #34d399 !important;
}
main:has(.content-body) aside > div.sticky .border-slate-200 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
main:has(.content-body) aside > div.sticky a.bg-slate-900,
main:has(.content-body) aside > div.sticky button.bg-slate-900 {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 55%, #0d9488 100%) !important;
    color: #031517 !important;
    font-weight: 800 !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(153, 246, 228, 0.52) !important;
    box-shadow:
        0 12px 28px -8px rgba(20, 184, 166, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}
main:has(.content-body) aside > div.sticky a.bg-slate-900:hover,
main:has(.content-body) aside > div.sticky button.bg-slate-900:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}
main:has(.content-body) aside > div.sticky button.bg-white,
main:has(.content-body) aside > div.sticky a.bg-white {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    border-radius: 9999px !important;
}
main:has(.content-body) aside > div.sticky button.bg-white:hover,
main:has(.content-body) aside > div.sticky a.bg-white:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(94, 234, 212, 0.45) !important;
    color: #ffffff !important;
}

/* 4. Tmavé akcentní bloky a srovnávací tabulky uvnitř <main> */
main .bg-slate-900:not(a):not(button) {
    background-color: #060b14 !important;
    background-image: radial-gradient(ellipse 85% 55% at 85% 0%, rgba(20, 184, 166, 0.16), transparent 66%);
    border-color: rgba(148, 163, 184, 0.18) !important;
}
main table thead tr.bg-slate-900 {
    background-color: #060b14 !important;
    background-image: none !important;
}
main table thead tr.bg-slate-900 th.bg-brand-600 {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
}

/* 5. Rozcestník nástrojů (nastroje.html) a hlavní akční tlačítka v nástrojích */
.cat-btn {
    border-radius: 9999px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}
.cat-btn.bg-brand-600 {
    background-color: #060b14 !important;
    color: #5eead4 !important;
    border: 1px solid rgba(45, 212, 191, 0.42) !important;
    box-shadow: 0 8px 20px -8px rgba(3, 5, 10, 0.45);
}
.tool-card {
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}
.tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 184, 166, 0.55) !important;
    box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.14) !important;
}

main button.w-full.bg-brand-600,
main button.w-full.bg-slate-900 {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 55%, #0d9488 100%) !important;
    color: #031517 !important;
    font-weight: 800 !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(153, 246, 228, 0.5) !important;
    box-shadow:
        0 12px 26px -8px rgba(20, 184, 166, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    cursor: pointer;
}
main button.w-full.bg-brand-600:hover,
main button.w-full.bg-slate-900:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* 6. Sjednocený spodní #kontakt-blok napříč celým webem */
#kontakt-blok {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 55%, #0f766e 100%) !important;
}
#kontakt-blok a[href*="kontakt"] {
    background-color: #03050a !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
#kontakt-blok a[href*="kontakt"]:hover {
    background-color: #ffffff !important;
    color: #0f766e !important;
}

/* PG-REVEAL-START */
.pg-reveal {
    opacity: 0 !important;
    transform: translate3d(0, 28px, 0) !important;
    transition:
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: opacity, transform;
}
.pg-reveal.pg-reveal-active {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}
@media (prefers-reduced-motion: reduce) {
    .pg-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}
/* PG-REVEAL-END */

/* PG-VSECHNY-DUVODY-START */
body > header > .pointer-events-none {
    display: none !important;
}
body.bg-slate-900 {
    background-color: #03050a !important;
}
body > section.bg-slate-900 {
    background-color: #03050a !important;
    background-image: radial-gradient(ellipse 65% 30% at 50% 0%, rgba(20, 184, 166, 0.12), transparent 70%);
}
body > section.bg-slate-900 .grid > a.bg-slate-800 {
    background: linear-gradient(180deg, rgba(14, 22, 38, 0.94) 0%, rgba(8, 13, 24, 0.98) 100%) !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
    border-radius: 1.35rem !important;
    box-shadow:
        0 18px 40px -18px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}
body > section.bg-slate-900 .grid > a.bg-slate-800:hover {
    border-color: rgba(45, 212, 191, 0.48) !important;
    box-shadow:
        0 24px 50px -16px rgba(0, 0, 0, 0.78),
        0 0 32px -14px rgba(20, 184, 166, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
body > section.bg-slate-900 .grid > a.bg-slate-800 > span:first-child {
    color: rgba(94, 234, 212, 0.24) !important;
}
body > section.bg-slate-900 .grid > a.bg-slate-800:hover > span:first-child {
    color: #2dd4bf !important;
}
/* PG-VSECHNY-DUVODY-END */

/* PG-KONTAKT-DARK-START */
#kontakt-blok {
    position: relative;
    margin-top: 0 !important;
    background-color: #060c18 !important;
    background-image:
        radial-gradient(ellipse 75% 52% at 50% 85%, rgba(20, 184, 166, 0.32) 0%, rgba(13, 148, 136, 0.1) 48%, transparent 74%),
        radial-gradient(ellipse 50% 40% at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 65%) !important;
    border-top: 1px solid rgba(45, 212, 191, 0.22);
    border-bottom: 1px solid rgba(45, 212, 191, 0.16);
    color: #f8fafc !important;
}
@media (min-width: 768px) {
    #kontakt-blok {
        background-image:
            radial-gradient(ellipse 44% 88% at 78% 72%, rgba(20, 184, 166, 0.34) 0%, rgba(13, 148, 136, 0.11) 46%, transparent 74%),
            radial-gradient(ellipse 48% 55% at 12% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 65%) !important;
    }
}
#kontakt-blok::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(45, 212, 191, 0.72) 50%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}
#kontakt-blok > .overflow-hidden {
    display: none !important;
}
#kontakt-blok .inline-flex.rounded-full {
    background: rgba(20, 184, 166, 0.14) !important;
    border: 1px solid rgba(45, 212, 191, 0.34) !important;
    color: #5eead4 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}
#kontakt-blok h2 {
    color: #ffffff !important;
    letter-spacing: -0.03em;
}
#kontakt-blok p {
    color: #94a3b8 !important;
    opacity: 1 !important;
}
#kontakt-blok p strong {
    color: #f8fafc !important;
}
#kontakt-blok a[href*="kontakt"] {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 55%, #0d9488 100%) !important;
    color: #031517 !important;
    font-weight: 800 !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(153, 246, 228, 0.55) !important;
    box-shadow:
        0 0 36px -4px rgba(20, 184, 166, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
#kontakt-blok a[href*="kontakt"]:hover {
    filter: brightness(1.07);
    color: #031517 !important;
    box-shadow:
        0 0 46px -2px rgba(45, 212, 191, 0.78),
        inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}
#kontakt-blok a[href*="kontakt"] svg {
    color: #031517 !important;
}
#kontakt-blok img[src*="maskotka"] {
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.6));
}
@media (max-width: 767px) {
    #kontakt-blok .animate-float {
        margin-bottom: -1.5rem !important;
    }
}
/* PG-KONTAKT-DARK-END */

/* PG-TOOL-BRIDGE-START */
.pg-tool-bridge {
    position: relative;
    margin-top: 3.5rem;
    border-radius: 1.5rem;
    padding: 1.75rem 1.5rem;
    background-color: #060b14;
    background-image:
        radial-gradient(ellipse 68% 85% at 88% 12%, rgba(20, 184, 166, 0.24), transparent 68%),
        radial-gradient(ellipse 46% 60% at 10% 90%, rgba(56, 189, 248, 0.1), transparent 66%);
    border: 1px solid rgba(45, 212, 191, 0.26);
    box-shadow:
        0 26px 56px -20px rgba(2, 6, 23, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    overflow: hidden;
}
@media (min-width: 768px) {
    .pg-tool-bridge {
        padding: 2.25rem 2.5rem;
    }
}
.pg-tool-bridge::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(45, 212, 191, 0.8) 50%, transparent 100%);
    pointer-events: none;
}
.pg-tb-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
}
@media (min-width: 1024px) {
    .pg-tb-inner {
        flex-direction: row;
        align-items: center;
        gap: 2.25rem;
    }
}
.pg-tb-left {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    max-width: 42rem;
}
.pg-tb-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.95rem;
    background: rgba(20, 184, 166, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.32);
    padding: 0.35rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pg-tb-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5eead4;
    margin-bottom: 0.35rem;
}
.pg-tb-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0 0 0.45rem;
}
.pg-tb-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}
.pg-tb-desc strong {
    color: #f1f5f9;
    font-weight: 600;
}
.pg-tb-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
    width: 100%;
}
@media (min-width: 1024px) {
    .pg-tb-actions {
        width: auto;
        justify-content: flex-end;
    }
}
.pg-tb-btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    padding: 0.85rem 1.6rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 55%, #0d9488 100%);
    color: #031517;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid rgba(153, 246, 228, 0.55);
    box-shadow: 0 12px 28px -8px rgba(20, 184, 166, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.pg-tb-btn-main:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}
.pg-tb-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.45rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pg-tb-btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(94, 234, 212, 0.45);
    color: #ffffff;
}
/* PG-TOOL-BRIDGE-END */

/* PG-FOOTER-FIX-START */
footer a[href*="comgate"] {
    flex-shrink: 0;
}
footer img[src*="comgate"] {
    width: auto !important;
    height: 1.25rem !important;
    max-width: none !important;
}
@media (min-width: 1024px) {
    footer .lg\:justify-end {
        flex-wrap: nowrap !important;
    }
}
/* PG-FOOTER-FIX-END */

/* PG-LOGO-STYLE-START */
nav[aria-label="Hlavní navigace"] > div.max-w-7xl > a > span {
    font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 500 !important;
    text-transform: lowercase !important;
    font-size: 1.75rem !important;
    letter-spacing: -0.015em !important;
    line-height: 1 !important;
}
footer > div.max-w-7xl > div:first-child > span {
    font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    text-transform: lowercase !important;
    font-size: 1.38rem !important;
    letter-spacing: -0.015em !important;
    line-height: 1 !important;
}
/* PG-LOGO-STYLE-END */
