/* =====================================================
   Sekcja oprogramowania CAD/CAM – podstrona Oferta
   ===================================================== */

.cad-software-section {
    padding: 80px 20px;
    background-color: var(--color-background);
    font-family: var(--font-primary);
}

.cad-software-section .services-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Grupy producentów */
.cad-brand-group {
    max-width: 70%;
    margin: 0 auto 60px;
}

.cad-brand-group:last-child {
    margin-bottom: 0;
}

.cad-brand-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.cad-brand-label span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cad-brand-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ffffff30;
}

/* Siatka kart produktów */
.cad-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cad-product-card {
    background-color: var(--background-secondary);
    border: 1px solid #ffffff40;
    border-radius: 0.5rem;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--box-shadow);
    position: relative;
}

.cad-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.cad-product-logo {
    height: 52px;
    display: flex;
    align-items: center;
}

.cad-product-logo img {
    max-height: 52px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
}

.cad-product-card h3 {
    font-size: 1.3rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

.cad-product-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.cad-product-card .read-more {
    font-size: 1rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.cad-product-card .read-more:hover {
    color: var(--color-hover);
}

/* Responsywność */
@media (max-width: 1300px) {
    .cad-brand-group {
        max-width: 90%;
    }

    .cad-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 968px) {
    .cad-software-section {
        padding: 60px 20px;
    }

    .cad-brand-group {
        max-width: 100%;
        padding: 0 10px;
    }

    .cad-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cad-products-grid {
        grid-template-columns: 1fr;
    }

    .cad-product-card {
        padding: 24px;
    }
}
