/* ===== LAYOUT ===== */
.catalog-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* ===== CONTENT ===== */
.catalog-content {
    flex: 1;
}

/* ===== CARD LIST ===== */
.catalog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 60px 20px;
    margin-top: 60px;
}

/* ===== CARD ===== */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e9e7e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}



.product-card:hover {
    border-color: #8d8d8d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.product-card-link {
    display: block;
}

.product-card-header {
    margin-top: -60px;
}

/* ===== IMAGE ===== */
.product-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.product-card-image-2 {
    aspect-ratio: 2 / 1;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

/* ===== TITLE ===== */
.product-card-title {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.45s cubic-bezier(.4, 0, .2, 1);
}


.product-card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 2px;
    background-color: var(--secondary-card-color);
    border-radius: 2px;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 0.55s cubic-bezier(.4, 0, .2, 1), background-color 0.45s ease;
}

.product-card:hover .product-card-title {
    color: var(--secondary-card-color);
}

.product-card:hover .product-card-title::after {
    transform: scaleX(1.75);
}

.product-card-body {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ===== SPECS ===== */
.product-card-specs {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 14px;
}

.product-card-specs li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #e5e5e5;
}

/* ===== PRICE ===== */
.product-card-price {
    margin: 6px 0;
    transition: color 0.45s cubic-bezier(.4, 0, .2, 1);
}

.product-card-price-label {
    display: block;
}

.product-card-price-value {
    font-size: 20px;
}

/* ===== ACTIONS ===== */
.product-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary-card {
    background-color: var(--secondary-card-text-color);
    color: var(--secondary-text-color);
    border: none;
}

.btn-primary-card:hover {
    filter: brightness(1.1);
}

.btn-outline {
    flex: 1;
    background-color: var(--secondary-card-text-color);
    color: var(--secondary-text-color);
    text-align: center;
}

.btn-outline:hover {
    filter: brightness(1.1);
}

.equipment-photo {
    width: 100%;
    height: 540px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 40px;
}

.equipment-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-title {
    margin-bottom: 20px;
}

/* БЛОК УСЛУГИ СПЕЦТЕХНИКИ */
.usligi-spectech {
    margin-bottom: 60px;
}

.usligi-spectech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
}

.usligi-spectech-item {
    text-align: center;
}

.usligi-spectech-icon {
    height: 40px;
    margin-bottom: 8px;
}

.usligi-spectech-icon img {
    height: 100%;
    width: auto;
}

.usligi-spectech-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #535353;
    line-height: 1.4;
}


/* ЗАКАЗ */
.product-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.product-modal.is-active {
    display: block;
}

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.product-modal-content {
    position: relative;
    max-width: 420px;
    margin: 8vh auto;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    z-index: 1;
    animation: productModalFade 0.25s ease;
}

@keyframes productModalFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-modal-image {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 16px;
}

.product-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-modal-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid #d1d1d1;
    margin-bottom: 12px;
    font-size: 15px;
}

.product-btn-submit {
    width: 100%;
    background-color: var(--secondary-card-text-color);
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
}

.product-modal-close {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 46px;
    background: none;
    border: none;
    cursor: pointer;
}
