/* Podstawowe ustawienia i kolory (styl industrialny, techniczny) */
:root {
    --primary-color: #004d99; /* Ciemny, techniczny niebieski */
    --secondary-color: #f4f4f9;
    --text-color: #333333;
    --border-color: #dddddd;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nagłówek */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.phone-link {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    margin-left: 10px;
    background: #003366;
    padding: 5px 15px;
    border-radius: 5px;
}

/* Strona główna - Katalog */
.intro {
    text-align: center;
    padding: 40px 0;
}

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--secondary-color);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.product-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Przyciski */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover { background-color: #003366; }

.btn-large {
    display: block;
    font-size: 1.2rem;
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
}

.btn-secondary {
    display: block;
    background-color: #555;
    color: white;
    padding: 10px;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
}

/* Strona Produktu */
.back-link {
    display: inline-block;
    margin: 20px 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.product-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Tabele z parametrami */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.specs-table th, .specs-table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

.specs-table th { background-color: var(--secondary-color); }

.tech-specs-list ul {
    list-style-type: square;
    margin-left: 20px;
}

.tech-specs-list li { margin-bottom: 10px; }

/* Panel boczny (Zadzwoń) */
.order-box {
    background: #e6f2ff;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    height: fit-content;
    text-align: center;
}

.order-box h3 { margin-bottom: 15px; }
.order-box p { margin-bottom: 20px; }
.mail-text { margin: 15px 0 5px 0; font-size: 0.9rem;}

/* Stopka */
.site-footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-contact a { color: #4da6ff; }

/* Responsywność dla telefonów (RWD) */
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; gap: 15px; }
    .product-details { grid-template-columns: 1fr; }
    .specs-table, .specs-table tbody, .specs-table tr, .specs-table th, .specs-table td {
        display: block; width: 100%;
    }
    .specs-table tr { margin-bottom: 15px; }
    .specs-table th { background: var(--primary-color); color: white; }
    .specs-table td { text-align: right; position: relative; padding-left: 50%; }
    .specs-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
    }
}
/* Logo bez H1 (SEO) */
.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    color: inherit;
    letter-spacing: 0.5px;
}
.logo a {
    text-decoration: none;
    color: white;
}

/* CTA wycena */
.btn-cta {
    display: inline-block;
    margin-top: 10px;
    margin-left: 8px;
    background: #ff3333;
    color: #fff !important;
    border: none;
}
.btn-cta:hover {
    background: #cc0000;
}
.product-card .btn-cta {
    margin-left: 0;
    margin-top: 10px;
}
.cta-row {
    margin: 25px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Jak zamowic + stany magazynowe */
.how-to-order {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin: 0 0 40px;
}
.how-to-order h2 {
    color: var(--primary-color);
    margin-bottom: 12px;
}
.stock-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 0 0 12px;
}
.stock-ok {
    background: #e6f4ea;
    color: #137333;
}
.stock-order {
    background: #fef7e0;
    color: #b06000;
}

/* Formularz wyceny (modal) */
.wycena-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.wycena-modal.is-open { display: flex; }
.wycena-dialog {
    background: #fff;
    border-radius: 10px;
    max-width: 480px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    position: relative;
}
.wycena-dialog h2 {
    color: var(--primary-color);
    margin: 0 40px 8px 0;
    font-size: 1.35rem;
}
.wycena-product-label {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 16px;
}
.wycena-dialog label {
    display: block;
    font-weight: 600;
    margin: 12px 0 4px;
    font-size: 0.9rem;
}
.wycena-dialog input,
.wycena-dialog textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}
.wycena-dialog textarea { min-height: 120px; resize: vertical; }
.wycena-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.wycena-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}
.btn-secondary {
    background: #eee;
    color: #333 !important;
}
