/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ZÁKLAD */
body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #e5e7eb;
    color: #111;
}

/* NAVIGACE */
nav {
    background: #2f3136;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-brand a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    transition: 0.25s;
}

.nav-brand a:hover,
.nav-brand a.active {
    background: #4ade80;
    color: #1a1a2e;
    font-weight: 600;
}

/* HLAVNÍ HEADER */
header {
    width: 100%;
    min-height: 450px;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* HEADER NA PODSTRÁNKÁCH BEZ OBRÁZKU */
.page-header {
    background: #2f3136;
    background-position: center;
    background-size: cover;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 200px;
}

.page-header h1 {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1.1em;
    color: #d1d5db;
}

/* UNIVERZÁLNÍ RÁMEČEK PRO TEXT */
.header-content {
    background: rgba(47, 49, 54, 0.85);
    border: 2px solid #ffffff;
    padding: 40px 60px;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    z-index: 5;
    text-align: center;
}

.header-content h1 {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 15px;
}

.header-content p {
    font-size: 1.1em;
    color: #f9fafb;
    margin-bottom: 25px;
}

.header-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

/* TLAČÍTKA */
.btn {
    background: #4ade80;
    color: #1a1a2e;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
    display: inline-block;
}

.btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #4ade80;
    color: #4ade80;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
    display: inline-block;
}

.btn-outline:hover {
    background: #4ade80;
    color: #1a1a2e;
    transform: translateY(-2px);
}

/* ÚVODNÍ GRID NA HOME */
.uvod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.uvod-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-bottom: 3px solid #4ade80;
}

.uvod-box .icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.uvod-box h3 {
    color: #1a1a2e;
    margin-bottom: 5px;
}

.uvod-box p {
    color: #374151;
    font-size: 0.95em;
}

/* OBSAH STRÁNEK */
.content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 40px;
}

/* KARTY S TEXTEM */
.card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    line-height: 1.8;
    color: #111;
}

.card p {
    color: #111;
    margin-bottom: 15px;
}

.card p:last-child {
    margin-bottom: 0;
}

/* MALÉ INFO BOXY */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.info-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-bottom: 3px solid #4ade80;
}

.info-box .icon {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.info-box h3 {
    color: #1a1a2e;
    font-size: 0.95em;
    margin-bottom: 5px;
}

.info-box p {
    color: #4b5563;
    font-size: 0.9em;
}

/* BENEFIT KARTY */
.benefit-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #4ade80;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.benefit-card h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.benefit-card p {
    color: #374151;
    line-height: 1.8;
}

/* TECH GRID */
.section-title {
    color: #1a1a2e;
    font-size: 1.3em;
    margin-bottom: 20px;
    margin-top: 10px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.tech-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 3px solid #4ade80;
    transition: 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.tech-card .icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.tech-card h3 {
    color: #1a1a2e;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.tech-card p {
    color: #6b7280;
    font-size: 0.75em;
}

/* KONTAKT */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-box {
    background: #ffffff;
    color: #111;
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-box h3 {
    color: #1a1a2e;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1em;
}

.contact-item span {
    font-size: 1.3em;
}

.contact-item p,
.contact-item a {
    color: #374151;
    text-decoration: none;
    line-height: 1.6;
}

.contact-item a:hover {
    color: #4ade80;
}

/* MAPA */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-bottom: 25px;
}

/* TLAČÍTKA DALŠÍ / PŘEDCHOZÍ */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ODKAZY V TEXTU */
.link {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 25px;
    background: #2f3136;
    color: #e5e7eb;
    font-size: 0.9em;
    margin-top: 50px;
    width: 100%;
    display: block;
    clear: both;
}

footer span {
    color: #4ade80;
}

/* OBRÁZKY */
.hero-image {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: block;
}

/* RESPONSIVITA */
@media (max-width: 850px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-content {
        padding: 25px 20px;
    }
}

@media (max-width: 380px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}