/* --- Základní reset a proměnné --- */
:root {
    --primary-color: #0067b8;
    --primary-hover: #005da6;
    --text-main: #323130;
    --text-muted: #605e5c;
    --bg-body: #faf9f8;
    --bg-card: #ffffff;
    --border-color: #e1dfdd;
}

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

body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Typografie a layout --- */
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Hlavička a Navigace --- */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

/* --- Hlavní obsah --- */
main {
    flex: 1;
}

main.container {
    padding: 3rem 0;
}

/* Hero Sekce (index.html) */
.hero {
    text-align: center;
    padding: 4rem 1.5rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Tlačítka */
.btn, button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

button {
    width: 100%;
}

.btn:hover, button:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 1rem;
    width: auto;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Karty a Mřížky --- */
.services { padding: 4rem 0; }
.services-header { text-align: center; margin-bottom: 3rem; }
.services-header h2 { font-size: 1.75rem; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Speciální styly pro karty služeb s animací (index.html) */
.services .card {
    border-top: 4px solid var(--primary-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.services .card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Podpora - Kontaktní sekce --- */
.contact-info p { margin-bottom: 1rem; display: flex; flex-direction: column; }
.contact-info strong { font-size: 0.9rem; color: var(--text-muted); }
.tech-support-box { margin-top: 1.5rem; padding: 1rem; background-color: #f3f2f1; border-left: 4px solid var(--primary-color); border-radius: 4px; font-size: 0.95rem; }

/* --- Podpora - Formulář --- */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; }

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 103, 184, 0.1);
}

/* --- Patička --- */
footer { text-align: center; padding: 2rem 0; background-color: var(--bg-card); border-top: 1px solid var(--border-color); font-size: 0.875rem; }
footer a { color: var(--primary-color); text-decoration: none; margin: 0 0.5rem; }
footer a:hover { text-decoration: underline; }

/* --- Responzivita (Mobilní zařízení) --- */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 1rem; }
    nav a { margin: 0 0.75rem; }
    .btn-outline { margin-left: 0; margin-top: 1rem; display: block; }
    .grid-layout { grid-template-columns: 1fr; }
    main.container { padding: 1.5rem 0; }
}