/* =========================================
   Matax – Shared Stylesheet (subpages)
   ========================================= */

/* Skip to content link (a11y) – vizuálne skrytý kým nedostane focus */
.skip-to-content {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 10000;
    background: #0ea5e9;
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 0.5rem 0;
    text-decoration: none;
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
    width: auto !important;
    height: auto !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    outline: 3px solid #fbbf24 !important;
    outline-offset: 2px;
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --accent: #06b6d4;
    --gradient-1: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(160deg, #020d18 0%, #0c2340 55%, #071a2e 100%);
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: all 0.4s; }
.nav.scrolled { background: rgba(15,23,42,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 10px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; line-height: 1; }
.logo svg { display: block; width: 140px; height: 36px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--gradient-1) !important; color: #fff !important; padding: 9px 22px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.9rem; box-shadow: 0 4px 15px rgba(14,165,233,0.3); transition: transform 0.3s, box-shadow 0.3s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(14,165,233,0.45); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; }
.mobile-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 5px; }
.nav-dropdown > a svg { transition: transform 0.3s; flex-shrink: 0; }
.nav-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(-8px); background: rgba(10,20,38,0.97); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 10px; min-width: 230px; opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s, visibility 0.25s; box-shadow: 0 20px 60px rgba(0,0,0,0.5); z-index: 200; }
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown:focus-within > a svg,
.nav-dropdown.open > a svg { transform: rotate(180deg); }
.dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; color: rgba(255,255,255,0.75) !important; font-size: 0.875rem; font-weight: 500; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.dropdown-menu a:hover { background: rgba(14,165,233,0.12); color: #fff !important; }
.dropdown-menu .dd-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dropdown-menu .dd-label { display: flex; flex-direction: column; gap: 1px; }
.dropdown-menu .dd-label span { font-size: 0.75rem; color: rgba(255,255,255,0.4); font-weight: 400; }

/* BREADCRUMB */
.breadcrumb { background: var(--bg-dark); padding: 80px 0 20px; }
.breadcrumb-list { display: flex; gap: 8px; align-items: center; list-style: none; }
.breadcrumb-list li { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.breadcrumb-list li a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.breadcrumb-list li a:hover { color: #fff; }
.breadcrumb-list li::after { content: '/'; margin-left: 8px; }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list li:last-child { color: var(--primary-light); }

/* PAGE HERO */
.page-hero { background: var(--gradient-hero); padding: 40px 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -30%; right: -15%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%); border-radius: 50%; }
.page-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(14,165,233,0.15); border: 1px solid rgba(14,165,233,0.3); padding: 6px 16px; border-radius: var(--radius-full); color: var(--primary-light); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; font-family: var(--font-display); color: #fff; line-height: 1.2; margin-bottom: 20px; }
.page-hero h1 span { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.65); max-width: 580px; line-height: 1.8; margin-bottom: 32px; }
.page-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-price-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 32px 28px; text-align: center; min-width: 200px; }
.hero-price-label { color: rgba(255,255,255,0.5); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.hero-price { font-size: 3rem; font-weight: 800; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.hero-price-sub { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 4px; }
.hero-price-note { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }

/* BUTTONS */
.btn { padding: 13px 28px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.95rem; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none; }
.btn-primary { background: var(--gradient-1); color: #fff; box-shadow: 0 4px 20px rgba(14,165,233,0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(14,165,233,0.5); }
.btn-outline { background: transparent; color: rgba(255,255,255,0.8); border: 2px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

/* MAIN CONTENT */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 60px; padding: 80px 0; }
.content-main { min-width: 0; }
.content-sidebar { position: relative; }
.sticky-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }

/* CONTENT BLOCKS */
.content-section { margin-bottom: 60px; }
.content-section h2 { font-size: 1.8rem; font-weight: 700; font-family: var(--font-display); color: var(--text); margin-bottom: 16px; line-height: 1.3; }
.content-section h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 12px; margin-top: 28px; }
.content-section p { color: var(--text-light); line-height: 1.85; margin-bottom: 16px; font-size: 1rem; }
.content-section p strong { color: var(--text); font-weight: 600; }

.highlight-box { background: rgba(14,165,233,0.06); border: 1px solid rgba(14,165,233,0.15); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; margin: 24px 0; }
.highlight-box p { margin: 0; color: var(--text); }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }
.checklist li::before { content: ''; width: 22px; height: 22px; background: rgba(34,197,94,0.12); border-radius: 50%; flex-shrink: 0; margin-top: 1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }

.process-steps { display: flex; flex-direction: column; gap: 0; margin: 28px 0; }
.process-step { display: flex; gap: 20px; position: relative; padding-bottom: 32px; }
.process-step:last-child { padding-bottom: 0; }
.process-step:last-child .step-line { display: none; }
.step-num { width: 40px; height: 40px; background: var(--gradient-1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.9rem; flex-shrink: 0; position: relative; z-index: 1; }
.step-line { position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: linear-gradient(to bottom, rgba(14,165,233,0.3), transparent); }
.step-content h4 { font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: 1rem; padding-top: 8px; }
.step-content p { color: var(--text-light); font-size: 0.9rem; margin: 0; line-height: 1.6; }

.obligations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.obligation-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.obligation-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.obligation-card p { font-size: 0.85rem; color: var(--text-light); margin: 0; line-height: 1.6; }
.obligation-card .deadline { display: inline-block; margin-top: 10px; background: rgba(14,165,233,0.08); color: var(--primary-dark); padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }

/* SIDEBAR */
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; font-family: var(--font-display); }
.sidebar-price { font-size: 2.2rem; font-weight: 800; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.sidebar-price-sub { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; margin-bottom: 16px; }
.sidebar-features { list-style: none; margin-bottom: 20px; }
.sidebar-features li { padding: 6px 0; font-size: 0.85rem; color: var(--text-light); display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--border); }
.sidebar-features li:last-child { border-bottom: none; }
.sidebar-features li .check { color: #22c55e; font-weight: 700; flex-shrink: 0; }
.sidebar-btn { width: 100%; text-align: center; justify-content: center; font-size: 0.95rem; padding: 12px; }
.sidebar-contact { display: flex; flex-direction: column; gap: 14px; }
.sidebar-contact-item { display: flex; gap: 12px; align-items: center; }
.sidebar-contact-icon { width: 38px; height: 38px; background: rgba(14,165,233,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.sidebar-contact-item h4 { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }
.sidebar-contact-item p { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq-question { width: 100%; background: none; padding: 18px 22px; font-size: 0.95rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer; line-height: 1.5; gap: 16px; }
.faq-question .arrow { flex-shrink: 0; transition: transform 0.3s; color: var(--text-light); }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 22px 18px; color: var(--text-light); font-size: 0.9rem; line-height: 1.8; }

/* RELATED SERVICES */
.related-services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.related-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all 0.3s; display: block; }
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.related-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.related-card p { font-size: 0.82rem; color: var(--text-light); margin: 0; }
.related-card .arrow-link { display: flex; align-items: center; gap: 6px; color: var(--primary); font-size: 0.82rem; font-weight: 600; margin-top: 12px; }

/* DIVIDER */
.section-divider { height: 1px; background: var(--border); margin: 60px 0; }

/* FOOTER */
.footer { background: #080e1f; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-text { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.4); font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.footer-heading { color: #fff; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.footer-address { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-style: normal; line-height: 1.8; }
.footer-address a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.footer-address a:hover { color: #fff; }
.footer-col .footer-links { flex-direction: column; gap: 8px; }
.footer-col .footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-col .footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 20px; text-align: center; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; }
    .content-sidebar { display: none; }
    .page-hero-inner { grid-template-columns: 1fr; }
    .hero-price-card { display: none; }
    .obligations-grid { grid-template-columns: 1fr; }
    .related-services { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15,23,42,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 24px; gap: 16px; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.3s ease; }
    .nav-links.active { max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; opacity: 1; visibility: visible; }
    .nav-dropdown.open .dropdown-menu {
        position: fixed;
        top: 60px;
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        min-width: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: none;
    }
    .mobile-toggle { display: flex; }
    .page-hero h1 { font-size: 1.8rem; }
}
