:root {
    --primary: #0070f3;
    --dark: #1a1a1a;
    --light: #f9f9f9;
    --text: #333;
    --accent: #ffffff;
    --footer-bg: #0d0d0d;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    color: var(--text); 
    background: var(--light); 
    line-height: 1.6; 
}

/* Pomocné třídy a opakující se styly */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
}

.flex-column {
    flex-direction: column;
}

.primary-color {
    color: var(--primary);
}

/* Header & Navigation */
header { 
    background: var(--dark); 
    color: white; 
    padding: 20px; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

.logo { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: white; 
}

.logo span { 
    color: var(--primary); 
}

nav a { 
    color: white; 
    text-decoration: none; 
    margin-left: 20px; 
    font-weight: 500; 
}

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

/* Hero Section */
.hero { 
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%); 
    color: white; 
    padding: 100px 20px; 
    text-align: center; 
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}

.hero-h2 {
    color: #fff; 
    font-size: 2.2rem; 
    font-weight: bold; 
    margin-top: 25px; 
    margin-bottom: 10px; 
    line-height: 1.3;
}

.hero-h3 {
    color: #ccc; 
    font-size: 1.5rem; 
    font-weight: normal; 
    margin-top: 40px; /* Větší horní odsazení dle tvého přání */
    margin-bottom: 25px;
}

.hero p { 
    font-size: 1.25rem; 
    max-width: 800px; 
    margin: 0 auto 40px auto; 
    color: #ccc; 
}

.btn { 
    display: inline-block; 
    background: var(--primary); 
    color: white; 
    padding: 15px 30px; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 50px; 
    transition: 0.3s; 
}

.btn:hover { 
    background: #0051bb; 
    transform: translateY(-2px); 
}

.hero-btn {
    margin-top: 40px;
}

/* Problem Section */
.problem { 
    padding: 80px 20px; 
    background: white; 
    text-align: center; 
}

.problem h2 { 
    font-size: 2.2rem; 
    margin-bottom: 40px; 
}

.ferrari-box { 
    background: #f0f0f0; 
    border-left: 5px solid var(--primary); 
    padding: 30px; 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: left; 
    border-radius: 4px; 
}

.ferrari-box h3 { 
    color: var(--dark); 
    margin-bottom: 15px; 
}

/* Druhý box pro PPC */
.ppc-box {
    margin-top: 30px; 
    border-left-color: #555; 
    background: #fcfcfc;
}

/* Services (Features) */
.services { 
    padding: 80px 20px; 
}

.services h2 { 
    text-align: center; 
    font-size: 2.2rem; 
    margin-bottom: 50px; 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.card { 
    background: white; 
    padding: 40px 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: 0.3s; 
}

.card:hover { 
    transform: translateY(-5px); 
}

.card h3 { 
    margin-bottom: 15px; 
    color: var(--dark); 
}

.card p { 
    color: #666; 
}

/* Workflow / Requirements */
.workflow { 
    padding: 80px 20px; 
    background: white; 
}

.workflow h2 { 
    text-align: center; 
    font-size: 2.2rem; 
    margin-bottom: 40px; 
}

.workflow-content { 
    max-width: 800px; 
    margin: 0 auto; 
}

.rule-box { 
    background: #e6f0fa; 
    border-left: 5px solid var(--primary); 
    padding: 25px; 
    margin-top: 30px; 
    border-radius: 4px; 
}

/* References Section */
.references { 
    padding: 80px 20px; 
}

.references h2 { 
    text-align: center; 
    font-size: 2.2rem; 
    margin-bottom: 50px; 
}

.reference-link { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

.reference-card { 
    background: white; 
    padding: 40px 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: 0.3s; 
    text-align: center; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

.reference-link:hover .reference-card { 
    transform: translateY(-5px); 
    box-shadow: 0 6px 20px rgba(0,70,243,0.1); 
}

.logo-wrapper { 
    height: 60px; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.logo-wrapper img { 
    max-height: 100%; 
    max-width: 200px; 
    object-fit: contain; 
}

.reference-card h3 { 
    font-size: 1.3rem; 
    margin-bottom: 10px; 
    color: var(--dark); 
}

.reference-card p { 
    color: #666; 
    font-size: 0.95rem; 
}

/* Contact Section & Form */
.contact { 
    background: var(--dark); 
    color: white; 
    padding: 80px 20px; 
    text-align: center; 
}

.contact h2 { 
    font-size: 2.2rem; 
    margin-bottom: 20px; 
}

.contact-subtitle {
    margin-bottom: 40px; 
    color: #aaa;
}

.contact-label {
    color: #fff; 
    font-size: 1.1rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 10px;
}

.contact-phone {
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--primary); 
    margin-bottom: 50px;
}

.label-message {
    margin-bottom: 20px;
}

.contact-form {
    max-width: 500px;
    margin: 40px auto 0 auto;
    text-align: left;
    background: #242424;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.95rem;
}

.form-group label span {
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control::placeholder {
    color: #777;
}

.optional-text {
    color: #777;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #0051bb;
}

/* Footer Styles (Čisté napojení bez linky navíc) */
footer { 
    background: var(--footer-bg); 
    color: #aaa; 
    padding: 60px 20px 20px 20px; 
    font-size: 0.95rem; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding-bottom: 40px; 
    border-bottom: 1px solid #222; 
}

.footer-col h4 { 
    color: white; 
    font-size: 1.1rem; 
    margin-bottom: 20px; 
    font-weight: bold; 
}

.footer-col p { 
    margin-bottom: 10px; 
    line-height: 1.5; 
}

.footer-links { 
    list-style: none; 
}

.footer-links li { 
    margin-bottom: 10px; 
}

.footer-links a { 
    color: #aaa; 
    text-decoration: none; 
    transition: 0.3s; 
}

.footer-links a:hover { 
    color: var(--primary); 
    padding-left: 5px; 
}

/* Styly pro šedé sociální ikony v patičce */
.social-links a { 
    display: flex; 
    align-items: center; 
    color: #888; 
    text-decoration: none; 
    margin-bottom: 15px; 
    transition: 0.3s; 
    font-size: 1rem;
}

.social-links a i { 
    margin-right: 12px; 
    font-size: 1.2rem; 
    width: 20px; 
    text-align: center;
}

.social-links a:hover { 
    color: #fff; 
}

.footer-bottom { 
    max-width: 1100px; 
    margin: 20px auto 0 auto; 
    text-align: center; 
    font-size: 0.85rem; 
    color: #666; 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 15px; 
}

/* Responzivita (Zobrazení na mobilu) */
@media (max-width: 768px) {
    .hero h1 { 
        font-size: 2rem; 
    }
    
    /* Kontejner v hlavičce na mobilu poskládá věci pod sebe na střed */
    header .container { 
        flex-direction: column; 
        justify-content: center;
        align-items: center; /* Vše na střed */
        text-align: center;
        gap: 15px; 
    }
    
    /* Příprava pro budoucí obrázkové logo, aby bylo na středu a mělo rozumnou velikost */
    .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .site-logo-img {
        max-height: 50px; /* Výška budoucího loga na mobilu */
        width: auto;
    }
    
    /* Menu (navigace) na mobilu */
    nav {
        display: flex;
        flex-wrap: wrap;       /* Umožní zalomení do více řádků */
        justify-content: center; /* Vycentruje řádky navigace na střed */
        align-items: center;
        gap: 10px 20px;        /* Mezera mezi řádky (10px) a mezi odkazy (20px) */
        width: 100%;
    }
    
    nav a { 
        margin: 0;            /* Vyčištění starých marginů */
        font-size: 0.95rem;
        display: inline-block;
    }
    
    .container.flex-column {
        flex-direction: column;
        align-items: center; 
    }
    
    .footer-bottom { 
        flex-direction: column; 
        text-align: center; 
        justify-content: center; 
    }
}