﻿.services-section {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}
.service-item a {
    text-decoration: none;
    color: inherit; /* zachová barvu textu */
}

    .service-item a:hover {
        text-decoration: none;
    }


.service-item {
    background-color: #ffffff;
    border-radius: 50px;
    padding: 1.5rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    max-width: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 20rem;
    height: 18rem;
}

    .service-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

.service-icon {
    width: 8rem;
    height: auto;
    margin-bottom: 2rem;
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

    .services-section h2::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.25rem;
        width: 6px;
        height: 90%;
        background-color: #007bff; /* modrý proužek */
        border-radius: 3px;
    }
.about-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    max-width: 80rem;
    margin: 0 auto;
}

.about-text {
    flex: 1 1 50%;
    padding: 2rem;
    min-width: 300px;
}

    .about-text h2 {
        position: relative;
        font-size: 2rem;
        margin-bottom: 1.5rem;
        padding-left: 1rem;
    }

        .about-text h2::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.2rem;
            width: 5px;
            height: 80%;
            background-color: #007bff;
            border-radius: 3px;
        }

.about-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

    .about-list li {
        margin-bottom: 1rem;
        position: relative;
        padding-left: 1.5rem;
        font-weight: 500;
    }

        .about-list li::before {
            content: "●";
            position: absolute;
            left: 0;
            color: #007bff;
            font-size: 1.2rem;
            line-height: 1;
        }

.btn-primary {
    background-color: #0056b3;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

    .btn-primary:hover {
        background-color: #003d80;
    }

.about-image {
    flex: 1 1 50%;
    max-width: 600px;
    max-height: 400px;
    overflow: hidden;
}

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.button-wrapper {
    text-align: right;
    margin-top: 1.5rem;
}
/* 1. Dlaždice - při 1024px dej jen 2 na řádek */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2. Dlaždice - pod 768px dej 1 na řádek */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .service-item {
        width: 90%;
        height: auto;
        aspect-ratio: unset;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1.5rem;
    }
}

/* 3. Statistiky - poskládat pod sebe na malých displejích */
@media (max-width: 768px) {
    .simple-stats {
        flex-direction: column;
    }

    .stat-block {
        width: 100%;
    }
}