/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    
}

/* ===== INTRO ===== */
.intro {
    margin-bottom: 40px;
    padding: 20px;
}
h3 {
  color: white;
  text-align: center;
}
h1, h2 {
    text-align: center;
}
.intro p {
    margin-bottom: 15px;
    color: #ccc;
}

.metal-list {
    margin: 20px 0;
    padding-left: 20px;
}

.metal-list li {
    margin-bottom: 8px;
}

/* ===== SECTIONS ===== */
section {
    margin-bottom: 50px;
}

/* ===== GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
    
}

/* ===== CARD ===== */
.category-card {
    background: #111;
    border: 1px solid #222;
    padding: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
  
}

.card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.category-card > *:not(.card-image) {
    position: relative;
    z-index: 1;
}
.category-card:hover {
    border-color: #ff9d42;
    transform: translateY(-3px);
}

/* ===== CARD TEXT ===== */
.category-card p {
    color: #ccc;
    margin-bottom: 15px;
    margin-top: auto;
}

.category-card ul {
    padding-left: 18px;
    margin-bottom: 20px;
}

.category-card li {
    margin-bottom: 6px;
    color: #aaa;
}

/* ===== BUTTON ===== */
.btn {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ff9d42;
    color: #ff9d42;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-top: auto;
}

.btn:hover {
    background: #ff9d42;
    color: #000;
}
.container p {
    color: #000;
}
.categories-grid p {
    color: white;
}
/* планшет */
@media (min-width: 600px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* десктоп */
@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .intro {
        text-align: center;
    }

    .intro p {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .metal-list {
        display: inline-block;
        text-align: left;
    }
}