/* =========================================
   ГЛАВНАЯ СТРАНИЦА КАТАЛОГА (Main Hub)
========================================= */

.main-catalog-container {
    max-width: 1440px; 
    margin: 40px auto 80px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

/* --- SEO HEADER --- */
.mc-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.mc-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: #4a3c5a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.mc-lead {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* --- СЕТКА КАТЕГОРИЙ --- */
.mc-categories-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #333333;
    border-bottom: 2px solid #fb5a6c;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.mc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.mc-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(147, 96, 152, 0.15);
}

.mc-card-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: #fdfafb;
}

.mc-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mc-card:hover .mc-card-img-wrapper img {
    transform: scale(1.05);
}

/* Плашка наведения */
.mc-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(147, 96, 152, 0.9);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mc-card:hover .mc-card-overlay {
    transform: translateY(0);
}

.mc-card-content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.mc-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/img/logo_watermark.svg');
    background-repeat: no-repeat;
    background-position: right -20px bottom -20px;
    background-size: 150px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.mc-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 10px 0;
    transition: color 0.2s;
}

.mc-card:hover .mc-card-title {
    color: #fb5a6c;
}

.mc-card-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

/* --- SEO FOOTER --- */
.mc-seo-footer {
    background: #fcf9fa;
    padding: 50px;
    border-radius: 12px;
    border-top: 4px solid #936098;
}

.mc-seo-footer h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #4a3c5a;
    margin: 0 0 40px 0;
    text-align: center;
}

.mc-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mc-feature {
    text-align: center;
}

.mc-feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    line-height: 1;
}

.mc-feature h3 {
    font-size: 18px;
    color: #333333;
    margin: 0 0 10px 0;
}

.mc-feature p {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* --- АДАПТИВНОСТЬ --- */
@media screen and (max-width: 1200px) {
    .mc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 992px) {
    .mc-grid { grid-template-columns: repeat(2, 1fr); }
    .mc-features-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media screen and (max-width: 576px) {
    .mc-grid { grid-template-columns: 1fr; }
    .mc-header h1 { font-size: 32px; }
    .mc-seo-footer { padding: 30px 20px; }
    .mc-card-overlay { display: none; /* На мобильных убираем ховер-эффекты */ }
}