/* Remeslnik za rohem - Main Stylesheet (CZ + SK Dual Portal, Mobile-First Responsive) */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: #111827; background: #FFFFFF; scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; font-size: 15px; line-height: 1.6; color: #111827; background: #FFFFFF; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: #16A34A; text-decoration: none; }
a:hover { text-decoration: underline; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(22, 163, 74, 0.45);
    outline-offset: 2px;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }
@media (max-width: 768px) { .container { padding: 0 14px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; height: 72px; background: #FFFFFF; border-bottom: 1px solid #E5E7EB; display: flex; align-items: center; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; }
.brand-lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #111827; flex-shrink: 0; min-width: 0; }
.brand-lockup:hover { text-decoration: none; }
.brand-square { width: 44px; height: 44px; border-radius: 12px; background: #16A34A; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-weight: 800; font-size: 25px; position: relative; flex-shrink: 0; }
.brand-house { position: absolute; right: 4px; bottom: 4px; width: 13px; height: 13px; }
.brand-title { font-weight: 800; font-size: 19px; color: #111827; line-height: 1.1; white-space: nowrap; }
.brand-sub { font-size: 10px; color: #64748B; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav a { color: #111827; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: #16A34A; border-bottom-color: #16A34A; text-decoration: none; }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-phone { text-align: right; }
.header-phone-num { font-size: 14px; font-weight: 700; color: #111827; white-space: nowrap; display: block; }
.header-phone-hours { font-size: 11px; color: #64748B; white-space: nowrap; display: block; }

.market-switch { display: inline-flex; align-items: center; background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: 10px; padding: 2px; gap: 2px; flex-shrink: 0; }
.market-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #475569; text-decoration: none; }
.market-pill:hover { text-decoration: none; color: #111827; }
.market-pill.active { background: #16A34A; color: #FFFFFF; }

.hamburger-btn { display: none; min-width: 44px; min-height: 44px; background: #F8FAFC; border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 20px; color: #111827; align-items: center; justify-content: center; }

.mobile-nav { display: none; }
@media (max-width: 1080px) {
    .main-nav, .header-phone { display: none; }
    .hamburger-btn { display: inline-flex; }
    .mobile-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        background: #FFFFFF;
        border-bottom: 1px solid #E5E7EB;
        padding: 16px;
        gap: 6px;
        z-index: 49;
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
    }
    .mobile-nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        color: #111827;
        background: #F8FAFC;
    }
    .mobile-nav a.active { background: #DCFCE7; color: #15803D; font-weight: 700; }
    .mobile-nav a.mobile-nav-cta { background: #16A34A; color: #FFFFFF; justify-content: center; font-weight: 800; margin-bottom: 6px; }
}
@media (max-width: 768px) {
    .header-cta-desktop, .header-login-desktop { display: none; }
}
@media (max-width: 480px) {
    .site-header { height: 64px; }
    .mobile-nav.open { top: 64px; max-height: calc(100vh - 64px); }
    .brand-square { width: 38px; height: 38px; font-size: 21px; border-radius: 10px; }
    .brand-title { font-size: 16px; }
    .brand-sub { font-size: 9px; letter-spacing: 0.6px; }
    .market-pill { min-width: 30px; height: 28px; padding: 0 6px; font-size: 11px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; min-height: 44px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.btn-primary { background: #16A34A; color: #FFFFFF; }
.btn-primary:hover { background: #15803D; color: #FFFFFF; }
.btn-gradient { background: linear-gradient(135deg, #16A34A, #15803D); color: #FFFFFF; }
.btn-outline { background: #FFFFFF; color: #16A34A; border-color: #16A34A; }
.btn-outline:hover { background: #F0FDF4; }
.btn-secondary { background: #F1F5F9; color: #111827; border-color: #E5E7EB; }
.btn-danger { background: #DC2626; color: #FFFFFF; }
.btn-danger-outline { background: #FFFFFF; color: #DC2626; border-color: #DC2626; }
.btn-warning { background: #F59E0B; color: #FFFFFF; }
.btn-sm { padding: 8px 12px; min-height: 38px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; min-height: 50px; font-size: 16px; }

/* Inputs & Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.form-control { width: 100%; height: 48px; padding: 12px 14px; border: 1px solid #E5E7EB; border-radius: 10px; font-size: 15px; font-family: inherit; color: #111827; background: #FFFFFF; transition: border-color 0.2s, box-shadow 0.2s; max-width: 100%; }
textarea.form-control { height: auto; min-height: 84px; }
.form-control::placeholder { color: #94A3B8; }
.form-control:focus { outline: none; border-color: #16A34A; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }

/* Cards */
.card { background: #FFFFFF; border-radius: 16px; padding: 24px; border: 1px solid #E5E7EB; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; min-width: 0; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); border-color: #BBF7D0; }
@media (max-width: 640px) { .card { padding: 16px; border-radius: 14px; } }

/* Hero */
.hero-section { background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 50%, #FEF9C3 100%); padding: 48px 0; }
.hero-grid { display: grid; grid-template-columns: 60fr 40fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) { .hero-section { padding: 28px 0; } }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid #BBF7D0; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: #15803D; margin-bottom: 14px; max-width: 100%; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; display: inline-block; flex-shrink: 0; }
.hero-h1 { font-size: 46px; font-weight: 800; line-height: 1.12; margin: 0 0 16px 0; color: #111827; word-break: break-word; }
@media (max-width: 768px) { .hero-h1 { font-size: 30px; } }
@media (max-width: 420px) { .hero-h1 { font-size: 26px; } }
.hero-highlight { background: #BBF7D0; color: #15803D; padding: 0 8px; border-radius: 8px; display: inline-block; }
.hero-sub { font-size: 16px; color: #475569; line-height: 1.6; margin: 0 0 20px 0; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 768px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.stat-box { background: #FFFFFF; border-radius: 12px; padding: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); min-width: 0; }
.stat-val { font-size: 22px; font-weight: 800; color: #111827; font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 12px; color: #64748B; }
.hero-form-card { background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.12); border: 1px solid #E5E7EB; }
@media (max-width: 640px) { .hero-form-card { padding: 18px; } }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; gap: 14px; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; gap: 14px; } }

.cat-icon-box { width: 48px; height: 48px; background: #FEF9C3; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #EAB308; margin-bottom: 12px; }

/* How it works */
.how-section { background: #0F172A; padding: 48px 0; border-radius: 24px 24px 0 0; color: #FFFFFF; }
@media (max-width: 640px) { .how-section { padding: 32px 0; border-radius: 18px 18px 0 0; } }
.how-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 22px; }
.how-num { font-size: 30px; font-weight: 800; color: #F59E0B; margin-bottom: 8px; }
.trust-bar { background: linear-gradient(135deg, #16A34A, #15803D); border-radius: 16px; padding: 24px; color: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* Stars & Badges */
.stars { color: #FACC15; font-size: 16px; letter-spacing: 1px; }
.star-empty { color: #CBD5E1; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.badge-green { background: #DCFCE7; color: #15803D; }
.badge-orange { background: #FFEDD5; color: #C2410C; }
.badge-gold { background: #FEF3C7; color: #B45309; }
.badge-grey { background: #F1F5F9; color: #475569; }
.badge-red { background: #FEE2E2; color: #B91C1C; }
.chip { display: inline-block; background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; margin: 2px; }

/* Alerts */
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; }
.alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #B45309; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #E5E7EB; border-radius: 12px; background: #FFFFFF; max-width: 100%; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th { background: #F8FAFC; color: #475569; text-align: left; padding: 12px 14px; font-weight: 700; border-bottom: 1px solid #E5E7EB; white-space: nowrap; }
table.data-table td { padding: 12px 14px; border-bottom: 1px solid #E5E7EB; vertical-align: middle; }
table.data-table tbody tr:nth-child(even) { background: #F8FAFC; }
table.data-table tbody tr:hover { background: #F0FDF4; }
@media (max-width: 640px) {
    table.data-table th, table.data-table td { padding: 10px; font-size: 13px; }
}

/* Certificate CSS-only */
.certificate-box { background: linear-gradient(145deg, #064E3B 0%, #022C22 100%); border: 4px solid #F59E0B; border-radius: 20px; padding: 36px; color: #FFFFFF; text-align: center; max-width: 720px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.18); position: relative; }
.certificate-inner { border: 1px solid rgba(245, 158, 11, 0.45); border-radius: 12px; padding: 28px; }
.cert-rating-big { font-size: 48px; font-weight: 800; color: #F59E0B; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .certificate-box { padding: 16px; border-width: 3px; }
    .certificate-inner { padding: 16px; }
    .cert-rating-big { font-size: 36px; }
}

/* FAQ Accordion */
.faq-item { border: 1px solid #E5E7EB; border-radius: 12px; margin-bottom: 10px; background: #FFFFFF; overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: #FFFFFF; border: none; padding: 16px 18px; min-height: 48px; font-size: 15px; font-weight: 700; color: #111827; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-answer { display: none; padding: 0 18px 16px 18px; color: #475569; font-size: 14px; }
.faq-item.open .faq-answer { display: block; }

/* Floating Operator Chat */
.op-chat-bubble { position: fixed; right: 16px; bottom: 16px; z-index: 45; background: #16A34A; color: #FFFFFF; border: none; border-radius: 999px; padding: 12px 16px; min-height: 44px; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(22,163,74,0.35); display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px); }
.op-chat-window { position: fixed; right: 16px; bottom: 76px; z-index: 50; width: 360px; max-width: calc(100vw - 24px); background: #FFFFFF; border-radius: 16px; border: 1px solid #E5E7EB; box-shadow: 0 20px 50px rgba(0,0,0,0.18); display: none; flex-direction: column; overflow: hidden; max-height: 520px; }
.op-chat-window.open { display: flex; }
@media (max-width: 640px) {
    .op-chat-bubble { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 13px; }
    .op-chat-window.open { right: 0; bottom: 0; top: 0; left: 0; width: 100%; max-width: 100%; max-height: 100%; border-radius: 0; }
}
.op-chat-head { background: #16A34A; color: #FFFFFF; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.op-chat-msgs { padding: 14px; overflow-y: auto; flex: 1; background: #F8FAFC; min-height: 220px; }
.msg-bubble { padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; font-size: 14px; max-width: 85%; word-break: break-word; }
.msg-visitor { background: #DBEAFE; color: #1E3A8A; margin-left: auto; }
.msg-operator { background: #DCFCE7; color: #14532D; }
.msg-system { background: #E2E8F0; color: #475569; font-size: 12px; text-align: center; max-width: 100%; }

/* Admin Layout & Dual Admin CZ|SK Bar */
.admin-shell { display: flex; min-height: 100vh; width: 100%; }
.admin-sidebar { width: 256px; flex-shrink: 0; background: #0F172A; color: #FFFFFF; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; z-index: 60; }
.admin-nav-link { display: flex; align-items: center; justify-content: space-between; color: #CBD5E1; padding: 10px 12px; min-height: 42px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.admin-nav-link:hover, .admin-nav-link.active { background: #16A34A; color: #FFFFFF; text-decoration: none; }
.admin-dot { background: #DC2626; color: #FFFFFF; border-radius: 999px; font-size: 11px; padding: 2px 7px; font-weight: 700; }
.admin-main { flex: 1; background: #F8FAFC; padding: 20px 24px; min-width: 0; }
.admin-market-bar { position: sticky; top: 0; z-index: 45; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 14px; padding: 10px 14px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; box-shadow: 0 4px 14px rgba(15,23,42,0.05); }
.admin-market-tabs { display: inline-flex; background: #F1F5F9; border-radius: 10px; padding: 3px; gap: 4px; }
.admin-market-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 36px; border-radius: 8px; font-size: 13px; font-weight: 800; color: #475569; text-decoration: none; white-space: nowrap; }
.admin-market-tab:hover { text-decoration: none; color: #111827; }
.admin-market-tab.active-cz { background: #16A34A; color: #FFFFFF; }
.admin-market-tab.active-sk { background: #2563EB; color: #FFFFFF; }
.admin-mobile-menu-btn { display: none; min-width: 44px; min-height: 44px; background: #0F172A; color: #FFFFFF; border: none; border-radius: 10px; font-size: 20px; cursor: pointer; align-items: center; justify-content: center; }
.admin-sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.55); z-index: 55; }
.admin-sidebar-backdrop.open { display: block; }

@media (max-width: 960px) {
    .admin-mobile-menu-btn { display: inline-flex; }
    .admin-main { padding: 12px; }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 270px;
        max-width: 85vw;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-market-bar { padding: 10px; }
}

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 70; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox-overlay.open { display: flex; }
