/* --- Základné Premenné a Reset --- */
:root {
    --primary-color: #004a99; 
    --accent-color: #00ab66;  
    --text-color: #333333;    
    --bg-color: #ffffff;      
    --light-gray: #f8f9fa;    
    --border-radius: 8px;
    --box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
    
    /* ZMENA: Výrazné zväčšenie medzier medzi sekciami (Luxusný vzhľad) */
    --section-spacing: 10rem; /* cca 160px na desktop */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 3rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent-color); text-decoration: none; }
ul { list-style: none; }

.text-center { text-align: center; }

/* --- Hlavička a Navigácia --- */
.header {
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header .logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.header .nav ul { display: flex; }
.header .nav li { margin-left: 2rem; }
.header .nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}
.header .nav a.active, .header .nav a:hover { color: var(--accent-color); }

/* --- Tlačidlá --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem; /* Trochu väčšie tlačidlá */
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
/* --- ÚPRAVA TLAČIDIEL V CENNÍKU --- */

/* Toto zabezpečí, že tlačidlo bude vycentrované a nebude roztiahnuté */
.price-card .center-btn {
    align-self: center; /* Vycentruje element vo flex kontajneri */
    width: auto;        /* Šírka podľa textu (nie 100%) */
    min-width: 200px;   /* Minimálna šírka, aby vyzeralo dobre */
    margin-top: auto;   /* Tlačidlo sa "odlepí" od zoznamu a pôjde na spodok */
}

/* Ak chcete tlačidlá na mobiloch roztiahnuté, pridajte toto do media query pre mobil: */
@media (max-width: 768px) {
    .price-card .center-btn {
        width: 100%;
    }
}
.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    margin-left: 1.5rem;
}
.btn-primary:hover { background-color: #008a52; transform: translateY(-2px); }

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover { background-color: var(--primary-color); color: #fff; }

/* --- Všeobecné sekcie (MAXIMÁLNY PRIESTOR) --- */
section {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

/* Špeciálna úprava pre Page Header (menšia výška) */
.page-header {
    padding-top: 6rem;
    padding-bottom: 4rem;
    text-align: center;
    background-color: #fff !important;
}

/* --- Hero Sekcia --- */
.hero {
    background-image: linear-gradient(rgba(0, 74, 153, 0.85), rgba(0, 74, 153, 0.85)), url('https://via.placeholder.com/1920x600.png?text=IT+Support');
    background-size: cover;
    background-position: center;
    color: #fff;
    /* Hero potrebuje byť veľké, ale oddelené od ďalšej sekcie */
    padding: 10rem 0 12rem 0; 
    text-align: center;
}
.hero h1 { color: #fff; font-size: 3.5rem; }
.hero p { font-size: 1.4rem; margin-bottom: 3rem; color: #eee; }
.hero .btn-secondary { border-color: #fff; color: #fff; margin-left: 1rem; }
.hero .btn-secondary:hover { background-color: #fff; color: var(--primary-color); }

/* --- Karty a Grid --- */
.problem-grid, .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem; /* Väčšie medzery medzi kartami */
}
.problem-card, .service-card {
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}
.problem-card:hover, .service-card:hover { transform: translateY(-5px); }

/* --- Cenník --- */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.price-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}
.price-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 1;
}
.price-card .price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin: 1rem 0;
}
.price-card .price span { font-size: 1rem; color: #777; font-weight: 400; }
.price-card ul { margin: 2rem 0; flex-grow: 1; }
.price-card ul li { margin-bottom: 1rem; padding-left: 1.8rem; position: relative; }
.price-card ul li::before { content: '✓'; color: var(--accent-color); font-weight: bold; position: absolute; left: 0; }
.price-card ul li a { color: var(--text-color); text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--accent-color); }

/* --- Detaily služieb --- */
.service-details-section { background-color: #fff; }
.service-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 5rem;
    align-items: flex-start;
    scroll-margin-top: 140px;
}
.service-item:last-child { margin-bottom: 0; }
.service-icon {
    font-size: 3rem;
    background: var(--light-gray);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.service-content h3 { color: var(--primary-color); font-size: 1.8rem; }
.service-content ul { list-style-type: disc; padding-left: 20px; margin-top: 1rem; }
.service-content li { margin-bottom: 0.5rem; }

/* --- Kontakt --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-form-container iframe { border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
/* --- NOVÝ DIZAJN KONTAKTU (Formulár full-width + info dole) --- */

/* Odstránime padding medzi Headerom a Formulárom, aby to nebolo príliš ďaleko */
.form-section {
    padding-top: 0; 
    padding-bottom: 4rem;
}

.contact-form-full iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: #fff;
    display: block; /* Odstráni spodnú medzeru iframe */
}

/* Sekcia s údajmi pod formulárom */
.contact-info-section {
    padding-top: 0; /* Aby to nebolo príliš ďaleko od formulára */
    padding-bottom: 6rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.info-card {
    background: var(--light-gray); /* Jemné pozadie pre karty */
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: var(--box-shadow);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

.info-card strong {
    color: var(--text-color);
}

/* Mobile úprava */
@media (max-width: 768px) {
    .contact-form-full iframe {
        height: 800px; /* Na mobile vyšší formulár */
    }
}

/* --- Footer --- */
.footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
    margin-top: 0; 
}
.footer a { color: #fff; opacity: 0.8; }

/* --- Mobile --- */
@media (max-width: 768px) {
    :root { 
        --section-spacing: 5rem; /* Na mobile to stiahneme, aby to nebolo prázdne */
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .hero { padding: 6rem 0; }
    .header .nav { display: none; } 
    .price-card.popular { transform: scale(1); }
    .service-item { flex-direction: column; gap: 1.5rem; }
    .contact-layout { grid-template-columns: 1fr; }
    .btn-primary { margin-left: 0; margin-top: 1rem; display: block; width: 100%; }
}