/* =============== ZÁKLAD =============== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f7;
    color: #111827;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =============== HLAVIČKA =============== */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

/* Logo vlevo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-square {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-l {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.logo-city {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Menu uprostřed */
.main-nav {
    display: flex;
    gap: 14px;
    font-size: 0.9rem;
}

.main-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #374151;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
    background: #f3f4f6;
}

.main-nav a.active {
    background: #e5f9ef;
    color: #15803d;
    font-weight: 600;
}

/* Červené tlačítko vpravo */
.header-cta .btn-header-cta {
    background: #ef4444;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.header-cta .btn-header-cta:hover {
    background: #dc2626;
}

/* Responsivita hlavičky */
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .main-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============== HERO S DVĚMA AUTY =============== */

.hero {
    position: relative;
    min-height: 650px;
    color: #ffffff;

    /* OBRÁZEK VE STEJNÉ SLOŽCE JAKO index.html */
    background-image: url("hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* tmavý filtr přes fotku */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.75) 60%,
        rgba(15, 23, 42, 0.85) 100%
    );
}

/* text vlevo */
.hero-content {
    position: relative;
    z-index: 1;

    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding-top: 150px;   /* ← TADY PŘIDÁNO */
}



.hero-text-block {
    max-width: 420px;
}

.hero-small {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: #bfdbfe;
    margin-bottom: 6px;
}

.hero-title {
    font-size: clamp(2.1rem, 2.8vw + 1rem, 2.7rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin-bottom: 18px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.5);

    margin-top: 20px;  /* když nebude přesně nad spojem, číslo jen uprav */
}


.btn-hero:hover {
    background: #15803d;
}

/* Spodní proužek s kurzy */
.hero-courses {
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 42, 0.92);
}

.hero-courses-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
    color: #f9fafb;
    font-size: 0.85rem;
}

.hero-course-label span {
    color: #9ca3af;
    font-size: 0.8rem;
}

.hero-course-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-course-item {
    min-width: 140px;
}

.hero-course-city {
    font-weight: 600;
}

.hero-course-date {
    color: #d1d5db;
    font-size: 0.8rem;
}

/* Responsivita hero proužku */
@media (max-width: 800px) {
    .hero-courses-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============== SEKCE SLUŽBY =============== */

.services {
    background: #ffffff;
    padding: 40px 0 50px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    align-items: flex-end;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    color: #6b7280;
}

.services-header h2 {
    font-size: 1.9rem;
    color: #111827;
    margin-top: 4px;
}

.services-text {
    max-width: 420px;
    font-size: 0.95rem;
    color: #4b5563;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 18px 18px 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    background: #ffffff;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #16a34a;   /* ZELENÁ – stejná jako tlačítka */
    color: white;          /* aby ikona byla bílá a dobře vidět */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

}

.service-card h3 {
    margin-bottom: 6px;
    color: #111827;
}

.service-card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 14px;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
}

.service-link:hover {
    text-decoration: underline;
}

/* Responsivita služeb */
@media (max-width: 900px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =============== PATIČKA =============== */

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 14px 0 18px;
    font-size: 0.8rem;
    color: #6b7280;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
/* ---------------- CENTROVANÝ SPODNÍ PRUH ---------------- */

.hero-courses-center {
    text-align: center;
}

.hero-courses-inner-center {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
}

.hero-course-label-center {
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-course-list-center {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-course-city-center {
    font-size: 1rem;
    color: #e5e7eb;
}
/* =============== PROFESIONÁLNÍ BLOKY PRO ŘIDIČÁKY =============== */

.license-section {
    margin-top: 32px;
}

.license-heading {
    font-size: 1.3rem;
    color: #111827;
    margin-bottom: 14px;
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.license-item {
    display: flex;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.license-code {
    font-weight: 700;
    font-size: 1.2rem;
    color: #15803d;
    margin-right: 14px;
    min-width: 46px;
}

.license-body {
    flex: 1;
}

.license-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.license-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.license-list li {
    margin-bottom: 3px;
}

/* responsivita – na mobilu do jednoho sloupce */
@media (max-width: 900px) {
    .license-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .license-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* Profesionální tečkované odrážky u seznamů */

.license-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
}

.license-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: #16a34a; /* zelená barva autoškoly */
    border-radius: 50%;
}
/* =============== ROZBALOVACÍ SEKCE (VÍCE INFORMACÍ) =============== */

.license-details {
    margin-top: 10px;
}

.license-details summary {
    font-weight: 600;
    cursor: pointer;
    color: #15803d;
    padding: 6px 0;
    transition: color 0.2s;
}

.license-details summary:hover {
    color: #0d5e27;
}

.details-content {
    margin-top: 8px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #374151;
}

.details-content ul {
    margin-top: 6px;
    padding-left: 16px;
}

.details-content ul li {
    margin-bottom: 3px;
}
/* Tlačítko ve školení / kartách služeb */
.btn-more {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.btn-more:hover {
    background: #1d4ed8;
}
/* E-testy – vzhled karet a kvízu */

.etest-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.etest-list {
    margin: 8px 0 12px;
    padding-left: 18px;
    font-size: 0.9rem;
    color: #4b5563;
}

.etest-list li {
    margin-bottom: 4px;
}

/* Zelené akční tlačítko (Spustit test, Stáhnout appku, Odpovědět) */
.btn-more {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #16a34a;           /* ZELENÉ TLAČÍTKO */
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.5);
    border: none;
    cursor: pointer;
}

.btn-more:hover {
    background: #15803d;           /* tmavší zelená po najetí */
}

/* druhé tlačítko – bílé s zeleným rámečkem */
.btn-more-outline {
    background: #ffffff;
    color: #16a34a;
    border: 1px solid #16a34a;
    box-shadow: none;
}

.btn-more-outline:hover {
    background: #e5f9ef;
}

.qr-wrap {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #6b7280;
}

.qr-wrap img {
    margin-top: 6px;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Box pro mini test */
.etest-quiz {
    margin-top: 10px;
    padding: 18px 16px 20px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    max-width: 680px;
}

.quiz-question {
    font-weight: 600;
    margin-bottom: 12px;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.quiz-answer {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.9rem;
    cursor: pointer;
}

.quiz-answer input {
    margin-top: 3px;
}

.quiz-result {
    font-size: 0.9rem;
    margin-top: 6px;
}

.quiz-result-ok {
    color: #16a34a;
}

.quiz-result-bad {
    color: #dc2626;
}

.quiz-result-warning {
    color: #ca8a04;
}

.quiz-progress {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}
/* =============== KONTAKT =============== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.contact-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 18px 18px 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.contact-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 2px;
}

.contact-link {
    color: #111827;
    font-weight: 500;
}

.contact-link:hover {
    color: #16a34a;
}

.contact-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 8px;
}

/* formulář */

.contact-form .form-group {
    margin-bottom: 10px;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
    font-size: 0.9rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2);
}

.form-note {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* mapa */

.contact-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.contact-map {
    width: 100%;
    height: 320px;
    border: 0;
}

/* responsivita kontaktu */

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* =============== PŘIHLÁŠKA =============== */

.application-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
}

.application-box {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 18px 18px 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.application-form .form-group {
    margin-bottom: 10px;
}

.application-form label {
    display: block;
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 4px;
}

.application-form input,
.application-form select,
.application-form textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
    font-size: 0.9rem;
    font-family: inherit;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2);
}

.form-group-inline label {
    font-size: 0.8rem;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Výběr služeb */

.service-group {
    margin-bottom: 16px;
}

.service-group-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 6px;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: #111827;
}

.service-options label {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.service-options input[type="checkbox"] {
    margin-top: 3px;
}

/* responsivita */

@media (max-width: 900px) {
    .application-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* =============== CENÍK =============== */

.price-heading {
    margin: 32px 0 10px;
    font-size: 1.3rem;
    color: #111827;
}

.price-table-wrap {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    margin-bottom: 18px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.price-table thead {
    background: #f9fafb;
}

.price-table th,
.price-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.price-table th {
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.price-table tbody tr:nth-child(even) {
    background: #fcfcfd;
}

.price-table-right {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}

/* responsivita ceníku – na menších displejích menší písmo a padding */
@media (max-width: 700px) {
    .price-table th,
    .price-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .price-heading {
        margin-top: 24px;
    }
}
.service-other-wrap textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.service-other-wrap textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2);
}
/* === UHLADĚNÉ TABULKY V CENÍKU – verze 2 === */

.price-table {
    width: 100%;
    border-collapse: collapse;
    /* ZRUŠENO: table-layout: fixed; */
}

/* obecné buňky */
.price-table th,
.price-table td {
    padding: 8px 14px;
    vertical-align: top;
}

/* 1. sloupec – TYP / SKUPINA: stejná šířka všude */
.price-table th:nth-child(1),
.price-table td:nth-child(1) {
    width: 220px;          /* klidně si uprav */
    white-space: nowrap;
}

/* 2. sloupec – POPIS: necháme automatickou šířku, text se může lámat */
.price-table th:nth-child(2),
.price-table td:nth-child(2) {
    text-align: left;
}

/* 3. sloupec – CENA: jen zarovnání doprava, šířku si vezme podle textu */
.price-table th:nth-child(3),
.price-table td:nth-child(3) {
    text-align: right;
    white-space: normal;    /* může se zalomit, nic se neusekne */
}


