@font-face {
  font-family: 'Metropolis';
  src: url('/assets/fonts/Metropolis-Regular.otf') format('opentype');
  font-weight: 400; /* Normal weight */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('/assets/fonts/Metropolis-Bold.otf') format('opentype');
  font-weight: 700; /* Bold weight */
  font-style: normal;
  font-display: swap;
}


/* --- Variables & Reset --- */
:root {
    --primary: #486e5b;
    --primary-hover: #588157;
    --primary-light: #dad7cd;
    
    --bg-white: #ceded6;
    --bg-beige: #f3efe0;
    --bg-light-beige: #f4f3ee;
    
    --text-main: #2b2b2b;
    --text-muted: #555555;
    
    --border: #cccccc;
    --radius: 8px;
    --shadow: 0 4px 15px rgba(52, 78, 65, 0.08);
    --shadow-hover: 0 10px 25px rgba(52, 78, 65, 0.15);
    
    --font-heading: 'Metropolis', sans-serif;
    --font-text: 'Metropolis', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-text);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
}

.bg-beige {
    background-color: var(--bg-beige);
}

.bg-light-beige {
    background-color: var(--bg-light-beige);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.section-header {
    margin-bottom: 50px;
}

.section-header.center-align {
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-hover);
    margin-bottom: 20px;
}

.center-align .divider {
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background-color: transparent; 
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    color: white;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 120px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    color: var(--text-main);
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    margin-top: 30px;
    height: 90px;
    width: auto;
    transition: height 0.3s ease;
}

.header.scrolled .logo-img {
    margin-top: 0px;
    height: 90px; /* Zmenšení loga při scrollování */
}

@media (max-width: 770px) {
.logo-img {
    margin-top: 10px;
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
}
.header.scrolled .logo-img {
    margin-top: 0px;
    height: 70px; /* Zmenšení loga při scrollování */
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 100px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    color: var(--text-main);
}
}
.nav-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2); 
    border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.header.scrolled .lang-btn {
    border-color: var(--border);
    background: transparent;
    color: var(--text-main);
}

.header.scrolled .lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-hover);
    transition: width 0.3s;
}

.header:not(.scrolled) .main-nav a::after {
    background-color: white; 
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit; 
}

/* --- Hero --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    will-change: transform, opacity;
    opacity: 0; /* Hide all by default */
    animation: crossfade 40s infinite; /* 40 seconds total loop */
}

/* Stagger the start times for all 4 images using negative delays */
.hero-bg .slide:nth-child(1) { animation-delay: 0s; }
.hero-bg .slide:nth-child(2) { animation-delay: -30s; }
.hero-bg .slide:nth-child(3) { animation-delay: -20s; }
.hero-bg .slide:nth-child(4) { animation-delay: -10s; }

/* The new 4-image crossfade math */
@keyframes crossfade {
    0%   { opacity: 1; }   /* Fully visible */
    20%  { opacity: 1; }   /* Start fading out (after 8 seconds) */
    25%  { opacity: 0; }   /* Fully faded out (at 10 seconds) */
    95%  { opacity: 0; }   /* Start fading in (at 38 seconds) */
    100% { opacity: 1; }   /* Fully visible again */
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Ensures it works on Safari */
    background-color: rgba(0, 0, 0, 0.15); /* Adds a very subtle dark tint */
    pointer-events: none; /* Prevents the overlay from blocking any clicks */
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 60px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 16px;
    opacity: 1;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.text-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.credential-col h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.credential-col ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 14px;
    border-left: 3px solid var(--primary-hover);
}

/* --- Services & Accordions --- */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-light); 
    color: var(--primary); 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-details {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.service-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-hover);
    list-style: none; 
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.service-details summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: normal;
}

.service-details[open] summary::after {
    content: '-';
}

.service-list {
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.service-list li::before {
    content: "•";
    color: var(--primary);
    margin-right: 8px;
    font-weight: bold;
}

/* --- Pricing & FAQ --- */
.pricing-table-container {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-top: 4px solid var(--primary);
    max-width: 900px;
    margin: 0 auto 15px auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pricing-table td {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr {
    transition: background-color 0.2s;
}

.pricing-table tr:hover {
    background-color: var(--primary);
}

.pricing-table h3 {
    font-family: var(--font-heading);
    font-size: 1.15em;
    color: var(--text-main);
    margin-bottom: 0px;
}

.pricing-table .price-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.pricing-table .price-col {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    white-space: nowrap;
    width: 30%;
}

/* Responzivita ceníku pro menší obrazovky */
@media (max-width: 650px) {
    /* Odstraněno display: block - buňky zůstanou přirozeně na jednom řádku */
    .pricing-table td {
        padding: 16px 15px; /* Menší odsazení pro úsporu místa */
        vertical-align: middle;
    }
    
    .pricing-table h3 {
        font-size: 1rem; /* Zmenšení názvu služby */
        margin-bottom: 2px;
    }

    .pricing-table .price-desc {
        font-size: 0.85rem; /* Zmenšení popisku (např. techniky dle indikace...) */
        line-height: 1.4;
    }
    
    .pricing-table .price-col {
        text-align: right; /* Zarovnání ceny vpravo */
        font-size: 1.15rem; /* Zmenšená cena, aby se vešla */
        padding-top: 16px; /* Sladění odsazení */
        padding-left: 15px; /* Bezpečná mezera mezi dlouhým textem a cenou */
        width: auto;
        white-space: nowrap; /* Zabrání ošklivému zalomení ceny (např. 1 \n 500 Kč) */
    }


}

/* --- Skrytý accordion uvnitř tabulky --- */
.pricing-table .accordion-row td {
    padding: 0; 
    border-bottom: 1px solid var(--border);
}

.inline-accordion summary {
    padding: 16px 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-muted);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.015); /* podbarvení */
    transition: background-color 0.2s, color 0.2s;
}

.inline-accordion summary:hover {
    color: var(--primary);
    background-color: rgba(0,0,0,0.03);
}

.inline-accordion summary::-webkit-details-marker {
    display: none;
}

.inline-accordion summary::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    transition: transform 0.3s ease;
    display: flex;
}

.inline-accordion[open] summary::after {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 15px 30px 25px 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    background-color: rgba(0,0,0,0.015);
}

.accordion-content p {
    margin-bottom: 12px;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* Informace pod ceníkem */
.pricing-info {
    max-width: 850px;
    margin: 40px auto 0 auto;
    text-align: center;
    color: var(--text-main);
}

.pricing-info p {
    margin-bottom: 12px;
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid #f0f0f0;
}

.faq-content p {
    margin-bottom: 10px;
}

.styled-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}
.styled-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* --- Contact --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-form-card {
    border-top: 4px solid var(--primary);
}

.form-group {
    margin-bottom: 30px;
    margin-top: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fcfcfc;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

.full-width {
    width: 100%;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-beige); 
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.05);
}

.icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white; 
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-card .value {
    font-weight: 600;
    color: var(--primary);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- Footer --- */
.footer {
    background-color: var(--primary); 
    color: white;
    padding-top: 70px;
    border-top: none;
}

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

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: #eaddcf; 
}

.footer p, .footer li {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer a:hover {
    color: #eaddcf;
    text-decoration: none;
    padding-left: 5px; 
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- Animation --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Media Queries --- */
@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 40% 1fr;
        align-items: start;
    }

    .credentials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-layout {
        grid-template-columns: 400px 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 90px;
        left: -100%; /* Skryto mimo obrazovku */
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--bg-white);
        transition: left 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }

    .header.scrolled .main-nav {
        top: 80px;
        height: calc(100vh - 80px);
    }

    .main-nav.active {
        left: 0; /* Menu se vysune na obrazovku */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    .main-nav a {
        color: var(--text-main) !important; /* Na světlém podkladu mobilu musí být tmavé */
        font-size: 1.5rem;
    }

    .main-nav a::after {
        background-color: var(--primary-hover) !important;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* --- Updated Credentials Section (Grid) --- */
.credentials-full {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr; /* Stacks into a single column on mobile */
    gap: 40px;
}

.seminars-list {
    column-count: 1; 
    column-gap: 40px;
}

/* Prevents bullet points from breaking mid-sentence across two columns */
.seminars-list li {
    break-inside: avoid;
    page-break-inside: avoid;
    display: inline-block; 
    width: 100%;
    margin-bottom: 10px; /* Added a little breathing room between items */
}

/* Tablet and Desktop Layout */
@media (min-width: 768px) {
    .credentials-full {
        grid-template-columns: 1fr 2fr; /* 1 part Vzdělání, 2 parts Semináře */
    }
    
    .seminars-list {
        column-count: 2; /* Splits the long seminar list into 2 columns inside its larger container */
    }
}

/* Formatting for paragraphs inside the expanded Services cards */
.service-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

.service-text p strong {
    color: var(--primary);
}

/* --- Wrapper pro mapy vedle sebe --- */
.maps-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Stacks vertically on mobile screens */
    gap: 20px;
}

/* Places maps side-by-side on tablets and desktops */
@media (min-width: 768px) {
    .maps-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

/* Sets up the summary layout and forces left alignment */
.service-details summary.credential-summary {
    list-style: none; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: flex-start; /* <-- PULLS EVERYTHING TO THE LEFT */
    gap: 10px; 
}

/* KILLS THE INHERITED PLUS ICON */
.service-details summary.credential-summary::after {
    content: none; 
    display: none;
}

/* Hides default browser arrow in Safari/older Chrome */
.service-details summary.credential-summary::-webkit-details-marker {
    display: none;
}

/* Creates the new right-pointing arrow */
.service-details summary.credential-summary::before {
    content: "\25B6"; 
    font-size: 0.85rem; 
    color: var(--primary); /* Swapped to your primary green to match the title! */
    transition: transform 0.2s ease-in-out; 
}

/* Rotates the arrow to point down when the details box is open */
.service-details[open] summary.credential-summary::before {
    transform: rotate(90deg);
}

/* Removes the bottom margin from the h3 so the arrow can center perfectly */
.service-details summary.credential-summary h3 {
    margin: 0;
    line-height: 1.2; /* Keeps the text block tight for better alignment */
}

/* --- Interaktivní bloky Služeb --- */
.services-blocks-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 15px; /* Reduced gap from 30px to fit 5 items */
}

.service-block {
    flex: 1 1 180px; /* Reduced base width */
    max-width: 220px; /* Reduced max-width from 366px */
    position: relative;
    height: 220px; /* Reduced height from 280px to keep square proportions */
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    background-color: var(--bg-white); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-block:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Hides the old image background and dark overlay */
.service-bg,
.service-block::before {
    display: none;
}

.service-title-default {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    line-height: 1.3;
}

.service-block-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: var(--primary); 
    transition: transform 0.3s ease;
    /* New properties below to stack icon and text */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    gap: 12px;
}

/* Overrides the HTML attributes to make the icon bigger */
.service-block-icon svg {
    width: 60px; /* Reduced from 85px */
    height: 60px; /* Reduced from 85px */
}

.service-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--primary); /* Solid green background on hover */
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Při hoveru modifikujeme prvky uvnitř */
.service-block:hover .service-overlay {
    opacity: 1;
}

.service-block:hover .service-bg {
    transform: scale(1.05); /* Lehký zoom efekt na pozadí */
}

.service-overlay h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.15rem; /* Reduced from 1.4rem so longer words don't overflow */
    margin-bottom: 15px;
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.service-overlay .action-text {
    color: #eaddcf; /* Světlejší béžová pro kontrast */
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.service-block:hover .service-overlay h3,
.service-block:hover .service-overlay .action-text {
    transform: translateY(0);
}

/* --- Pop-up Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.modal-header .icon-circle {
    margin-bottom: 0;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0;
    margin-bottom: 21px;
}

/* Responzivita pop-up okna */
@media (max-width: 600px) {
    .modal-content {
        padding: 30px 20px;
    }
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .service-block {
        max-width: 100%; /* Allows cards to take up the full screen width on mobile */
    }
}

@media (min-width: 1024px) {
    .services-blocks-wrapper {
        flex-wrap: nowrap; /* Forces a single horizontal row */
    }
    
    .service-block {
        max-width: none; /* Allows the 5 blocks to stretch and evenly fill the container */
    }
}