/* ===============================
   MATERIALS CATALOG — YETI³
   =============================== */

/* Grid override */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* Card */
.card {
    background: var(--bg-paper, #fff);
    border-radius: 18px;
    padding: 22px 22px 20px;
    text-decoration: none;
    color: inherit;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 6px 18px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 14px 36px rgba(0, 0, 0, 0.12);
}

/* Title */
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Meta line */
.card-meta {
    font-size: 0.85rem;
    color: var(--text-soft, #666);
}

/* Description preview */
.card p {
    line-height: 1.55;
}

/* Footer */
.card-footer {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--accent, #4a7cff);
    font-weight: 500;
}

/* Section header */
h2 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 8px;
}

/* Price highlight */
.price-big {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* World map */
.world-map-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.world-map {
    width: 100%;
    height: auto;
}

.map-tooltip {
    position: absolute;
    padding: 8px 14px;
    background: rgba(15, 47, 58, 0.95);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

/* Fade animation */
.fade-in {
    animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Material group blocks */
.material-group-block {
    margin-top: 18px;
}

.material-group-block h4 {
    font-size: 14px;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.material-group-block.wood h4 { color: #7A5C3E; }
.material-group-block.metal h4 { color: #6E7B87; }
.material-group-block.stone h4 { color: #8A8A8A; }
.material-group-block.composite h4 { color: #5F7C6A; }

.material-group-block ul {
    padding-left: 16px;
}

/* Mobile */
@media (max-width: 600px) {
    .card {
        padding: 18px;
    }

    .card-title {
        font-size: 1.05rem;
    }
}