/* Catalog Styles */
.catalog-hero {
    height: 70vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.catalog-header {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: none;
    padding: 0 2rem;
}

.catalog-header h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.catalog-header p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Übermacht Catalog - Роскошный дизайн */
.ubermacht-hero {
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(107, 168, 233, 0.3) 100%),
        url('https://via.placeholder.com/1920x800/1a1a1a/6ba8e9?text=ÜBERMACHT+PRESTIGE') 
        center center/cover;
    border-left: 6px solid #6ba8e9;
}

.ubermacht-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(107, 168, 233, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 168, 233, 0.1) 0%, transparent 50%);
}

.ubermacht-hero .catalog-header p {
    color: #6ba8e9;
}

.ubermacht-main {
    background: 
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(107,168,233,0.02)" width="50" height="50"/><rect fill="rgba(107,168,233,0.02)" x="50" y="50" width="50" height="50"/></svg>');
    padding: 60px 0;
}

/* Benefactor Catalog - Роскошный дизайн */
.benefactor-hero {
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(212, 175, 55, 0.3) 100%),
        url('https://via.placeholder.com/1920x800/1a1a1a/d4af37?text=BENEFACTOR+LUXURY') 
        center center/cover;
    border-left: 6px solid #d4af37;
}

.benefactor-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.benefactor-hero .catalog-header p {
    color: #d4af37;
}

.benefactor-main {
    background: 
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(212,175,55,0.02)" width="50" height="50"/><rect fill="rgba(212,175,55,0.02)" x="50" y="50" width="50" height="50"/></svg>');
    padding: 60px 0;
}

/* Убираем пустое пространство по бокам */
.ubermacht-main .section-container,
.benefactor-main .section-container {
    max-width: 1400px;
    padding: 0 1rem;
}

/* Общие стили для каталогов */
.catalog-main {
    padding: 80px 0;
    background: #0a0a0a;
}

/* Фильтры - общие стили */
.catalog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-label {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid;
    color: #b0b0b0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 300;
}

.filter-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.filter-btn.active {
    color: #000;
    font-weight: 500;
    box-shadow: 0 5px 15px;
}

.sort-select {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: currentColor;
}

/* Специфичные стили для Übermacht фильтров */
.ubermacht-filters {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.9) 100%);
    border: 1px solid rgba(107, 168, 233, 0.3);
}

.ubermacht-filters .filter-label {
    color: #6ba8e9;
}

.ubermacht-filters .filter-btn {
    border-color: rgba(107, 168, 233, 0.3);
}

.ubermacht-filters .filter-btn:hover {
    border-color: #6ba8e9;
}

.ubermacht-filters .filter-btn.active {
    background: #6ba8e9;
    border-color: #6ba8e9;
    box-shadow: 0 5px 15px rgba(107, 168, 233, 0.3);
}

.ubermacht-filters .sort-select {
    border-color: rgba(107, 168, 233, 0.3);
}

/* Специфичные стили для Benefactor фильтров */
.benefactor-filters {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.benefactor-filters .filter-label {
    color: #d4af37;
}

.benefactor-filters .filter-btn {
    border-color: rgba(212, 175, 55, 0.3);
}

.benefactor-filters .filter-btn:hover {
    border-color: #d4af37;
}

.benefactor-filters .filter-btn.active {
    background: #d4af37;
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.benefactor-filters .sort-select {
    border-color: rgba(212, 175, 55, 0.3);
}

/* Сетка моделей - ВЕЗДЕ по 3 в ряд */
.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.model-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.model-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.model-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid;
}

.model-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #000;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
}

.model-info {
    padding: 2rem;
}

.model-name {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.model-type {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
}

.model-description {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.model-price {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.model-actions {
    display: flex;
    gap: 1rem;
    position: relative; /* Добавляем */
    z-index: 3; /* Выше чем псевдоэлемент */
}
.details-btn,
.config-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 0.9rem;
    position: relative; /* Добавляем */
    z-index: 4; /* Еще выше */
}

.details-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.details-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.config-btn {
    color: #000;
    font-weight: 500;
    box-shadow: 0 5px 15px;
}

.config-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px;
}

/* Специфичные стили для Übermacht моделей */
.model-card:not(.benefactor-model) {
    border-color: rgba(107, 168, 233, 0.2);
}

.model-card:not(.benefactor-model)::before {
    background: linear-gradient(135deg, rgba(107, 168, 233, 0.1) 0%, transparent 50%);
}

.model-card:not(.benefactor-model):hover::before {
    opacity: 1;
}

.model-card:not(.benefactor-model):hover {
    border-color: rgba(107, 168, 233, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(107, 168, 233, 0.3);
}

.model-card:not(.benefactor-model) .model-image {
    border-color: rgba(107, 168, 233, 0.2);
}

.model-card:not(.benefactor-model) .model-badge {
    background: linear-gradient(135deg, #6ba8e9, #4a90e2);
}

.model-card:not(.benefactor-model) .model-type {
    color: #6ba8e9;
}

.model-card:not(.benefactor-model) .model-price {
    color: #d4af37;
}

.model-card:not(.benefactor-model) .config-btn {
    background: linear-gradient(135deg, #6ba8e9, #4a90e2);
    box-shadow: 0 5px 15px rgba(107, 168, 233, 0.3);
}

.model-card:not(.benefactor-model) .config-btn:hover {
    box-shadow: 0 8px 25px rgba(107, 168, 233, 0.5);
}

/* Специфичные стили для Benefactor моделей */
.benefactor-model {
    border-color: rgba(212, 175, 55, 0.2);
}

.benefactor-model::before {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.benefactor-model:hover::before {
    opacity: 1;
}

.benefactor-model:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.benefactor-model .model-image {
    border-color: rgba(212, 175, 55, 0.2);
}

.benefactor-model .model-badge {
    background: linear-gradient(135deg, #d4af37, #b8860b);
}

.benefactor-model .model-type {
    color: #d4af37;
}

.benefactor-model .model-price {
    color: #d4af37;
}

.benefactor-model .config-btn {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.benefactor-model .config-btn:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-header h1 {
        font-size: 3rem;
        letter-spacing: 3px;
    }
    
    .catalog-header p {
        font-size: 1.2rem;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .catalog-filters {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Простая модалка по центру */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center; /* Верни center */
    justify-content: center;
    z-index: 1000;
    /* Убери padding-top */
}

.buy-modal {
    width: 90%;
    max-width: 500px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    /* Убери margin-top */
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.4em;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

.buy-summary {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
}

.buy-summary h4 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1.3em;
}

.buy-summary p {
    margin: 0;
    font-size: 1.4em;
    font-weight: bold;
    color: #d4af37;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cancel-btn {
    flex: 1;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
}

.submit-buy-btn {
    flex: 2;
    background: #d4af37;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.ubermacht-modal .modal-type {
    color: #6ba8e9;
}

.benefactor-modal .modal-type {
    color: #d4af37;
}

.modal-description {
    color: #b0b0b0;
    line-height: 1.6;
}

.modal-features h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.modal-features ul {
    color: #b0b0b0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.modal-config-btn {
    padding: 1rem 2rem;
    background: #6ba8e9;
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative; /* Добавляем */
    z-index: 5; /* Для модалки тоже */
}

.modal-config-btn:hover {
    background: #5a97d8;
}

.benefactor-modal .modal-config-btn {
    background: #d4af37;
}

.benefactor-modal .modal-config-btn:hover {
    background: #b8860b;
}

/* Адаптивность модалки */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
}

.model-actions {
    display: flex;
    gap: 10px;
}

.details-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.details-btn:hover {
    background: rgba(255,255,255,0.2);
}

.buy-btn {
    background: #d4af37;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.buy-btn:hover {
    background: #e6c44c;
}

/* Стили для модалки покупки */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.buy-modal {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.buy-summary {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
}

.buy-summary h4 {
    margin: 0 0 5px 0;
    color: #fff;
}

.buy-summary p {
    margin: 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #d4af37;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cancel-btn {
    flex: 1;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
}

.submit-buy-btn {
    flex: 2;
    background: #d4af37;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}