/* ========== СТРАНИЦА КАТАЛОГА ========== */

.breadcrumbs {
    margin-top: 0;
    padding-top: 0;
}

.catalog {
    padding: 20px 0;
}

.catalog-section {
    margin-bottom: 60px;
}

.catalog-section:last-child {
    margin-bottom: 0;
}

.catalog-section__title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--accent-secondary);
    border-left: 4px solid var(--accent-secondary);
    padding-left: 20px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ========== КАРТОЧКИ РАЗДЕЛОВ ========== */
.catalog-section-card {
    background: linear-gradient(145deg, rgba(15, 35, 48, 0.95), rgba(20, 40, 52, 0.9));
    border: 1px solid rgba(238, 167, 37, 0.25);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.catalog-section-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-secondary);
    outline: 1px solid var(--accent-secondary);
    outline-offset: -1px;
    box-shadow: 0 8px 25px rgba(238, 167, 37, 0.25);
}

.catalog-section-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.catalog-section-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.catalog-section-card:hover .catalog-section-card__image img {
    transform: scale(1.03);
}

.catalog-section-card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.catalog-section-card__content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-section-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--accent-secondary);
}

.catalog-section-card p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.catalog-section-card__btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(145deg, rgba(229, 115, 39, 0.15), rgba(238, 167, 37, 0.1));
    border: 2px solid var(--accent-secondary);
    border-radius: 50px;
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
    align-self: center;
    margin-top: auto;
    width: auto;
    min-width: 160px;
}

.catalog-section-card:hover .catalog-section-card__btn {
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* ========== КОНСТРУКТОР ========== */
.constructor-card {
    background: linear-gradient(145deg, rgba(15, 35, 48, 0.95), rgba(20, 40, 52, 0.9));
    border: 1px solid rgba(238, 167, 37, 0.25);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.constructor-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-secondary);
    box-shadow: 0 8px 25px rgba(238, 167, 37, 0.25);
    outline: 1px solid var(--accent-secondary);
    outline-offset: -1px;
}

.constructor-card__image {
    flex: 1;
    min-width: 280px;
    display: flex;
    position: relative;
    overflow: hidden;
    margin: 12px;
    border-radius: 16px;
}

.constructor-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    border-radius: 16px;
}

.constructor-card__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 29, 41, 0.15);
    border-radius: 16px;
    pointer-events: none;
}

.constructor-card__content {
    flex: 1;
    padding: 20px 30px 30px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.constructor-card__icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.constructor-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-secondary);
}

.constructor-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.constructor-card__steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step__num {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-light);
}

.step__text {
    font-size: 14px;
    color: var(--text-gray);
}

/* ========== УСЛУГИ ========== */
.services-card {
    background: linear-gradient(145deg, rgba(15, 35, 48, 0.92), rgba(20, 40, 52, 0.85));
    border: 1px solid rgba(238, 167, 37, 0.25);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.services-card:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 12px 35px rgba(238, 167, 37, 0.3);
}

.services-card__icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.services-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-secondary);
}

.services-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-card__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========== ПРАЙС-ЛИСТ (МОДАЛЬНОЕ ОКНО) ========== */
.price-table-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.price-table-wrapper {
    position: relative;
    width: 95%;
    max-width: 1300px;
    max-height: 90vh;
    background: linear-gradient(145deg, #0A1A24, #0C1F2A);
    border: 2px solid var(--accent-secondary);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.price-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--accent-secondary);
}

.price-table-header h3 {
    margin: 0;
    color: var(--accent-secondary);
    font-size: 1.5rem;
}

.price-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.price-close:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.price-table-scroll {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.price-table th,
.price-table td {
    border: 1px solid rgba(238, 167, 37, 0.2);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.price-table th {
    background: rgba(238, 167, 37, 0.15);
    color: var(--accent-secondary);
    font-weight: 600;
}

.price-table td {
    color: var(--text-gray);
}

.price-section td {
    background: rgba(238, 167, 37, 0.08);
    color: var(--accent-primary);
    font-weight: 600;
}

.price-table-note {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(238, 167, 37, 0.2);
    font-size: 11px;
    color: var(--text-gray);
    text-align: center;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .catalog {
        padding: 40px 0;
    }
    
    .catalog-section {
        margin-bottom: 40px;
    }
    
    .catalog-section__title {
        font-size: 1.4rem;
        padding-left: 15px;
    }
    
    .catalog-section-card__image {
        height: 160px;
    }
    
    .catalog-section-card h3 {
        font-size: 1.2rem;
    }
    
    .catalog-section-card p {
        font-size: 12px;
    }
    
    .catalog-section-card__btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 140px;
    }
    
    .constructor-card {
        flex-direction: column;
    }
    
    .constructor-card__image {
        max-height: 200px;
    }
    
    .constructor-card__content {
        padding: 20px;
    }
    
    .constructor-card h3 {
        font-size: 1.3rem;
    }
    
    .constructor-card__steps {
        gap: 20px;
    }
    
    .step__text {
        font-size: 12px;
    }
    
    .services-card {
        padding: 25px;
    }
    
    .services-card h3 {
        font-size: 1.4rem;
    }
    
    .services-card p {
        font-size: 0.9rem;
    }
    
    .price-table {
        font-size: 11px;
    }
    
    .price-table th,
    .price-table td {
        padding: 6px 8px;
    }
    
    .price-table-header h3 {
        font-size: 1.2rem;
    }
    
    .price-table-wrapper {
        width: 98%;
    }
}