/* --- Základné nastavenia a Premenné (Monochromatická paleta) --- */
:root {
    /* Hlavná čierna/tmavosivá (podľa textu v logu) */
    --primary-color: #1a1a1a;

    /* Akcentná sivá (pre tlačidlá, ikony - stredne tmavá) */
    --accent-color: #404040;

    /* Svetlá sivá (pre pozadia sekcií) */
    --bg-light: #f3f4f6;

    /* Textové farby */
    --text-dark: #111111;
    --text-light: #666666;

    /* Biela */
    --white: #ffffff;

    --max-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Pomocné triedy (Utility) --- */
.text-center {
    text-align: center;
}

/* --- Tlačidlá (Sivé verzie) --- */
.btn-primary, .btn-secondary, .btn-white {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: #000000;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 10px;
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}
.btn-white:hover {
    background-color: transparent;
    color: var(--white);
}

/* --- Layout Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.bg-light { background-color: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}
.section-header .line {
    width: 80px;
    height: 3px;
    background-color: var(--text-light);
    margin: 0 auto 20px;
}
.subtitle { color: var(--text-light); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* --- Navigácia --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e5e5e5;
    height: 140px;
    position: relative;
    width: 100%;
    z-index: 1000;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

/* Vylepšené Logo texty */
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1.5px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.logo-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--text-light); }
.nav-links .btn-primary { padding: 10px 24px; color: var(--white); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }

/* --- Hero Sekcia --- */
.hero {
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 0;
    overflow: hidden;
    background-color: var(--white);
}
.hero-content { position: relative; z-index: 2; max-width: 650px; }
.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 800;
}
.hero p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 40px; max-width: 520px; }

.hero-shape {
    position: absolute; top: -10%; right: -15%; width: 55vw; height: 85vh;
    background: radial-gradient(circle, rgba(240,240,240,1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.8;
}

/* --- O nás --- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
.about-text p { margin-bottom: 20px; font-size: 1.05rem; color: var(--text-light); }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-card {
    background: var(--bg-light); padding: 30px; border-radius: 4px;
    text-align: center; border: 1px solid #e5e5e5;
}
.stat-card h3 { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 5px; font-weight: 700; }
.stat-card p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); }

/* --- Projekty --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid #e5e5e5;
    position: relative;

    /* --- PRIDANÉ PRE ROVNAKÚ VÝŠKU --- */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px; height: 60px;
    background-color: var(--primary-color);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 30px;
}
.icon-box i { font-size: 1.5rem; color: var(--white); }

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-card p {
    color: var(--text-light);
    font-size: 1rem;

    /* --- PRIDANÉ PRE ROVNAKÚ VÝŠKU --- */
    /* Zabezpečí, že ak je v karte menej textu, odsek sa natiahne
       a vyplní prázdne miesto, takže všetko bude ladiť */
    flex-grow: 1;
}
/* --- Náš Tím --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    text-align: center;
}
.team-member {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.team-member:hover {
    border-color: #e5e5e5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}
.member-photo {
    width: 120px; height: 120px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.member-photo i { font-size: 3rem; color: #bbbbbb; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-member h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--primary-color); }
.team-member .role {
    color: var(--text-light);
    font-weight: 600; font-size: 0.85rem; margin-bottom: 15px;
    text-transform: uppercase; letter-spacing: 1px;
}
.team-member .bio { color: var(--text-light); font-size: 0.9rem; }

/* --- Články / Novinky --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    position: relative; /* <-- TOTO PRIDAJ */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.news-image {
    width: 100%;
    height: 220px;
    background-color: #dddddd;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.news-card:hover .news-image {
    filter: grayscale(0%);
}

.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-content .date {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary-color);
}

.news-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    align-self: flex-start;
}
.read-more::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.read-more:hover {
    border-bottom-color: var(--primary-color);
    gap: 12px;
}

/* --- Footer --- */
footer {
    background-color: #111111;
    color: #cccccc;
    padding: 90px 0 0;
}
.footer-content {
    display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 60px; padding-bottom: 70px;
    border-bottom: 1px solid #333333;
}
.footer-col h4 {
    font-size: 1rem; margin-bottom: 25px; color: #ffffff;
    text-transform: uppercase; letter-spacing: 1px;
}
.footer-col p { color: #999999; line-height: 1.8; }
.contact-info li, .links li { margin-bottom: 15px; color: #999999; display: flex; align-items: flex-start; }
.contact-info i { margin-right: 15px; color: #ffffff; margin-top: 5px; }
.links a:hover { color: #ffffff; text-decoration: none; transform: translateX(5px); display: inline-block; transition: var(--transition); }
.footer-bottom { text-align: center; padding: 30px 0; color: #555555; font-size: 0.85rem; }

/* =========================================
   --- RESPONZIVITA (MEDIA QUERIES) ---
   ========================================= */

/* Veľké tablety a menšie notebooky */
@media (max-width: 968px) {
    .section { padding: 70px 0; }
    .hero h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

/* Tablety a mobily */
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .nav-links {
        display: none; position: absolute; top: 120px; left: 0; width: 100%;
        background-color: var(--white); flex-direction: column; padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05); text-align: center;
        border-bottom: 1px solid #e5e5e5;
        z-index: 999;
    }
    .nav-links li { width: 100%; padding: 10px 0; }
    .nav-links.active { display: flex; }
    .hamburger { display: block; padding: 10px; }

    .logo-img { height: 60px; }

    /* Responzívne upravené logá pre tablety */
    .logo-title {
        font-size: 1.3rem;
    }
    .logo-subtitle {
        font-size: 0.65rem;
        max-width: 200px;
    }

    .hero { text-align: center; justify-content: center; padding-top: 0; }
    .hero-content { margin: 0 auto; }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        max-width: 300px;
        margin: 0 auto;
    }
    .btn-primary, .btn-secondary { width: 100%; margin: 0; }
    .hero-shape { opacity: 0.3; }

    /* Responzivita hlavičky článku */
    .article-hero.section {
        padding-top: 40px;
        padding-bottom: 30px;
    }
    .article-hero h1 {
        font-size: 1.8rem;
    }
}

/* Malé mobily */
@media (max-width: 480px) {
    .section { padding: 50px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 2rem; }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.05rem; margin-bottom: 30px; }

    .logo-link { gap: 10px; }
    .logo-img { height: 50px; }
    .logo-text { display: none; } /* Skryté pre veľmi malé obrazovky */

    .stat-card { padding: 20px; }
    .stat-card h3 { font-size: 1.8rem; }

    .project-card, .news-content, .team-member { padding: 25px 20px; }

    footer { padding-top: 60px; }
}

/* =========================================
   --- ŠTÝLY PRE PODSTRÁNKU ČLÁNKU ---
   ========================================= */

.article-hero {
    padding-top: 60px;
    padding-bottom: 40px;
}

.article-hero.section {
    padding-top: 60px;
    padding-bottom: 40px;
}

.article-hero .date {
    display: inline-block;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.article-hero h1 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 800;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-hero p.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.featured-image {
    width: 100%;
    height: 400px;
    background-color: #dddddd;
    border-radius: 4px;
    margin-bottom: 40px;
    object-fit: cover;
}

.article-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.article-text h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
}
.article-text ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}
.article-text li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* --- Galéria --- */
.article-gallery {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}
.article-gallery h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #e5e5e5;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Úprava nadpisu na mobile */
@media (max-width: 768px) {
    .featured-image { height: 250px; }
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.related-articles {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}
.related-articles h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.related-articles ul {
    list-style: none;
    padding: 0;
}
.related-articles li {
    margin-bottom: 12px;
}
.related-articles a {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
}
.related-articles a i {
    color: var(--primary-color);
    margin-top: 5px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}
.related-articles a:hover {
    color: var(--text-light);
}
.related-articles a:hover i {
    transform: translateX(5px); /* Šípka sa pri prejdení myšou jemne posunie doprava */
}

/* Trieda na skrytie ďalších článkov */
.news-card.skryty {
    display: none !important;
}

.skryty {
    display: none !important;
}
