/* =========================================================
   Aleš Vavera – Autobusová doprava
   Profesionální responzivní design (mobil · tablet · notebook · PC)
   ========================================================= */

:root {
    --bg: #f4f7fb;
    --bg-alt: #ffffff;
    --bg-dark: #0b1f3a;
    --bg-dark-2: #122a4a;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-on-dark: #e8eef7;
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #0ea5e9;
    --accent-soft: rgba(14, 165, 233, 0.12);
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --success: #059669;
    --danger: #dc2626;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --header-h: 84px;
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.22s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    min-height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    height: 64px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--accent-soft);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-alt);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lang-switch {
    display: none !important;
}

/* ========== HERO ========== */
.hero {
    background:
        radial-gradient(ellipse 80% 60% at 90% 10%, rgba(14, 165, 233, 0.15), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(29, 78, 216, 0.1), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    padding: 48px 0 56px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.hero-tagline {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--accent-soft);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.hero-line1 {
    display: block;
    color: var(--bg-dark);
}

.hero-line2 {
    display: block;
    color: var(--primary);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-desc .features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.hero-desc .feature {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.92rem;
    color: var(--text);
    box-shadow: var(--shadow);
}

.hero-desc .feature strong {
    color: var(--primary-dark);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.truck-illustration {
    width: 100%;
    max-width: 520px;
}

.hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(15, 23, 42, 0.15));
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-weight: 700;
    font-size: 0.98rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    font-family: inherit;
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(29, 78, 216, 0.35);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
}

.btn-primary:active {
    transform: translateY(0);
}

/* ========== COUNTRIES STRIP ========== */
.countries-strip {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 18px 0;
}

.countries-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.countries-row span {
    opacity: 0.85;
    padding: 4px 0;
}

/* ========== PAGE CONTENT ========== */
.page-content {
    padding: 40px 0 64px;
}

.page-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 22px;
    letter-spacing: -0.02em;
}

.content-body {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
}

.content-body h2 {
    font-size: 1.35rem;
    margin: 1.4em 0 0.6em;
    color: var(--bg-dark);
}

.content-body h2:first-child {
    margin-top: 0;
}

.content-body h3 {
    font-size: 1.1rem;
    margin: 1.2em 0 0.5em;
    color: var(--primary-dark);
}

.content-body p {
    margin-bottom: 0.9em;
    color: var(--text-muted);
}

.content-body ul {
    margin: 0.6em 0 1em 1.3em;
    color: var(--text-muted);
}

.content-body li {
    margin-bottom: 0.35em;
}

/* Service / fleet grids from page HTML */
.services,
.fleet-grid,
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.service,
.fleet-item,
.feature {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
}

.service h3,
.fleet-item h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.countries {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.country {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
}

.country .code {
    color: var(--primary);
    margin-right: 6px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 8px;
}

.contact-info p {
    margin-bottom: 0.5em;
}

/* ========== FORMS ========== */
.order-form,
.contact-form {
    max-width: 680px;
    margin-top: 1.5rem;
}

.order-form fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #fafcff 0%, #f5f8fc 100%);
}

.order-form legend {
    font-weight: 700;
    padding: 0 0.55rem;
    color: var(--bg-dark);
    font-size: 0.98rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    color: var(--text);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="datetime-local"],
.form-row textarea,
.order-form select {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.radio-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.req {
    color: var(--danger);
    font-weight: 700;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 1rem 0 1.5rem;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}

.alert.success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert.error ul {
    margin: 0.5rem 0 0 1.2rem;
}

.client-fields {
    margin-bottom: 0.5rem;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: rgba(232, 238, 247, 0.72);
    margin-top: 12px;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-logo {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(1.05);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    color: #fff;
}

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

.footer-links a {
    color: rgba(232, 238, 247, 0.75);
    display: inline-block;
    padding: 4px 0;
    font-size: 0.95rem;
}

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

.footer-contact p {
    color: rgba(232, 238, 247, 0.75);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(232, 238, 247, 0.55);
}

.footer-bottom a {
    color: rgba(232, 238, 247, 0.7);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ========== TABLET (≤ 1024px) ========== */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 28px;
    }

    .logo-img {
        height: 56px;
        max-width: 170px;
    }

    .main-nav a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .content-body {
        padding: 24px;
    }

    .footer-grid {
        gap: 28px;
    }
}

/* ========== TABLET / SMALL LAPTOP (≤ 900px) ========== */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-desc .features {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .hero-visual {
        order: -1;
    }

    .truck-illustration {
        max-width: 380px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ========== MOBILE (≤ 720px) ========== */
@media (max-width: 720px) {
    :root {
        --header-h: 70px;
    }

    .container {
        padding: 0 16px;
    }

    .logo-img {
        height: 48px;
        max-width: 140px;
    }

    .nav-toggle {
        display: flex;
    }

    .header-right {
        position: relative;
        gap: 8px;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        width: min(300px, calc(100vw - 32px));
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        padding: 10px;
        display: none;
        z-index: 250;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .main-nav a {
        padding: 12px 14px;
        font-size: 0.95rem;
        white-space: normal;
    }

    .hero {
        padding: 28px 0 36px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .hero-tagline {
        font-size: 0.72rem;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .page-content {
        padding: 28px 0 48px;
    }

    .content-body {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .order-form fieldset {
        padding: 1rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .countries-row {
        gap: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ========== SMALL PHONES (≤ 400px) ========== */
@media (max-width: 400px) {
    .logo-img {
        height: 42px;
        max-width: 120px;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .page-title {
        font-size: 1.4rem;
    }
}

/* ========== LARGE DESKTOP (≥ 1400px) ========== */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }

    .hero {
        padding: 64px 0 72px;
    }
}

/* ========== PRINT ========== */
@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .btn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .content-body {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}
