/* =================================
 * STYLES1.CSS - FINAL CHECK (OVERFLOW SAFE)
 * ================================= */

/* --- 1. PROMĚNNÉ A ZÁKLAD --- */
:root {
    --color-primary: #0066b3;
    --color-secondary: #0c3b7a;
    --color-text-base: #0f1724;
    --color-text-muted: #6b7280;
    --color-background: #f6f8fb;
    --color-card: #ffffff;
    --color-bg-light: #e0f0ff; 
    --color-focus: #ff9900;
    --border-radius: 12px;
    --max-width: 1300px;
    --spacing-base: 24px;
    --border: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--color-background);
    color: var(--color-text-base);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Globální pojistka proti horizontálnímu posunu */
    width: 100%;
}

/* --- 2. TYPOGRAFIE --- */
h1, h2, h3, h4 { color: var(--color-secondary); margin-top: 0; line-height: 1.2; }
h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 30px; font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 22px; font-weight: 600; }
.lead { color: var(--color-text-muted); font-size: 18px; margin-bottom: 24px; }
.eyebrow { color: var(--color-primary); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: block; }

a { text-decoration: none; color: var(--color-primary); transition: var(--transition); }

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-base);
    width: 100%;
}

/* --- 3. TLAČÍTKA A CTA --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; 
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-secondary); color: #fff; }
.btn-secondary { background: var(--color-bg-light); color: var(--color-secondary); }
.btn-secondary:hover { background: #dceaf9; }

/* --- 4. HEADER A TOPBAR --- */
.topbar { background: var(--color-secondary); color: #fff; padding: 10px 0; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar nav { display: flex; gap: 20px; }
.topbar a { color: rgba(255,255,255,0.9); }

header { background: #fff; padding: 10px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 45px; width: auto; }
.brand { font-weight: 800; font-size: 20px; color: var(--color-secondary); }

nav ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; align-items: center; }
nav a { font-weight: 600; color: var(--color-text-base); }
nav a:hover { color: var(--color-primary); }
.hamburger { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--color-secondary); }

/* --- 5. HERO SEKCE --- */
.hero-background {
    background: linear-gradient(135deg, #eef6ff 0%, #f6f8fb 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}
.hero { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.hero-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-left: 6px solid var(--color-primary);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-cta { display: flex; gap: 15px; margin-top: 30px; }

/* --- 6. GRILY A KARTY --- */
.services { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px; 
    margin-top: 40px; 
}
#it-sluzby .services { grid-template-columns: repeat(2, 1fr); }
#tarify .services, #vyhody .services { grid-template-columns: repeat(3, 1fr); }

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--color-primary);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    /* POJISTKA PROTI PŘETÉKÁNÍ TEXTU V KARTÁCH */
    overflow-wrap: break-word;
    word-break: break-word;
}
.service-card:hover { /* transform: translateY(-8px); */ box-shadow: 0 12px 30px rgba(12, 37, 82, 0.1); }
.service-card i { font-size: 40px; margin-bottom: 20px; display: block; }

.icon-blue { color: var(--color-primary); }
.icon-green { color: #28a745; }
.icon-red { color: #dc3545; }
.icon-orange { color: #FFA73D; }

/* --- 7. PLATEBNÍ BOXY --- */
.payment-trust-container { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }

.crypto-payment-link, .gopay-payment-link {
    display: flex !important;
    align-items: center; justify-content: space-between;
    background: #fff; padding: 15px 20px; border-radius: 12px;
    border: 1px solid var(--border); flex: 1; min-width: 300px;
    transition: var(--transition);
    text-decoration: none !important;
    color: var(--color-text-base);
}
.crypto-payment-link { border-left: 5px solid #f7931a; }
.gopay-payment-link { border-left: 5px solid var(--color-primary); }
.crypto-payment-link:hover, .gopay-payment-link:hover { 
    transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--color-primary);
}

.crypto-badge-content { display: flex; align-items: center; gap: 15px; text-align: left; }
.btc-logo-inline { height: 32px; width: auto; flex-shrink: 0; }
.crypto-badge-text strong { display: block; font-size: 15px; color: var(--color-secondary); line-height: 1.2; }
.crypto-badge-text span { font-size: 12px; color: var(--color-text-muted); }
.arrow-icon { font-size: 14px; color: #ccc; }

/* --- 8. PRVKY PRO TARIFY --- */
.target-group { font-size: 14px; color: var(--color-text-muted); min-height: 3em; margin-bottom: 10px; line-height: 1.5; }
.price-value { font-size: 38px; font-weight: 800; color: var(--color-primary); margin: 15px 0; word-break: break-word; line-height: 1.1; }
.price-value span { font-size: 16px; font-weight: 600; color: var(--color-text-base); margin-left: 5px; display: block; }
.features-list { list-style: none; padding: 0; text-align: left; margin: 25px 0; flex-grow: 1; }
.features-list li { padding: 8px 0; border-bottom: 1px dotted #e0e0e0; display: flex; align-items: flex-start; font-size: 15px; }
.features-list li::before { content: "✓"; color: var(--color-primary); font-weight: 700; margin-right: 10px; flex-shrink: 0; }
.box-cta { width: 100%; margin-top: auto; }

/* --- 9. OPERÁTOR BOX --- */
.hint-box {
    text-align: center; padding: 30px; border: 1px solid #eee;
    border-radius: 12px; background-color: #f9f9f9; margin-top: 40px;
}
.hint-box i { font-size: 2rem; color: var(--color-text-base); margin-bottom: 15px; }
.operator-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.operator-buttons .btn { min-width: 130px; padding: 10px 20px; color: #fff; font-size: 15px; text-decoration: none; }
.btn-tmobile { background-color: #e20074; border: 1px solid #e20074; }
.btn-vodafone { background-color: #e60000; border: 1px solid #e60000; }
.btn-o2 { background-color: #0019fe; border: 1px solid #0019fe; }
.btn-kaktus { background-color: #2fb457; border: 1px solid #2fb457; }

/* --- 10. KONTAKT --- */
.split { display: grid; grid-template-columns: 1fr 400px; gap: 50px; margin-top: 60px; }
.aside-contact, .contact-card {
    background: #fff; padding: 30px; border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-left: 5px solid var(--color-primary);
}
.contact-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dotted #eee; }
.contact-item strong { color: var(--color-secondary); }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--color-background); font-family: inherit; font-size: 15px;
}

/* --- 11. PATIČKA --- */
footer { 
    margin-top: 60px; padding: 45px 0; 
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary)); 
    color: rgba(255, 255, 255, 0.7); 
}
footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
footer strong { color: rgba(255, 255, 255, 0.95); display: block; margin-bottom: 12px; font-size: 17px; }
footer a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; font-size: 13.5px; transition: color 0.3s; }
footer a:hover { color: #ffffff; text-decoration: none; }
footer img { filter: none !important; opacity: 1 !important; max-height: 20px; width: auto; transition: transform 0.3s; }
footer img:hover { transform: scale(1.1); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; font-size: 13.5px; }

/* =================================
 * 12. RESPONZIVITA (MOBILNÍ POJISTKY)
 * ================================= */

/* TABLET (pod 1100px) */
@media (max-width: 1100px) {
    .services, #it-sluzby .services, #tarify .services, #vyhody .services { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    .hero, .split { grid-template-columns: 1fr; gap: 30px; }
}

/* HAMBURGER MENU (pod 1000px) */
@media (max-width: 1000px) {
    .hamburger { display: block; }
    nav ul { 
        display: none; flex-direction: column; position: absolute; 
        top: 75px; right: 20px; background: #fff; width: 250px;
        padding: 20px; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
        z-index: 1000; gap: 15px;
    }
    nav[data-expanded="true"] ul { display: flex; }
}

/* MOBIL (pod 650px) - TOTAL FIX PROTI PŘETÉKÁNÍ */
@media (max-width: 650px) {
    :root { --spacing-base: 16px; }

    .wrap { padding: 0 var(--spacing-base); box-sizing: border-box; overflow: hidden; /* Pojistka kontejneru */ }
    
    /* Zalamování dlouhých nadpisů */
    h1 { font-size: 26px !important; word-wrap: break-word; overflow-wrap: break-word; }
    h2 { font-size: 22px !important; }

    .hero, .split { display: block !important; }
    
    /* Vynucení jednoho sloupce pro všechny gridy */
    .services, #it-sluzby .services, #tarify .services, #vyhody .services { 
        grid-template-columns: 1fr !important; 
    }

    /* Karty na plnou šířku */
    .hero-card, .contact-card, .aside-contact, .service-card { 
        width: 100% !important; 
        padding: 25px 20px !important; 
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
        overflow-wrap: break-word; /* Důležité: zalamuje dlouhá slova */
    }

    /* Tlačítka - povolit zalomení textu */
    .hero-cta { flex-direction: column; width: 100%; }
    .btn { 
        width: 100%; 
        white-space: normal; /* Povolí zalomení textu v tlačítku */
        height: auto; 
        min-height: 44px; 
    }

    /* Platební boxy - Flex Fix */
    .payment-trust-container { flex-direction: column; }
    .crypto-payment-link, .gopay-payment-link { 
        min-width: 0 !important; /* Klíčové pro Flexbox na mobilu */
        width: 100%; 
        box-sizing: border-box;
    }

    /* Topbar & Logo */
    .topbar .wrap { flex-direction: column; text-align: center; gap: 10px; }
    .logo .brand, .logo div { display: none; } 
    .logo img { height: 35px; }

    /* Operátoři Grid 2x2 */
    .operator-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .operator-buttons .btn { min-width: 0; padding: 8px 5px; font-size: 13px; }

    /* ReCaptcha & Footer */
    .g-recaptcha { transform: scale(0.77); transform-origin: 0 0; max-width: 100%; }
    footer .footer-links, footer div { width: 100%; text-align: center; }
}
/* --- GEEK EDITION TLAČÍTKO (Tech White Style) --- */
.geek-payment-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    /* Jemný modrý rámeček místo černé */
    border: 1px solid #dbeafe; 
    border-left: 5px solid #0f1724; /* Tmavě modrý proužek vlevo (Geek sign) */
    
    flex-basis: 100%; /* Roztáhne se na celou šířku pod horní boxy */
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.geek-payment-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 179, 0.15); /* Modrá záře při najetí */
    border-color: #0066b3;
    background: #f8fafc;
}

/* Ikona vlevo (Terminál) */
.geek-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #0f1724;
    font-size: 18px;
    margin-right: 15px;
}

/* Texty */
.geek-payment-link .crypto-badge-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.geek-payment-link .crypto-badge-text strong {
    color: #0f1724;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.geek-payment-link .crypto-badge-text span {
    color: #64748b;
    font-size: 12px;
    font-family: monospace; /* Geek font pro seznam coinů */
    margin-top: 2px;
}

/* Pravá část s ikonami */
.geek-icons-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px; /* Velikost krypto ikon */
}

/* Mobilní úprava - ikony se schovají, pokud je málo místa */
@media (max-width: 500px) {
    .geek-icons-row i:not(.arrow-icon) {
        display: none; /* Na malém mobilu schováme krypto ikony, necháme jen šipku */
    }
    .geek-payment-link .crypto-badge-text span {
        font-size: 11px; /* Menší písmo pro seznam coinů na mobilu */
    
}
/* Antispam & Checkbox */
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; }
.checkbox-group input { width: 20px; height: 20px; flex-shrink: 0; cursor: pointer; }
.checkbox-group label { font-size: 14px; cursor: pointer; }
.hidden-honeypot { position: absolute; left: -9999px; opacity: 0; }
