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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigace */
.logo {
    background-color: #0e151c;
    display: flex;
    justify-content: center;
}

.top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    font-weight: 800;
}

/* Hero sekce */
.hero {
    height: 70vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 0)), url('./img/hero-image-man-new_uprava_new.png') center/cover;
    display: flex;
    align-items: end;
    padding-left: 8%;
    padding-bottom: 8%;
}

.hero-poradna {
    height: 50vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 0)), url('./img/hero-image-man-new_uprava_new.png') center/cover;
    display: flex;
    align-items: end;
    padding-left: 8%;
    padding-bottom: 5%;
}

.hero-content {
    width: 50vw;
    line-height: 1.2;
}

.hero-content-poradna {
    width: 50vw;
    line-height: 1.2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* Sekce obecně */
.section {
    padding: 80px 0;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.section p {
    font-size: 1rem;
    font-weight: 300;
}

.border-top {
    border-top: 1px solid #333;
}

#onas {
    background-color: #0e151c;
}

#onas strong {
font-size: 1.2rem;
font-weight: 600;
}

/* Mřížka pro karty */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Karta jako Flexbox kontejner */
.service-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    background-color: #0e151c;
    border-radius: 8px;
}

/* 1. Horní zóna (Ikona + Nadpis) */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.card-header .icon {
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1.25rem;
    min-height: 2.8em; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* 2. Střední zóna (Text) */
.card-body {
    flex-grow: 1; 
    display: flex;
    margin-bottom: 25px;
}

.card-body p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 3. Spodní zóna (Tlačítko) */
.card-footer {
    margin-top: auto;
}

.btn-outline {
    display: inline-block;
    margin-top: 30px;
    padding: 5px 20px;
    background: #D9D9D9;
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #D9D9D9;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: transparent;
    border-color: #D9D9D9;
    color: #D9D9D9;
}

/* Tým a tlačítka telefonů */
.grid-team {
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px; 
    width: 100%;
    margin: 0 auto;
}

.team-member {
    text-align: center; 
    flex: 1 1 250px;    
    max-width: 320px;   
}

.team-member h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.team-member p {
    font-size: 0.95rem;
    color: #ccc;
}

.btn-contact {
    display: inline-block;
    margin-top: 30px;
    padding: 5px 20px;
    background: #D9D9D9;
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #D9D9D9;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: transparent;
    border-color: #D9D9D9;
    color: #D9D9D9;
}

/* Odměna */
#odmena {
    background-color: #0e151c;   
}

.pricing-content {
    padding-left: 4rem;
    padding-right: 4rem;
}

.price-item {
    margin-top: 30px;
}

/* Kontakt Form */
.contact-flex {
    display: flex;
    justify-items: center;
    justify-content: center;
    text-align: center;
    gap: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    align-items: center;
    margin-bottom: 2rem;
    
}

.contact-form input, .contact-form textarea {
    background: #333;
    border: none;
    padding: 12px;
    margin-bottom: 15px;
    color: #fff;
    border-radius: 5px;
    width: 50vw;
}

.btn-submit {
    max-width: fit-content;
    background: #fff;
    color: #000;
    border: none;
    margin-top: 20px;
    padding: 12px 50px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px
}

.contact-info img {
    height: 30vh;
    width: fit-content;
}

.address-box div {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-top: 10px;
    justify-content: center;
}

.address-box p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.address-box a {
    color: #fff;
}

footer {
    padding: 40px;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #222;
    background-color: #0e151c;
}

footer a {
    color: #fff;
}

/* Mřížka pro 3 články vedle sebe */
.grid-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    align-items: start;
    margin-top: 40px;
}

/* Karta článku navržená na výšku */
.article-card {
    background-color: #121B24;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: fit-content;
}

.article-image {
    height: 200px;
    width: 100%;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 50px; 
}

.article-text-box {
    margin-bottom: 20px;
}

.short-text {
    font-size: 0.9rem;
    font-weight: 300;
    color: #ccc;
    line-height: 1.6;
}

.article-card.is-open .short-text {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    overflow: hidden;
}

/* Skrytý plný text s plynulým přechodem */
.full-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin-top 0.3s ease;
    font-size: 0.9rem;
    font-weight: 300;
    color: #ccc;
    line-height: 1.6;
}

/* Třída, kterou JavaScript přidá pro rozbalení */
.full-text.open {
    max-height: fit-content;
    margin-top: 15px;
}

/* Tlačítko Číst více */
.btn-read-more {
    background: none;
    border: none;
    color: #fff;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    padding: 0;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: #D9D9D9;
}

/* Stylování prvků uvnitř rozbaleného článku */
.full-text p {
    margin-bottom: 15px; 
    text-align: justify; 
}

.full-text h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 25px 0 10px 0; 
    letter-spacing: 0.5px;
}

.full-text strong {
    color: #fff; 
}

.full-text em {
    font-style: italic;
    color: #e0e0e0;
}

/* Cookie lišta fixovaná na spodním okraji */
.cookie-bar {
    position: fixed;
    bottom: -200px; 
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    z-index: 9999; 
    transition: bottom 0.5s ease-in-out; 
    padding: 20px;
    text-align: center;
}

/* Třída, kterou JS aktivuje lištu */
.cookie-bar.show {
    bottom: 0;
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    width: 40%;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-container p {
    font-size: 0.85rem;
    color: #ede3e3;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
}

/* Tlačítko souhlasu sjednocené s designem webu */
.btn-cookie {
    background-color: #D9D9D9;
    color: #000;
    border: 1px solid #D9D9D9;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0; 
}

.btn-cookie:hover {
    background-color: transparent;
    color: #D9D9D9;
    border-color: #D9D9D9;
}

/* Responzivita pro mobily */
@media (max-width: 768px) {
    
    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-container p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Přizpůsobení tlačítka pro dotykové displeje */
    .btn-cookie {
        width: 100%;
        max-width: 280px; 
        padding: 12px 20px; 
        font-size: 0.9rem;
    }
}

/* Responzivita */
@media (max-width: 768px) {
    .contact-flex { flex-direction: column; }
    .nav-links { flex-direction: column; align-items: center;}
    .logo img { width: 70%;}
    .address-box img { width: 100%;}
    .address-box p { text-align: center;}
    .contact-info {flex-direction: column; gap: 20px;}
    .pricing-content {padding: 1rem;}

    .hero {
        height: auto;          
        min-height: 50vh;     
        padding: 100px 20px 40px 20px; 
        text-align: center;
        background-position: 35% center; 
    }

    .hero-content {
        width: 100%;          
    }

    .hero-content h1 {
        font-size: 2.2rem;     
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 992px) {
    .grid-articles {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .grid-articles {
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .article-content h3 {
        min-height: auto;
    }
}

/* Úprava na mobilních zařízeních pro karty */
@media (max-width: 768px) {
    .card-header h3 {
        min-height: auto;
    }
}