/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    min-height: 100vh;
    line-height: 1.6;
}

/* Контейнер */
.container {
    max-width: 1200px; /* Уменьшено с 1400px */
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
    min-height: 100vh;
}

/* Основной контент */
.main-content {
    flex: 1;
    max-width: 1100px; /* Ограничиваем ширину основного блока */
}

/* Боковая панель */
.sidebar-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 1000;
}

/* Заголовок */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.logo {
    max-height: 60px;
    width: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Секции */
.section {
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    font-size: 2.5rem;
    color: #00d4ff;
}

.section-description {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
    text-align: center;
}

/* Сетки */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.avd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.aros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.installation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Карточки постов */
.post-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.post-card.selected {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.post-number {
    font-size: 3rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 10px;
}

.post-label {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.post-payback {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.post-income {
    font-size: 0.9rem;
    color: #00ff88;
    font-weight: 600;
}

/* Карточки пакетов */
.package-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.package-card.selected {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

.package-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 10px;
}

.package-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #00d4ff;
}

.package-price {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #00ff88;
}

.package-features {
    list-style: none;
    text-align: left;
}

.package-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    opacity: 0.9;
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

.recommended-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #00ff88;
    color: #1e3c72;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Карточки АВД */
.avd-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.avd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.avd-card.selected {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.avd-card.recommended {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.avd-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #00d4ff;
}

.avd-price {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #00ff88;
}

.avd-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* Функции пульта */
.function-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.function-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.function-card.active {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
}

.function-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.function-content {
    flex: 1;
}

.function-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #00d4ff;
}

.function-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.function-price {
    font-size: 1rem;
    font-weight: 600;
    color: #00ff88;
}

.function-price.free {
    color: #00ff88;
}

/* Переключатели */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: #00d4ff;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

/* Опциональные карточки */
.option-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.option-card.selected {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.option-card.included {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #00d4ff;
}

.option-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #00d4ff;
}

.option-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.4;
}

.option-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ff88;
}

.option-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.option-status.included {
    background: #00ff88;
    color: #1e3c72;
}

.option-status.recommended {
    background: #00ff88;
    color: #1e3c72;
}

/* Боковая панель */
.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #00d4ff;
    text-align: center;
}

.config-list {
    margin-bottom: 25px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.config-item:last-child {
    border-bottom: none;
}

.config-name {
    flex: 1;
    opacity: 0.9;
}

.config-calculation {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 10px;
}

.config-price {
    font-weight: 600;
    color: #00ff88;
    margin-left: 10px;
}

.total-section {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

.total-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.total-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    color: #1e3c72;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* Шкала успешности */
.success-scale {
    margin: 20px 0;
    text-align: center;
}

.success-scale h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0.9;
}

.scale-bar {
    height: 8px;
    background: linear-gradient(to right, #ff4757, #ffa502, #2ed573);
    border-radius: 4px;
    position: relative;
    margin-bottom: 10px;
}

.scale-indicator {
    position: absolute;
    top: -5px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    border: 3px solid #00d4ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Аналитика */
.analytics-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.chart-container {
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Скрытые элементы */
.hidden {
    display: none !important;
}

/* Медиа-запросы для адаптивности */

/* Большие экраны (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .functions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Средние экраны (1024px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1100px;
    }
    
    .sidebar-fixed {
        width: 320px;
    }
    
    .main-content {
        max-width: 750px;
    }
}

/* Планшеты (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        flex-direction: column;
        max-width: 100%;
        padding: 15px;
    }
    
    .main-content {
        max-width: 100%;
    }
    
    .sidebar-fixed {
        position: static;
        width: 100%;
        margin-top: 30px;
        max-height: none;
    }
    
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .functions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .avd-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .installation-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* Мобильные устройства (480px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 10px;
        gap: 20px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .functions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .horizontal-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .aros-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title i {
        font-size: 2rem;
    }
    
    .post-number {
        font-size: 2.5rem;
    }
    
    .package-title {
        font-size: 1.5rem;
    }
    
    .package-image {
        width: 100px;
        height: 100px;
    }
    
    .function-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .function-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .sidebar-fixed {
        padding: 20px;
        border-radius: 15px;
    }
    
    .total-amount {
        font-size: 1.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Очень маленькие экраны (до 479px) */
@media (max-width: 479px) {
    .container {
        padding: 5px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .post-card,
    .package-card,
    .option-card {
        padding: 15px;
    }
    
    .package-image {
        width: 80px;
        height: 80px;
    }
    
    .sidebar-fixed {
        padding: 15px;
    }
    
    .metric-card {
        padding: 15px;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 767px) and (orientation: landscape) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .functions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Высокие экраны */
@media (min-height: 900px) {
    .sidebar-fixed {
        max-height: calc(100vh - 60px);
    }
}

/* Принтеры */
@media print {
    .sidebar-fixed {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        background: white !important;
        color: black !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        flex-direction: column;
    }
}



/* Мобильные устройства - фиксированная панель снизу */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .main-content {
        max-width: 100%;
        margin-bottom: 80px; /* Место для фиксированной панели */
    }
    
    .sidebar-fixed {
      position: sticky;
        bottom: 0px !important;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        overflow: hidden;
        max-height: 80px;
        padding: 15px 15px;
        background: rgba(30, 41, 59, 0.98);
        backdrop-filter: blur(10px);
        border-top: 2px solid #00d4ff;
        border-radius: 0;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3)
    }
    
    .sidebar-title {
        display: none;
    }
    
    .config-list {
        display: none;
    }
    
    .success-scale {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }
    
    .success-scale h4 {
        display: none;
    }
    
    .scale-bar {
        flex: 1;
        height: 6px;
        margin: 0;
    }
    
    .scale-labels {
        display: none;
    }
    
    .total-section {
        display: flex;
        align-items: center;
        gap: 15px;
        margin: 0;
padding: 0px;
        margin-bottom: 10px!important;
    }
    
    .total-label {
        font-size: 0.9rem;
        margin: 0;
    }
    
    .total-amount {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .action-buttons {
        display: flex;
        gap: 8px;
        margin: 0;
    }
    
    .action-buttons .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Упрощенный заголовок на мобильных */
    .header {
        margin-bottom: 15px;
    }
    
    .header > div {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        display: none;
    }
    
    .logo {
        max-height: 40px;
    }
    
    .header h1 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}


/* Кнопка звонка */
.call-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.call-button:hover {
    background: linear-gradient(135deg, #0099cc, #007aa3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    color: white;
    text-decoration: none;
}

.call-button i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .call-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}


/* Дополнительное оборудование */
.equipment-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

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

.equipment-card {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.equipment-card:hover {
    border-color: #00d4ff;
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

.equipment-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.equipment-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.equipment-content {
    flex: 1;
}

.equipment-name {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.equipment-description {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.equipment-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #10b981;
}

.equipment-checkbox {
    position: relative;
}

.equipment-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.equipment-checkbox label {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #64748b;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.equipment-checkbox input[type="checkbox"]:checked + label {
    background: #10b981;
    border-color: #10b981;
}

.equipment-checkbox input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .equipment-card {
        padding: 15px;
        gap: 12px;
    }
    
    .equipment-icon {
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    .equipment-name {
        font-size: 0.9rem;
    }
    
    .equipment-description {
        font-size: 0.8rem;
    }
    
    .equipment-price {
        font-size: 1rem;
    }
}

/* Стили для детальной спецификации */
.specification-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.specification-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.specification-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
}

.specification-table th {
    background: #667eea;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.specification-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.specification-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.spec-item {
    width: 40%;
    min-width: 200px;
}

.spec-unit-price {
    width: 15%;
    text-align: right;
}

.spec-quantity {
    width: 10%;
    text-align: center;
}

.spec-calculation {
    width: 20%;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.spec-total {
    width: 15%;
    text-align: right;
    font-weight: 600;
}

.spec-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.spec-empty-message {
    padding: 30px !important;
}

.spec-total-row {
    background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
}

.spec-total-row td {
    border-bottom: none;
    padding: 15px 12px;
    font-size: 16px;
}

.spec-total-label {
    text-align: right;
}

.spec-total-amount {
    color: #fff;
    font-size: 18px;
}

/* Кнопки действий */
.specification-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.spec-action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.spec-action-btn i {
    font-size: 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .specification-table th,
    .specification-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .spec-calculation {
        font-size: 10px;
    }
    
    .specification-actions {
        flex-direction: column;
    }
    
    .spec-action-btn {
        width: 100%;
        justify-content: center;
    }
}




/* Стили для редактируемых ячеек */
.editable-price,
.editable-quantity {
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.editable-price:hover,
.editable-quantity:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.editing {
    background-color: rgba(0, 212, 255, 0.2) !important;
}

.price-input,
.quantity-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #00d4ff;
    border-radius: 4px;
    padding: 4px 8px;
    color: #333;
    font-size: 14px;
    text-align: right;
}

.quantity-input {
    text-align: center;
}

.modified {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-left: 3px solid #ffc107;
}

.modified::after {
    content: " ✏️";
    font-size: 12px;
}

/* Кнопка сброса изменений */
.reset-changes-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.reset-changes-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}
