/* ===== СТРАНИЦА КАТАЛОГА ===== */

/* Hero секция */
.page-main--catalog {
    background: linear-gradient(135deg, #1d1c1c 0%, #2c3e50 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-main--catalog::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-main__desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-top: 20px;
}

/* Секция каталога */
.catalog-section {
    padding: 60px 0;
    background: #161616;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Карточка каталога (кликабельная) */
.catalog-card {
    background: #1d1c1c;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.catalog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(230, 126, 34, 0.3);
}

.catalog-card__image {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #2c3e50;
}

.catalog-card__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.catalog-card:hover .catalog-card__image img {
    transform: scale(1.05);
}

.catalog-card__content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-card__title {
    font-size: 24px;
    color: #e8b830;
    margin-bottom: 15px;
    font-weight: 600;
}

.catalog-card__description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.catalog-card__features {
    list-style: none;
    margin-bottom: 25px;
    flex: 1;
}

.catalog-card__features li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: #95a5a6;
    font-size: 14px;
}

.catalog-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e67e22;
    font-weight: bold;
    font-size: 16px;
}

.catalog-card__price {
    font-size: 24px;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 15px;
    display: block;
}

.catalog-card__button {
    display: inline-block;
    padding: 12px 0;
    color: #e8b830;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.catalog-card:hover .catalog-card__button {
    color: #e67e22;
    padding-left: 10px;
}

/* CTA секция */
.catalog-cta {
    padding: 60px 0;
    background: #1d1c1c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.catalog-cta__wrapper {
    background: linear-gradient(135deg, #2c3e50 0%, #1d1c1c 100%);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.catalog-cta__content h2 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 10px;
}

.catalog-cta__content p {
    font-size: 16px;
    color: #bdc3c7;
}

/* ===== ОПТОВЫЙ ОТДЕЛ ===== */
.wholesale-section {
    padding: 80px 0;
    background: #161616;
}

.wholesale__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.wholesale__desc {
    font-size: 18px;
    color: #5a6a7a;
    line-height: 1.6;
    margin-top: 15px;
}

/* Сетка преимуществ */
.wholesale-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.wholesale-benefit {
    text-align: center;
    padding: 35px 20px;
    background: #e0e0e0;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.wholesale-benefit:hover {
    background: #161616;
    border-color: #e67e22;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.wholesale-benefit__icon {
    font-size: 44px;
    margin-bottom: 18px;
}

.wholesale-benefit h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 12px;
}

.wholesale-benefit p {
    font-size: 14px;
    color: #5a6a7a;
    line-height: 1.6;
}

/* Таблица цен */
.wholesale-pricing {
    background: #0000;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
}

.wholesale-pricing h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a252f;
    text-align: center;
    margin-bottom: 30px;
}

.pricing-table {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.pricing-row--header {
    background: #1a252f;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-row--highlight {
    background: rgba(230, 126, 34, 0.06);
    border-left: 3px solid #e67e22;
}

.pricing-cell {
    padding: 18px 15px;
    text-align: center;
    font-size: 15px;
    color: #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-row--header .pricing-cell {
    padding: 16px 15px;
    font-size: 13px;
    border-bottom: none;
}

.pricing-row:last-child .pricing-cell {
    border-bottom: none;
}

.pricing-row--highlight .pricing-cell {
    font-weight: 600;
    color: #e0e0e0;
}

/* CTA оптового отдела */
.wholesale-cta {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    border-radius: 24px;
    padding: 45px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.wholesale-cta__content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.wholesale-cta__content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 992px) {
    .wholesale-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-row {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-row--header .pricing-cell:first-child,
    .pricing-row--header .pricing-cell:nth-child(3) {
        background: rgba(255, 255, 255, 0.05);
    }

    .wholesale-cta {
        flex-direction: column;
        text-align: center;
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    .wholesale-section {
        padding: 50px 0;
    }

    .wholesale-benefits {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wholesale-pricing {
        padding: 25px 15px;
    }

    .pricing-cell {
        padding: 12px 10px;
        font-size: 13px;
    }

    .pricing-row--header .pricing-cell {
        font-size: 11px;
        letter-spacing: 0;
    }

    .wholesale-cta__content h3 {
        font-size: 22px;
    }

    .wholesale-pricing h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .pricing-row {
        grid-template-columns: 1fr 1fr;
    }

    .wholesale-cta {
        padding: 25px 20px;
    }
}

@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-cta__wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .page-main--catalog {
        padding: 50px 0;
    }
    
    .catalog-card__image {
        width: 100%;
        height: auto;
    }
    .catalog-card__image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        /* max-height убран */
    }

    .catalog-cta__content h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .catalog-card__title {
        font-size: 20px;
    }

    .catalog-card__price {
        font-size: 20px;
    }
}