/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Author: Brainstorm Force
Author URI: https://wpastra.com/about/
Description: Astra Child Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* Inline kritické CSS pro rychlejší první vykreslení */
#critical-inline-css {
    /* Reset a základní styly */
}
body{margin:0;padding:0;background:#e8f4fe;padding-top:70px}
.tiskarna-custom-header{background:rgba(255,255,255,.95);position:fixed;top:0;left:0;right:0;z-index:999;height:70px}
.hero-wrapper{min-height:calc(100vh - 100px);display:flex;align-items:center;justify-content:center}
.hero-main-box{max-width:1400px;width:100%;background:white;border-radius:30px;min-height:600px}

/* Skrytí původní Astra hlavičky */
.ast-main-header-wrap,
.ast-mobile-header-wrap,
.ast-masthead-custom-menu-items,
#ast-desktop-header,
#ast-mobile-header {
    display: none !important;
}

/* Vlastní hlavička */
.tiskarna-custom-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(92, 176, 250, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
}

.tiskarna-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.tiskarna-nav {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tiskarna-nav li {
    margin: 0;
    padding: 0;
}

.tiskarna-nav a {
    color: #666666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

.tiskarna-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5cb0fa;
    transition: width 0.3s ease;
}

.tiskarna-nav a:hover {
    color: #5cb0fa;
}

.tiskarna-nav a:hover::after {
    width: 100%;
}

/* Přidání paddingu na body kvůli fixed hlavičce */
/* Pro hlavní stránku (index) */
body.home:not(.elementor-editor-active) {
    padding-top: 70px !important;
}

/* Pro všechny ostatní stránky */
body:not(.home):not(.elementor-editor-active) {
    padding-top: 100px !important;
}

/* Responzivní design */
@media (max-width: 768px) {
    .tiskarna-header-inner {
        padding: 0 20px;
    }
    
    .tiskarna-nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tiskarna-header-inner {
        height: auto;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .tiskarna-nav {
        gap: 15px;
    }
    
    .tiskarna-nav a {
        font-size: 13px;
    }
}

/* Critical CSS pro okamžité vykreslení - zabrání CLS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.hero-wrapper {
    min-height: calc(100vh - 100px);
    height: calc(100vh - 100px);
    padding: 40px 40px 0px 40px;
    width: 100%;
    contain: layout style paint;
}
.hero-main-box {
    max-width: 1400px;
    width: 100%;
    min-height: 600px;
    margin: 0 auto;
    contain: layout style paint;
}
.categories-section {
    min-height: 600px;
    padding: 60px 40px;
    contain: layout;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    min-height: 400px;
}
.category-card {
    height: 70px;
    min-height: 70px;
}
.services-section {
    min-height: 400px;
    padding: 80px 40px;
    contain: layout;
}
@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Reset pro správné pozadí */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient( #e8f4fe 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Přepis všech Astra containerů */
body.page-template-tiskarna-homepage .ast-container,
body.page-template-tiskarna-homepage .site-content,
body.page-template-tiskarna-homepage .content-area,
body.page-template-tiskarna-homepage #primary,
body.page-template-tiskarna-homepage #main,
body.page-template-tiskarna-homepage .site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hero-wrapper {
    position: relative;
    min-height: calc(100vh - 100px);
    height: calc(100vh - 100px); /* Přidejte fixed height */
    padding: 40px 40px 0px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    contain: layout style; /* Přidejte containment */
}

/* Interaktivní prvky v pozadí */
.bg-shape {
    position: absolute;
    opacity: 0.6;
    will-change: transform; /* Přidat */
    z-index: 1;
}

.bg-shape-1 {
    top: 10%;        /* ← TADY: vzdálenost od vrchu */
    left: 5%;        /* ← TADY: vzdálenost od levého okraje */
    width: 120px;    /* ← TADY: šířka tvaru */
    height: 120px;   /* ← TADY: výška tvaru */
    background: #5cb0fa;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph1 15s ease-in-out infinite;
}

.bg-shape-2 {
    top: 60%;        /* ← TADY: vzdálenost od vrchu */
    right: 8%;       /* ← TADY: vzdálenost od pravého okraje */
    width: 150px;    /* ← TADY: šířka tvaru */
    height: 150px;   /* ← TADY: výška tvaru */
    background: #7ac2fb;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph2 20s ease-in-out infinite;
}

.bg-shape-3 {
    bottom: 15%;     /* ← TADY: vzdálenost od spodu */
    left: 10%;       /* ← TADY: vzdálenost od levého okraje */
    width: 80px;     /* ← TADY: šířka tvaru */
    height: 80px;    /* ← TADY: výška tvaru */
    background: #4a9ce5;
    border-radius: 40% 60% 70% 30% / 40% 60% 30% 70%;
    animation: morph3 18s ease-in-out infinite;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 176, 250, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
}

.bg-circle-1 {
    top: 20%;        /* ← TADY: vzdálenost od vrchu */
    right: 15%;      /* ← TADY: vzdálenost od pravého okraje */
    width: 200px;    /* ← TADY: šířka kruhu */
    height: 200px;   /* ← TADY: výška kruhu */
    animation-delay: 0s;
}

.bg-circle-2 {
    bottom: 30%;     /* ← TADY: vzdálenost od spodu */
    left: 20%;       /* ← TADY: vzdálenost od levého okraje */
    width: 300px;    /* ← TADY: šířka kruhu */
    height: 300px;   /* ← TADY: výška kruhu */
    animation-delay: 2s;
}

@keyframes morph1 {
    0%, 100% {
        transform: rotate(0deg) translate3D(0, 0);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    33% {
        transform: rotate(120deg) translate3D(30px, -30px);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    66% {
        transform: rotate(240deg) translate3D(-20px, 20px);
        border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    }
}

@keyframes morph2 {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        border-radius: 30% 70% 60% 40% / 30% 60% 40% 70%;
    }
}

@keyframes morph3 {
    0%, 100% {
        transform: rotate(0deg) translate3D(0, 0);
        border-radius: 40% 60% 70% 30% / 40% 60% 30% 70%;
    }
    50% {
        transform: rotate(180deg) translate3D(20px, 20px);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

.hero-main-box {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    background: white;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(92, 176, 250, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    /* Přidejte tyto řádky pro stabilizaci layoutu */
    min-height: 600px;
    contain: layout style paint;
    will-change: auto;
}

/* Přepis Astra omezení */
.ast-container,
.ast-container-fluid,
.site-content,
.content-area,
.site-main,
.entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hero sekce uvnitř boxu - OPRAVENO */
.hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    position: relative;
    overflow: visible;
    padding: 80px 50px;
    width: 100%;
    box-sizing: border-box;
}

.hero-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: slideInLeft 1s ease-out;
    animation-delay: 0.1s; /* Přidejte toto */
    animation-fill-mode: backwards; /* Přidejte toto */
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-logo {
    margin-bottom: 30px;
    margin-top: -40px;
}

.hero-logo svg {
    width: 280px;
    height: 80px;
}

.hero-logo-text {
    font-size: 42px;
    font-weight: 900;
    fill: #5cb0fa;
    filter: drop-shadow(0 4px 10px rgba(92, 176, 250, 0.2));
}

.hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero-title span {
    background: linear-gradient(135deg, #5cb0fa 0%, #4a9ce5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #666666;
}

.hero-feature-icon {
    width: 24px;
    height: 24px;
    background: #e8f4fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5cb0fa;
    font-size: 14px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #5cb0fa 0%, #4a9ce5 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(92, 176, 250, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(92, 176, 250, 0.4);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero-primary:hover::before {
    width: 300px;
    height: 300px;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    animation: slideInRight 1s ease-out;
    min-width: 400px;
    /* Přidejte pro stabilizaci */
    aspect-ratio: 400/500;
    contain: layout;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(92, 176, 250, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 220px;
    cursor: pointer;
    will-change: transform;
    overflow: hidden;
}

/* Glassmorphism hover efekt */
.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(92, 176, 250, 0.1) 0%, 
        transparent 40%,
        transparent 60%,
        rgba(122, 194, 251, 0.1) 100%
    );
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.hero-card:hover::before {
    opacity: 1;
}

.hero-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 30px 80px rgba(92, 176, 250, 0.25),
        0 0 0 1px rgba(92, 176, 250, 0.3) inset;
    border-color: rgba(92, 176, 250, 0.4);
    transform: translateY(-5px);
}

/* Badge pro karty */
.hero-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #5cb0fa 0%, #4a9ce5 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(92, 176, 250, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-card-1 .hero-card-badge {
    background: linear-gradient(135deg, #ff6384 0%, #ff4560 100%);
    box-shadow: 0 4px 15px rgba(255, 99, 132, 0.3);
}

.hero-card-2 .hero-card-badge {
    background: linear-gradient(135deg, #36a2eb 0%, #2c87bf 100%);
    box-shadow: 0 4px 15px rgba(54, 162, 235, 0.3);
}

.hero-card-3 .hero-card-badge {
    background: linear-gradient(135deg, #ffce56 0%, #ffb800 100%);
    box-shadow: 0 4px 15px rgba(255, 206, 86, 0.3);
}

/* Moderní rozložení karet s překryvem a natočením */
.hero-card-1 {
    top: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);  /* Změněno z -3deg na 0deg */
    z-index: 3;
    animation: cardFloat1 8s ease-in-out infinite;
}

.hero-card-2 {
    top: 150px;
    right: 5%;
    transform: rotate(-15deg) translateY(-20px);
    z-index: 2;
    animation: cardFloat2 9s ease-in-out infinite;
}

.hero-card-3 {
    top: 150px;
    left: 5%;
    transform: rotate(15deg) translateY(-20px);
    z-index: 4;
    animation: cardFloat3 10s ease-in-out infinite;
}

/* Pro hover efekt - karty se "srovnají" */
.hero-card-1:hover {
    transform: translateX(-50%) rotate(0deg) translateY(-10px) scale(1.05);
    z-index: 10;
}

.hero-card-2:hover {
    transform: rotate(-5deg) translateY(-30px) scale(1.05);
    z-index: 10;
}

.hero-card-3:hover {
    transform: rotate(5deg) translateY(-30px) scale(1.05);
    z-index: 10;
}

/* Upravená animace pro kartu 1 - zůstává rovně */
@keyframes cardFloat1 {
    0%, 100% { 
        transform: translateX(-50%) rotate(2deg) translateY(-10px); 
    }
    25% { 
        transform: translateX(-50%) rotate(-1deg) translateY(-5px); 
    }
    50% { 
        transform: translateX(-50%) rotate(2deg) translateY(-20px); 
    }
    75% { 
        transform: translateX(-50%) rotate(0deg) translateY(-15px); 
    }
}

@keyframes cardFloat2 {
    0%, 100% { 
        transform: rotate(8deg) translateY(0) translateX(20px); 
    }
    20% { 
        transform: rotate(10deg) translateY(-8px) translateX(25px); 
    }
    40% { 
        transform: rotate(6deg) translateY(-15px) translateX(15px); 
    }
    60% { 
        transform: rotate(10deg) translateY(-10px) translateX(22px); 
    }
    80% { 
        transform: rotate(7deg) translateY(-5px) translateX(18px); 
    }
}

@keyframes cardFloat3 {
    0%, 100% { 
        transform: rotate(-14deg) translateY(10px) translateX(0); 
    }
    30% { 
        transform: rotate(-12deg) translateY(-5px) translateX(5px); 
    }
    60% { 
        transform: rotate(-15deg) translateY(-15px) translateX(-5px); 
    }
    90% { 
        transform: rotate(-12deg) translateY(5px) translateX(3px); 
    }
}

/* Jemná rotační animace */
@keyframes cardRotate1 {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

@keyframes cardRotate2 {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(-10deg); }
}

@keyframes cardRotate3 {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(5deg); }
}

/* Stíny pro větší hloubku */
.hero-card-1::after,
.hero-card-2::after,
.hero-card-3::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, transparent 70%);
    filter: blur(10px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.hero-card:hover::after {
    bottom: -30px;
    opacity: 0.3;
    width: 90%;
}

.hero-card-emoji {
    font-size: 48px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(92, 176, 250, 0.1) 0%, rgba(122, 194, 251, 0.05) 100%);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.hero-card:hover .hero-card-emoji {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, rgba(92, 176, 250, 0.2) 0%, rgba(122, 194, 251, 0.1) 100%);
}

.hero-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-card:hover .hero-card-title {
    background: linear-gradient(135deg, #5cb0fa 0%, #4a9ce5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-card-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.hero-card:hover .hero-card-text {
    color: #444444;
}

/* Barevné akcenty pro každou kartu */
.hero-card-1 .hero-card-emoji {
    background: linear-gradient(135deg, rgba(255, 99, 132, 0.1) 0%, rgba(255, 99, 132, 0.05) 100%);
}

.hero-card-2 .hero-card-emoji {
    background: linear-gradient(135deg, rgba(54, 162, 235, 0.1) 0%, rgba(54, 162, 235, 0.05) 100%);
}

.hero-card-3 .hero-card-emoji {
    background: linear-gradient(135deg, rgba(255, 206, 86, 0.1) 0%, rgba(255, 206, 86, 0.05) 100%);
}

/* Responzivní design - UPRAVENO */
@media (max-width: 1480px) {
    .hero-wrapper {
        padding: 30px;
    }
}

@media (max-width: 1200px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-visual {
        min-width: 350px;
    }
    
    .hero-card {
        width: 190px;
        padding: 25px;
    }
    
    .hero-card-emoji {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }
    
    .hero-banner {
        padding: 60px 40px;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-visual {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .bg-shape, .bg-circle {
        display: none;
    }
    
    .hero-wrapper {
        padding: 20px;
    }
    
    .hero-banner {
        padding: 60px 30px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-logo svg {
        width: 220px;
        height: 60px;
    }
    
    .hero-logo-text {
        font-size: 32px;
    }
    
    .btn-hero {
        padding: 16px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-wrapper {
        padding: 15px;
    }
    
    .hero-main-box {
        border-radius: 20px;
    }
    
    .hero-banner {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-features {
        gap: 15px;
    }
    
    .hero-feature {
        font-size: 14px;
    }
}

/* Critical CSS pro okamžité vykreslení */
.hero-wrapper {
    min-height: calc(100vh - 100px);
    height: calc(100vh - 100px);
}
.hero-main-box {
    width: 100%;
    max-width: 1400px;
    min-height: 600px;
}

/* SEKCE KATEGORIÍ */
.categories-section {
    padding: 60px 40px;
    background: #e8f4fe;
    overflow: hidden;
    min-height: 600px; /* Přidejte fixní výšku */
    contain: layout style;
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.categories-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categories-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: -20px;
}

.categories-title span {
    background: linear-gradient(135deg, #5cb0fa 0%, #4a9ce5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    min-height: 400px; /* Přidejte minimální výšku */
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(92, 176, 250, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    max-height: 70px;
    min-height: 70px; /* Ujistěte se, že je zde */
    height: 70px; /* Přidejte fixní výšku */
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(92, 176, 250, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(92, 176, 250, 0.15);
    border-color: rgba(92, 176, 250, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.category-card:hover .category-name {
    color: #5cb0fa;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    transition: color 0.3s ease;
    margin: 0;
}

/* Responzivní design */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 20px 15px;
        min-height: 80px;
    }
    
    .category-name {
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .categories-section {
        padding: 40px 20px;
    }
    
    .categories-title {
        font-size: 32px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 18px 12px;
        min-height: 70px;
    }
    
    .category-name {
        font-size: 13px;
    }
}

/* SEKCE SLUŽEB */
.services-section {
    padding: 80px 40px;
    background:#e8f4fe;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    animation: rotate 40s linear infinite;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.services-title {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0px;
}

.services-title span {
    background: linear-gradient(135deg, #5cb0fa 0%, #4a9ce5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-subtitle {
    font-size: 20px;
    color: #666666;
    margin-bottom: -20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(92, 176, 250, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(92, 176, 250, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(92, 176, 250, 0.2);
    border-color: rgba(92, 176, 250, 0.3);
}

.service-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(92, 176, 250, 0.1) 0%, rgba(122, 194, 251, 0.05) 100%);
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(92, 176, 250, 0.2) 0%, rgba(122, 194, 251, 0.1) 100%);
}

.service-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-desc {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #5cb0fa 0%, #4a9ce5 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(92, 176, 250, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.service-btn:hover::before {
    width: 200px;
    height: 200px;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(92, 176, 250, 0.4);
}

.service-btn svg {
    transition: transform 0.3s ease;
}

.service-btn:hover svg {
    transform: translateX(3px);
}

/* Responzivní design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-title {
        font-size: 36px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        font-size: 48px;
        width: 80px;
        height: 80px;
    }
    
    .service-name {
        font-size: 20px;
    }
    
    .service-desc {
        font-size: 14px;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Skrytí původního Astra footeru */
.site-footer,
.ast-footer,
footer.site-footer {
    display: none !important;
}

/* Footer styly */
.custom-footer {
    background: #5cb0fa;
    color: white;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5cb0fa 0%, #4a9ce5 50%, #5cb0fa 100%);
    background-size: 200% 100%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 30px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #5cb0fa;
    border-radius: 2px;
}

.footer-info {
    line-height: 1.8;
}

.footer-info p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.footer-info .company-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '▸';
    color: #fff;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: #fff;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #fff;
}

/* Spodní část footeru */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

/* Responzivní design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-column:first-child {
        order: -1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright {
        order: 2;
    }
}