:root {
    --bg-gradient: linear-gradient(135deg, #060b26 0%, #1a103c 100%);
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success-bg: #f0fdf4;
    --success-text: #15803d;
    --success-border: #bbf7d0;
    --danger-bg: #fef2f2;
    --danger-text: #b91c1c;
    --danger-border: #fecaca;
    --accent-purple: #7c3aed;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0; padding: 0; background-color: #f1f5f9; color: var(--text-main); -webkit-font-smoothing: antialiased;
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 24px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.logo {
    font-size: 1.3rem; font-weight: 800; color: #0f172a; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -0.03em;
}

.hero {
    background: var(--bg-gradient); color: white; text-align: center; padding: 90px 20px 160px 20px; position: relative; overflow: hidden;
}

.hero h1 { margin: 0 0 14px 0; font-size: 3rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; }
.hero p { font-size: 1.2rem; color: #cbd5e1; max-width: 580px; margin: 0 auto; font-weight: 400; line-height: 1.6; opacity: 0.9; }

/* KARTA KALKULATORA W PEŁNI USZTYWNIONA I ZABEZPIECZONA */
.calc-section {
    background: var(--card-bg);
    padding: 30px; border-radius: 28px; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
    max-width: 490px;
    width: 100%;
    margin: -90px auto 50px auto;
    border: 1px solid #ffffff;
    position: relative;
    z-index: 10;
}

.calc-section h3 { margin-top: 0; font-size: 1.3rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; margin-bottom: 20px; }

.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; width: 100%; }
.calc-input-group { display: flex; flex-direction: column; }
.calc-input-group label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-align: left; }

.calc-input-group input, .calc-select {
    padding: 15px 6px; border: 1px solid #e2e8f0; border-radius: 14px; font-size: 1rem; font-weight: 600; background: #f8fafc; color: #0f172a; outline: none; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; text-align: center;
}

.calc-input-group input:focus, .calc-select:focus { border-color: var(--primary); background: #ffffff; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12); }
.calc-select { text-align: left; text-align-last: left; width: 100%; margin-bottom: 20px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-left: 16px; padding-right: 44px; }

.btn-calc {
    width: 100%; background: var(--primary); color: white; border: none; padding: 16px; border-radius: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 6px 20px rgba(79, 70, 229, 0.2); text-align: center; display: block;
}
.btn-calc:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3); }

#startArBtn { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); margin-top: 10px; width: 100%; }

.result-box { display: none; padding: 18px; border-radius: 14px; margin-top: 20px; text-align: center; font-weight: 700; font-size: 0.95rem; line-height: 1.5; animation: fadeIn 0.3s ease; }
.result-box.pass { background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success-border); }
.result-box.fail { background: var(--danger-bg); color: var(--danger-text); border: 1px solid var(--danger-border); }

.travel-deals { margin-top: 30px; border-top: 1px dashed #e2e8f0; padding-top: 25px; text-align: left; width: 100%; }
.travel-deals h4 { margin: 0 0 16px 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); font-weight: 800; }

.deal-link {
    display: flex; align-items: center; justify-content: space-between; padding: 16px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; text-decoration: none; margin-bottom: 10px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 4px rgba(0,0,0,0.01); width: 100%;
}
.deal-link:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.08); }
.deal-link:hover .deal-badge { background: var(--primary); color: white; }

.deal-info { display: flex; flex-direction: column; padding-right: 12px; }
.deal-title { font-size: 0.9rem; font-weight: 800; color: #0f172a; letter-spacing: -0.01em; }
.deal-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.deal-badge { font-size: 0.7rem; font-weight: 800; background: #f1f5f9; color: #475569; padding: 6px 12px; border-radius: 8px; transition: all 0.2s ease; letter-spacing: 0.02em; }

.container { max-width: 940px; margin: 0 auto; padding: 0 24px 80px 24px; }
.section-title { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; color: #0f172a; margin-bottom: 10px; text-align: center; }
.section-desc { color: var(--text-muted); text-align: center; margin: 0 0 35px 0; font-size: 1.05rem; }

#searchBar {
    width: 100%; max-width: 500px; display: block; margin: 0 auto 30px auto; padding: 18px 24px; border-radius: 18px; border: 2px solid #e2e8f0; font-size: 1.05rem; font-weight: 600; background: white; box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02); outline: none; transition: all 0.2s ease;
}
#searchBar:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1); }

.products-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 50px; max-width: 500px; margin-left: auto; margin-right: auto; }
.product-item {
    display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; text-decoration: none; color: #334155; background: white; border-radius: 16px; border: 1px solid #e2e8f0; transition: all 0.2s ease; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01); animation: fadeIn 0.2s ease;
}
.product-item:hover { transform: scale(1.01); border-color: var(--accent-purple); color: var(--accent-purple); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.03); }
.product-item .p-name { font-weight: 700; font-size: 0.95rem; color: #1e293b; }
.product-item .p-dims { background: #f1f5f9; padding: 6px 12px; border-radius: 10px; color: #475569; font-size: 0.8rem; font-weight: 800; }

.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 20px; border: 1px solid #e2e8f0; margin-top: 25px; box-shadow: 0 4px 12px rgba(0,0,0,0.01); }
.info-table { width: 100%; border-collapse: separate; border-spacing: 0; background: white; }
.info-table th, .info-table td { padding: 18px 24px; text-align: left; white-space: nowrap; }
.info-table th { background: #f8fafc; color: #475569; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid #e2e8f0; }
.info-table td { border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; font-weight: 500; }

.dimensions { display: flex; gap: 14px; margin: 25px 0; background: #f8fafc; padding: 20px; border-radius: 18px; border: 1px solid #e2e8f0; }
.dim-box { flex: 1; text-align: center; }
.dim-box span { display: block; font-size: 0.7rem; color: var(--text-muted); font-weight: 800; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.04em; }
.dim-box strong { font-size: 1.6rem; color: #0f172a; font-weight: 900; letter-spacing: -0.02em; }

.grid-airlines { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 25px 0; }
.airline-box { padding: 20px; border-radius: 18px; border: 1px solid transparent; }
.airline-box.success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.airline-box.danger { background: var(--danger-bg); color: var(--danger-text); border-color: var(--danger-border); }
.airline-box h3 { margin: 0 0 6px 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.airline-box p { margin: 4px 0; font-size: 0.9rem; font-weight: 500; }
.airline-box .status { font-weight: 800; font-size: 0.95rem; }

.btn-buy { display: block; text-align: center; background: #0f172a; color: white; padding: 18px; text-decoration: none; border-radius: 16px; font-weight: 700; font-size: 1.05rem; margin-top: 30px; box-shadow: 0 4px 12px rgba(15,23,42,0.1); transition: all 0.2s ease; }
.btn-buy:hover { background: #1e293b; transform: translateY(-1px); }

footer { text-align: center; padding: 45px; color: #94a3b8; font-size: 0.85rem; border-top: 1px solid #e2e8f0; margin-top: 60px; background: white; font-weight: 500; }

@media (max-width: 600px) {
    .hero { padding: 50px 16px 110px 16px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .calc-section { padding: 22px 16px; border-radius: 24px; margin-top: -70px; }
    .calc-section h3 { font-size: 1.15rem; margin-bottom: 16px; }

    .calc-grid { gap: 8px; }
    .calc-input-group input { padding: 14px 4px; font-size: 0.9rem; border-radius: 10px; }
    .calc-select { padding: 14px 36px 14px 12px; font-size: 0.95rem; border-radius: 10px; margin-bottom: 16px; }
    .btn-calc { padding: 15px; font-size: 0.95rem; border-radius: 10px; }

    .deal-link { padding: 12px; border-radius: 12px; }
    .deal-title { font-size: 0.82rem; }
    .deal-desc { font-size: 0.72rem; }
    .deal-badge { font-size: 0.65rem; padding: 4px 8px; }

    .container { padding: 0 16px 40px 16px; }
    .section-title { font-size: 1.5rem; }
    .section-desc { font-size: 0.95rem; }
    #searchBar { padding: 15px 18px; font-size: 0.95rem; border-radius: 14px; }

    .grid-airlines { grid-template-columns: 1fr; gap: 10px; }
    .dimensions { flex-direction: column; gap: 16px; padding: 16px; }
    .dim-box strong { font-size: 1.4rem; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
