/* market.css - Полный файл со всеми стилями */

/* ===== Hero Section с 3D-шоу ===== */
.market-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #fff 100%);
    overflow: hidden;
}

.market-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.market-hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.market-hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.market-hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.market-hero-logos {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.market-hero-logos span {
    color: var(--text-tertiary);
    font-weight: 500;
}

.market-hero-logos img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.market-hero-logos img:hover {
    opacity: 1;
}

.market-hero-showcase {
    position: relative;
    height: 500px;
}

.showcase-3d {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.showcase-card {
    position: absolute;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 30px 50px -20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.main-card {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(10deg) rotateX(5deg);
    width: 280px;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.main-card .card-content {
    text-align: center;
}

.main-card .card-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.main-card .card-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin: 15px 0;
}

.main-card .card-info h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.main-card .card-rating {
    color: #fbbf24;
    margin-bottom: 5px;
}

.main-card .card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.floating-card-1 {
    top: 15%;
    right: 10%;
    transform: rotate(5deg);
    animation: float 5s ease-in-out infinite;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.floating-card-2 {
    bottom: 20%;
    left: 5%;
    transform: rotate(-5deg);
    animation: float 7s ease-in-out infinite;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.floating-card-3 {
    top: 30%;
    left: 15%;
    transform: rotate(10deg);
    animation: float 8s ease-in-out infinite;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.showcase-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1;
    filter: blur(60px);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 0;
    animation: pulse 8s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: 0;
    left: 0;
    animation: pulse 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.15; }
}

/* ===== Как работает (процесс) ===== */
.how-it-works-market {
    background: var(--white);
    padding: 80px 0;
}

.process-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.process-item {
    position: relative;
}

.process-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(37,99,235,0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 1;
}

.process-card {
    background: white;
    border-radius: 24px;
    padding: 30px 25px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(37,99,235,0.1);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 40px -15px rgba(37,99,235,0.2);
}

.process-card.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.process-card.highlight .process-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.process-icon {
    width: 70px;
    height: 70px;
    background: rgba(37,99,235,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.process-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.process-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.process-card.highlight p {
    color: rgba(255,255,255,0.9);
}

.process-preview {
    display: flex;
    gap: 5px;
    margin-top: 15px;
}

.process-preview img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 5px 10px -3px rgba(0,0,0,0.1);
}

.process-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.process-colors {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.process-colors span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.process-result {
    margin-top: 15px;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

/* ===== Кому подходит ===== */
.audience {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0;
}

.audience-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.audience-card-modern {
    background: white;
    border-radius: 32px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(37,99,235,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.audience-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 45px -15px rgba(37,99,235,0.2);
    border-color: var(--primary);
}

.audience-card-modern.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: scale(1.05);
    z-index: 2;
}

.audience-card-modern.featured .card-pattern {
    opacity: 0.1;
}

.audience-card-modern.featured p {
    color: rgba(255,255,255,0.9);
}

.audience-card-modern.featured .card-stats span {
    background: rgba(255,255,255,0.2);
    color: white;
}

.card-pattern {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.audience-card-modern:hover .card-pattern {
    transform: scale(1.5);
    opacity: 0.1;
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37,99,235,0.3);
}

.audience-card-modern h3 {
    font-size: 24px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.audience-card-modern p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.card-stats span {
    display: inline-block;
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* ===== Калькулятор ===== */
.calculator {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.calculator::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.calculator .section-header h2,
.calculator .section-header p {
    color: white;
}

.calculator-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 48px;
    padding: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 50px 70px -20px rgba(0,0,0,0.5);
}

.calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.calculator-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-title i {
    font-size: 28px;
    color: var(--primary);
    background: rgba(37,99,235,0.2);
    padding: 12px;
    border-radius: 16px;
}

.calculator-title h3 {
    font-size: 24px;
    margin: 0;
    color: white;
}

.savings-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 12px 24px;
    border-radius: 100px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 15px -3px rgba(16,185,129,0.2);
}

.calculator-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

/* Левая колонка - параметры */
.params-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.param-group {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 25px;
}

.param-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.param-label i {
    color: var(--primary);
    font-size: 18px;
}

/* Слайдер */
.param-slider {
    padding: 0 10px;
}

.modern-slider {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 15px;
}

.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37,99,235,0.3);
    border: 3px solid white;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.current-value {
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
}

/* Карточки дизайнеров */
.designer-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.designer-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.designer-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.05);
}

.designer-card.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
}

.designer-emoji {
    font-size: 32px;
    margin-bottom: 10px;
}

.designer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.designer-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.designer-price {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.designer-card.active .designer-name,
.designer-card.active .designer-price {
    color: white;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.service-info i {
    color: var(--primary);
    font-size: 18px;
}

.service-info span {
    font-weight: 600;
}

.service-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Современный переключатель */
.modern-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.modern-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 28px;
    transition: 0.3s;
}

.switch-track:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .switch-track {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

input:checked + .switch-track:before {
    transform: translateX(24px);
}

.service-price {
    font-weight: 700;
    color: white;
    background: rgba(37,99,235,0.3);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 14px;
}

/* Правая колонка - результат */
.result-column {
    position: relative;
}

.result-card-modern {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 32px;
    padding: 35px;
    color: white;
    position: sticky;
    top: 100px;
    box-shadow: 0 25px 40px -15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.result-header h4 {
    color: white;
    font-size: 22px;
    margin: 0;
}

.result-badge {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.cost-breakdown-modern {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-row.highlight {
    color: var(--primary-light);
    font-weight: 600;
}

.cost-row strong {
    color: white;
    font-size: 18px;
}

.savings-divider {
    text-align: center;
    margin: 20px 0;
    color: var(--primary);
    font-size: 20px;
}

.total-savings-modern {
    text-align: center;
    margin-bottom: 30px;
}

.savings-label {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    font-size: 14px;
}

.savings-amount-modern {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.efficiency-meter {
    margin-bottom: 30px;
}

.meter-label {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    font-size: 14px;
}

.meter-track {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    overflow: hidden;
}

.meter-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 100px;
    transition: width 0.3s ease;
}

.btn-action {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-decoration: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37,99,235,0.3);
}

.calc-note {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-align: center;
    margin: 0;
}

/* ===== Реальные результаты - НОВЫЙ ДИЗАЙН ===== */
.examples {
    background: var(--white);
    padding: 80px 0;
}

/* Фильтры */
.results-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37,99,235,0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: transparent;
}

/* Сетка результатов */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Карточка результата */
.result-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37,99,235,0.1);
    border-color: var(--primary);
}

.result-card-inner {
    display: flex;
    flex-direction: column;
}

/* Медиа часть */
.result-media {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.result-card:hover .result-media img {
    transform: scale(1.05);
}

.result-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.result-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px 12px 12px;
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover .result-overlay {
    opacity: 1;
}

.improvement-badge {
    flex: 1;
    text-align: center;
}

.improvement-value {
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.improvement-label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Информация о продавце */
.result-info {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.seller-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    flex-shrink: 0;
}

.seller-details {
    min-width: 0;
}

.seller-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-platform {
    font-size: 11px;
    color: var(--text-tertiary);
    display: block;
}

/* Статистика */
.result-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.stat-item {
    text-align: right;
}

.stat-change {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.positive::before {
    content: '↑';
    margin-right: 2px;
    font-size: 12px;
}

.stat-item .stat-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-details-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-details-btn:hover {
    background: var(--primary);
    color: white;
}

/* Кнопка "Показать еще" */
.results-more {
    text-align: center;
    margin: 40px 0;
}

.results-more .btn-outline {
    background: white;
    padding: 14px 32px;
}

.results-more .btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.results-more .btn-outline i {
    transition: transform 0.3s ease;
}

.results-more .btn-outline:hover i {
    transform: rotate(180deg);
}

/* ===== Мы адаптируемся под любой товар (категории слева) ===== */
.product-categories {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0;
}

.categories-showcase-modern {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-top: 50px;
    background: white;
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 30px 50px -20px rgba(0,0,0,0.2);
    border: 1px solid rgba(37,99,235,0.1);
}

/* Левая панель с категориями - КОМПАКТНЫЙ ДИЗАЙН */
.categories-panel-modern {
    background: #f8fafc;
    border-radius: 30px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.panel-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.categories-list-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 15px;
}

.category-item:hover {
    transform: translateX(3px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px -8px rgba(37,99,235,0.2);
}

.category-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: white;
    font-weight: 500;
}

.category-item i {
    width: 24px;
    font-size: 18px;
    color: var(--primary);
    text-align: center;
}

.category-item.active i {
    color: white;
}

.category-name {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.panel-footer {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
    margin-top: 8px;
}

/* Правая панель с сравнением - ОБНОВЛЕННЫЙ ДИЗАЙН */
.comparison-panel-modern {
    background: #f8fafc;
    border-radius: 30px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0;
}

.comparison-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    position: relative;
    flex: 1;
    text-align: center;
}

.comparison-label:first-child::after {
    content: '→';
    position: absolute;
    right: -15px;
    color: var(--primary);
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.comparison-images {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 30px;
    background: #e2e8f0;
    border: none;
    overflow: hidden;
}

.image-card {
    flex: 1;
    position: relative;
    min-width: 0;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
}

.image-wrapper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 0;
    border: none;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-radius: 100px;
}

.image-badge.accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Лоадер генерации */
.generation-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.generation-loader.active {
    display: flex;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-content span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.comparison-controls {
    text-align: center;
    margin-top: 20px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* ===== Отзывы (masonry) ===== */
.reviews {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.reviews-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.masonry-item {
    grid-column: span 1;
}

.masonry-item.large {
    grid-row: span 2;
}

.masonry-item.wide {
    grid-column: span 2;
}

.review-card-modern {
    background: white;
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.review-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(37,99,235,0.2);
}

.review-card-modern.accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.review-card-modern.accent .review-position,
.review-card-modern.accent .review-body p {
    color: rgba(255,255,255,0.9);
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.review-info h4 {
    margin-bottom: 4px;
    font-size: 18px;
}

.review-position {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.review-stats {
    display: flex;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.review-stats span:first-child {
    color: var(--success);
}

.review-body p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== FAQ ===== */
.faq-market {
    background: var(--white);
    padding: 80px 0;
}

.faq-grid-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px; /* Немного уменьшил для лучшей читаемости, можете оставить 1000px */
    margin: 40px auto 0;
}

.faq-item-modern {
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.faq-item-modern:hover {
    box-shadow: 0 15px 25px -10px rgba(37,99,235,0.15);
    border-color: var(--primary);
}

.faq-question {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    padding-right: 20px;
}

.faq-question i {
    color: var(--primary);
    font-size: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item-modern.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.faq-item-modern.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 25px;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* ===== CTA Modern ===== */
.cta-market-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-market-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content-modern {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-title-modern {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-subtitle-modern {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.cta-feature-item {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.cta-feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.cta-feature-item i {
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-feature-item span {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.cta-actions .btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.cta-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.cta-trust {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0.7;
}

.cta-trust img {
    height: 25px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ===== Адаптивность ===== */
@media (max-width: 1200px) {
    .market-hero-title {
        font-size: 42px;
    }

    .process-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .market-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .market-hero-buttons {
        justify-content: center;
    }

    .market-hero-logos {
        justify-content: center;
    }

    .calculator-body {
        grid-template-columns: 1fr;
    }

    .categories-showcase-modern {
        grid-template-columns: 1fr;
    }

    .comparison-header {
        margin-bottom: 15px;
    }

    .comparison-label:first-child::after {
        display: none;
    }

    .image-wrapper img {
        height: 300px;
    }

    .reviews-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid-modern {
        grid-template-columns: 1fr;
    }

    .cta-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .market-hero-title {
        font-size: 32px;
    }

    .market-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .market-hero-buttons .btn {
        width: 100%;
    }

    .process-showcase {
        grid-template-columns: 1fr;
    }

    .audience-grid-modern {
        grid-template-columns: 1fr;
    }

    .designer-cards {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .comparison-images {
        flex-direction: column;
    }

    .image-wrapper img {
        height: 250px;
    }

    .reviews-masonry {
        grid-template-columns: 1fr;
    }

    .masonry-item.wide {
        grid-column: span 1;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .results-filters {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .result-info {
        padding: 12px;
    }
}

/* Стили для плейсхолдера в блоке генерации */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 2;
}

.image-placeholder .placeholder-content {
    text-align: center;
    color: #6b7280;
}

.image-placeholder .placeholder-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #2563eb;
    opacity: 0.5;
}

.image-placeholder .placeholder-content span {
    display: block;
    font-size: 16px;
    font-weight: 500;
}

/* Скрываем изображение по умолчанию */
.image-card.after .image-wrapper img {
    display: none;
}

/* Показываем изображение когда оно сгенерировано */
.image-card.after .image-wrapper img[src] {
    display: block;
}

/* Обновляем стили для бейджа */
.image-card.after .image-badge.accent {
    display: none;
}

/* Показываем бейдж когда есть изображение */
.image-card.after.has-image .image-badge.accent {
    display: flex;
}