/* Optimalizace: @import pro fonty byl odstraněn a přesunut do HTML */

#html_custom_template {
--orange: #ff6600;
--light-bg: #f9fafb;
--white: #ffffff;
--text-dark: #1f2937;
--text-secondary: #6b7280;
--border-color: #e5e7eb;
}

#html_custom_template .page-wrapper *,
#html_custom_template .page-wrapper *:before,
#html_custom_template .page-wrapper *:after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

#html_custom_template body, #html_custom_template html {
font-family: 'Inter', sans-serif;
background-color: var(--light-bg);
color: var(--text-dark);
overflow-x: hidden;
}

#html_custom_template .page-wrapper {
width: 100%;
max-width: 1180px; /* Zmenšená šírka pre lepšie zarovnanie */
margin: 40px auto;
padding: 0 20px;
/* Optimalizace: CSS contain pro lepší výkon vykreslování */
contain: layout style paint;
}

#html_custom_template .section-spacer { margin-top: 80px; }

/* === HLAVNÍ NADPIS STRÁNKY === */
#html_custom_template .page-header { text-align: center; margin-bottom: 50px; }
#html_custom_template .page-header h1 { font-size: clamp(2.5rem, 5vw, 3.5rem) !important; font-weight: 800 !important; color: var(--text-dark) !important; line-height: 1.2 !important; margin-bottom: 15px !important; }
#html_custom_template .page-header h1 span { color: var(--orange) !important; }
#html_custom_template .page-header p { font-size: clamp(1.1rem, 2vw, 1.25rem) !important; color: var(--text-secondary) !important; max-width: 700px; margin: 0 auto !important; line-height: 1.6 !important; }

/* === SEKCE SLUŽEB (PILÍŘE) === */
#html_custom_template .pillars-section-header { text-align: center; margin-bottom: 50px; }
#html_custom_template .pillars-section-header h2 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; margin: 0 0 10px 0; letter-spacing: -0.025em; line-height: 1.2; }
#html_custom_template .pillars-section-header h2 span { color: var(--orange); }
#html_custom_template .pillars-section-header p { font-size: 1.15rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto; line-height: 1.6; }

#html_custom_template .pillars-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 30px;
}
#html_custom_template .pillar-card {
background-color: var(--white);
border-radius: 20px;
padding: 35px;
border: 1px solid var(--border-color);
transition: transform 0.3s ease, box-shadow 0.3s ease;
display: flex;
flex-direction: column;
text-decoration: none;
color: inherit;
/* Optimalizace: will-change pro plynulejší animace */
will-change: transform;
}
#html_custom_template .pillar-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07); }
#html_custom_template .pillar-card__icon { width: 50px; height: 50px; margin-bottom: 25px; color: var(--orange); }
#html_custom_template .pillar-card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
#html_custom_template .pillar-card__description { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
#html_custom_template .pillar-card__link { font-size: 1rem; font-weight: 600; color: var(--orange); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.2s ease; margin-top: auto; }
#html_custom_template .pillar-card__link:hover { gap: 12px; }
#html_custom_template .pillar-card__link svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
#html_custom_template .pillar-card__link:hover svg { transform: translateX(4px); }

/* Pravidla pro rozložení 3x2 */
#html_custom_template .pillars-grid.layout-3-2 > .pillar-card:nth-of-type(-n+3) {
grid-column: span 2;
}
#html_custom_template .pillars-grid.layout-3-2 > .pillar-card:nth-of-type(n+4) {
grid-column: span 3;
}

#html_custom_template .pillars-grid.layout-3-col > .pillar-card {
grid-column: span 2;
}

/* === BLOK S OBRÁZKEM === */
#html_custom_template .feature-block-split { background-color: var(--white); border-radius: 24px; display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--border-color); }
#html_custom_template .feature-block-split--reversed { flex-direction: row-reverse; }
#html_custom_template .feature-block-split__image { flex: 1 1 45%; min-height: 400px; }
#html_custom_template .feature-block-split__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
#html_custom_template .feature-block-split__text { flex: 1 1 55%; padding: 5%; display: flex; flex-direction: column; justify-content: center; }
#html_custom_template .feature-block-split__text h2 { font-size: 2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; line-height: 1.3; }
#html_custom_template .feature-block-split__text p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
#html_custom_template .feature-block-split__text p:last-child { margin-bottom: 0; }

/* Responzivita */
@media (max-width: 992px) {
#html_custom_template .feature-block-split, #html_custom_template .feature-block-split--reversed { flex-direction: column; }
#html_custom_template .pillars-grid {
grid-template-columns: repeat(2, 1fr);
}
#html_custom_template .pillars-grid > *,
#html_custom_template .pillars-grid.layout-3-2 > .pillar-card:nth-of-type(-n+3),
#html_custom_template .pillars-grid.layout-3-2 > .pillar-card:nth-of-type(n+4),
#html_custom_template .pillars-grid.layout-3-col > .pillar-card {
grid-column: span 1;
}
#html_custom_template .pillars-grid > .pillar-card:last-child:nth-child(odd) {
grid-column: span 2;
}
}
@media (max-width: 768px) {
#html_custom_template .pillars-grid {
grid-template-columns: 1fr;
}
#html_custom_template .pillars-grid > *,
#html_custom_template .pillars-grid > .pillar-card:last-child:nth-child(odd) {
grid-column: span 1;
}
}
