/* ===============================================
   GLOBAL RESET & VARIABLES
================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; } /* <-- TU SME PRIDALI SMOOTH SCROLL */
body { font-family: Arial, Helvetica, sans-serif; background: #f4fbfb; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }

:root {
    --primary: #00a699;
    --primary-dark: #005f5b;
    --accent: #008080;
    --light-bg: #e5f8f7;
    --text-muted: #555;
    --radius: 14px;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.hero-section {
display: flex;
align-items: center; /* vertikálne zarovnanie */
justify-content: space-between; /* medzera medzi obrázkom a textom */
}

.hero-section img {
max-width: 50%; /* alebo podľa potreby */
height: auto;
}

.hero-section h1 {
margin-left: 20px; /* medzera medzi obrázkom a textom */
}

/* ===============================================
   BUTTONS
================================================ */
.btn, button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s;
}
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
button:hover, .btn:hover { background: var(--primary-dark); }

/* ===============================================
   HEADER
================================================ */
header {
    position: fixed;      /* prilepenie na viewport */
    top: 0;               /* hore */
    left: 0;              /* začiatok stránky */
    width: 100%;          /* aby pokrýval celú šírku */
    z-index: 999;         /* aby bol nad všetkým obsahom */
}
header { background: #fff; box-shadow: var(--shadow); }
header .container { display: flex; justify-content: space-between; align-items: center; padding: 20px; }
nav ul { display: flex; list-style: none; gap: 20px; }
.claim-spot-button { background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 6px; font-weight: 600; }

@media (max-width: 768px) {

    /* Kontajner headeru */
    header .container {
        padding: 30px 0px;   /* menej paddingu zľava a sprava -> posunie obsah viac doľava */
        display: flex;
        justify-content: flex-start; /* stále zarovnané doľava */
        align-items: center;
        transition: padding 0.3s ease;
    }

    /* Logo */
    header .hero-section img {
        max-height: 60px; 
         margin-left: -25px;    
        margin-right: 0px;    /* malé odsadenie od nadpisu */
        transition: max-height 0.3s ease, margin 0.3s ease;
    }

    /* Nadpis „Jazyková škola“ */
    header .hero-section h2 {
        margin-left: 0px;      /* úplne doľava k logu */
        font-size: 18px;
        transition: margin 0.3s ease, font-size 0.3s ease;
    }

    /* Po scrollnutí - zmenšený header */
    header.shrink .container {
        padding: 10px 5px;
    }

    header.shrink .hero-section img {
        max-height: 35px;
        margin-right: 3px;
    }

    header.shrink .hero-section h2 {
        margin-left: 0px;
        font-size: 16px;
    }
}


/* ===============================================
   HERO
================================================ */
.hero { padding: 60px 0; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 3rem; color: var(--primary-dark); }
.hero h1 span { color: var(--primary); }
.hero p { margin: 25px 0; color: var(--text-muted); }
.hero-buttons { display: flex; gap: 15px; margin-bottom: 25px; }
.hero-benefits { display: flex; gap: 25px; margin-top: 15px; }
.hero-benefits i { color: var(--primary); margin-right: 8px; }
.hero-image { position: relative; }
.hero-image img { width: 100%; border-radius: var(--radius); }
.stats-box { position: absolute; bottom: -30px; right: 20px; background: #fff; padding: 18px 24px; border-radius: 12px; display: flex; align-items: center; box-shadow: var(--shadow); }
.stats-box i { font-size: 1.8rem; color: var(--primary); margin-right: 10px; }
/* Mobilné zariadenia */
@media (max-width: 768px) {
  .stats-box {
    bottom: -50px;     /* menej agresívne prekrytie */
    right: 10px;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .stats-box i {
    font-size: 1.2rem; /* menšia ikonka */
    margin-right: 6px;
  }
}


/* ===============================================
   SECTIONS & CARDS
================================================ */
.section-title { text-align: center; margin-bottom: 10px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 15px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 25px; }
.card { background: var(--light-bg); border-radius: var(--radius); padding: 25px; text-align: center; box-shadow: var(--shadow); }
.card-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.card h3 { margin-bottom: 10px; color: var(--primary-dark); }
.card p { color: var(--text-muted); }

.why-choose-us { margin-bottom: 70px; } /* väčšia medzera pred učiteľkou */
.anchor-offset {
    position: relative;
    top: -160px;       /* výška headera + malá rezerva */
    height: 0;
    visibility: hidden;
}


.andrea-kruckova { 
    background: var(--light-bg); 
    padding: 40px 0 70px 0; /* väčší top padding */
    position: relative; 
}
.andrea-kruckova-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 0px; 
    align-items: start; 
}
.andrea-kruckova-image img { 
    margin-left: 160px;
    width: 100%; 
    max-width: 300px; /* zmenšenie pre vertikálnu fotku */
    height: auto;
    border-radius: var(--radius);

}
.andrea-kruckova-text { 
    padding-right: 130px; /* posunutie textu bližšie k ľavej strane */
}
.stats-boxes { display: flex; gap: 20px; position: absolute; bottom: -20px; left: 0; width: 100%; }
.stats-boxes .stats-box { background: #fff; padding: 18px 24px; border-radius: 12px; text-align: center; flex: 1; box-shadow: var(--shadow); }

/* COURSES */
.courses { margin-bottom: 50px; } /* zmenšená medzera pod kurzami */
.courses-row { display: flex; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.course-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: 350px; position: relative; }
.course-card .card-header { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 50px; color: #fff; }
.course-card.teal .card-header { background: linear-gradient(180deg,#008080,#006666); }
.course-card.blue .card-header { background: linear-gradient(180deg,#1e90ff,#0b6fa4); }
.course-card.green .card-header { background: linear-gradient(180deg,#2ecc71,#1eaa5c); }
.course-card.orange .card-header { background: linear-gradient(180deg,#ffb300,#ff9800); }
.course-card .badge { position: absolute; top: 15px; right: 15px; background: #ff5722; color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 12px; }
.course-card .card-body { padding: 25px; text-align: left; }
.course-card .card-body h3 { margin-bottom: 10px; }
.course-card .card-body p { font-size: 14px; margin-bottom: 15px; color: var(--text-muted); }
.course-card .card-body ul { list-style: none; margin-bottom: 20px; }
.course-card .card-body ul li { margin-bottom: 8px; display: flex; justify-content: space-between; }
.course-card .price { font-size: 28px; font-weight: bold; color: var(--accent); margin-bottom: 15px; }
.course-card .price span { font-size: 14px; color: #666; margin-left: 5px; }
.course-card button { width: 100%; background: var(--accent); color: #fff; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background .3s; }
.course-card button:hover { background: #1eaa5c; }

/* CONTACT */
.contact-section { padding: 0px 0; background: linear-gradient(135deg,#f4fbfb); }
.contact-section-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
.contact-section-left h2 { font-size: 2.2rem; color: var(--primary-dark); margin-bottom: 20px; }
.contact-subtitle { color: var(--text-muted); margin-bottom: 30px; }
.contact-info-box { background: var(--light-bg); padding: 20px; border-left: 4px solid var(--primary); border-radius: 8px; margin-bottom: 40px; }
.contact-details { list-style: none; }
.contact-details li { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-icon { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 1.1rem; }
.contact-section-right { background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-section-right h3 { color: var(--primary-dark); margin-bottom: 25px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid #d6d6d6; margin-bottom: 18px; }
.contact-form textarea { resize: none; }
.contact-form button { display: flex; justify-content: center; align-items: center; gap: 8px; }

/* FOOTER */
.footer { background: #004f4f; color: #fff; padding: 0px 20px 20px; margin-top: 0px; }
.contact-item i { color: #f5c400; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 50px; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #b9dddd; }
.footer-links a { margin-left: 20px; color: #b9dddd; transition: 0.3s; }
.footer-links a:hover { color: #fff; }

/* ===============================================
   RESPONSIVE
================================================ */
@media (max-width: 1024px){ 
    .hero .container, 
    .andrea-kruckova-content { grid-template-columns: 1fr; } 
    .stats-boxes { flex-direction: row; } 
}
@media (max-width: 768px){ 
    .courses-row { flex-direction: column; align-items: center; } 
}
@media (max-width: 600px){
    .contact-section-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 768px) {

    header .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .claim-spot-button {
        padding: 10px 16px;
        font-size: 14px;
    }
}
@media (max-width: 768px) {

    header .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .claim-spot-button {
        padding: 10px 16px;
        font-size: 14px;
    }
}
@media (max-width: 768px) {

    .andrea-kruckova-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .andrea-kruckova-image img {
        margin-left: 0;
        max-width: 220px;
        margin: 0 auto 20px;
        display: block;
    }

    .andrea-kruckova-text {
        padding-right: 0;
        padding: 0 10px;
    }
}
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4CAF50;
    color: white;
    padding: 22px 36px;        /* väčšie okienko */
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    font-family: sans-serif;
    text-align: center;
    min-width: 280px;
}


.toast.error {
    background-color: #f44336; /* červená = chyba */
}

