/* PRICE SECTION STYLES - Энергия Города */
.price-eg {
    background-color: var(--eg-white);
    padding: 100px 0;
}

.price-eg__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.price-eg__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--eg-blue);
    text-align: center;
    margin-bottom: 15px;
}

.price-eg__subtitle {
    font-size: 1.2rem;
    color: var(--eg-text);
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Price Table Styles */
.price-table-eg {
    background: var(--eg-white);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--eg-gray-dark);
}

.price-table-eg__header {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(100px, 0.8fr);
    gap: 0;
    background: linear-gradient(135deg, var(--eg-blue) 0%, var(--eg-blue-dark) 100%);
}

.price-table-eg__row {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(100px, 0.8fr);
    gap: 0;
    border-bottom: 1px solid var(--eg-gray-dark);
    transition: background-color 0.2s ease;
    position: relative;
}

.price-table-eg__row:hover {
    background-color: var(--eg-gray);
}

.price-table-eg__row--expanded {
    background-color: var(--eg-gray) !important;
}

.price-table-eg__cell {
    padding: 20px 15px; /* Увеличил padding */
    display: flex;
    align-items: center;
    min-height: 70px;
    word-break: break-word;
    border-right: 1px solid var(--eg-gray-dark);
}

.price-table-eg__cell:last-child {
    border-right: none;
}

/* Специальные стили для ячейки с кнопкой характеристик */
.price-table-eg__cell:nth-child(5) {
    grid-column: 1 / -1; /* Растягиваем на всю ширину */
    border-top: 1px solid var(--eg-gray-dark);
    border-right: none;
    justify-content: flex-end;
    padding: 15px 30px;
    background-color: var(--eg-gray-light);
}

.price-table-eg__header .price-table-eg__cell {
    padding: 20px 15px;
    text-align: center;
    font-weight: 700;
    color: var(--eg-white);
    border-right: 1px solid rgba(255,255,255,0.2);
    justify-content: center;
    font-size: 1rem;
}

.price-table-eg__header .price-table-eg__cell:last-child {
    border-right: none;
}

/* Скрываем заголовок для пятой колонки в десктопной версии */
.price-table-eg__header .price-table-eg__cell:nth-child(5) {
    display: none;
}

.price-table-eg__product-name {
    font-weight: 600;
    color: var(--eg-blue);
    line-height: 1.3;
    font-size: 1.1rem; /* Увеличил с 1rem */
}

.price-table-eg__standard {
    color: var(--eg-text);
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    font-weight: 500;
}

.price-table-eg__temp {
    font-size: 0.95rem; /* Увеличил с 0.9rem */
    font-weight: 500; /* Добавил font-weight */
    color: var(--eg-text); /* Изменил с orange на text */
    text-align: center;
    width: 100%;
}

.price-table-eg__price {
    font-size: 1.3rem; /* Увеличил с 1.1rem */
    font-weight: 800;
    color: var(--eg-orange);
    text-align: center;
    width: 100%;
}

/* Кнопки характеристик */
.price-table-eg__specs-btn {
    background: var(--eg-orange);
    color: var(--eg-white);
    border: none;
    padding: 12px 20px; /* Увеличил padding */
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem; /* Увеличил с 0.95rem */
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 200px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    outline: none !important;
    border: 2px solid transparent !important;
}

.price-table-eg__specs-btn:hover {
    background: var(--eg-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.price-table-eg__specs-btn:focus {
    border-color: var(--eg-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1) !important;
}

.price-table-eg__specs-btn i {
    font-size: 0.9rem; /* Увеличил с 0.8rem */
    transition: transform 0.3s ease;
}

.price-table-eg__specs-btn.expanded i {
    transform: rotate(180deg);
}

/* Выпадающий блок характеристик */
.price-table-eg__specs-dropdown {
    grid-column: 1 / -1;
    background: var(--eg-white);
    border-top: 1px solid var(--eg-gray-dark);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.price-table-eg__specs-dropdown.expanded {
    padding: 30px;
    max-height: 1000px;
    opacity: 1;
}

.specs-content-eg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.specs-category-eg {
    background: var(--eg-gray);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--eg-orange);
}

.specs-category-eg h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--eg-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-category-eg h4 i {
    color: var(--eg-orange);
}

.specs-category-eg ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-category-eg li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    color: var(--eg-text);
    font-size: 0.95rem;
}

.specs-category-eg li:before {
    content: "•";
    color: var(--eg-orange);
    position: absolute;
    left: 8px;
    font-weight: bold;
    font-size: 1.2rem;
}

.price-eg__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.price-eg__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px; /* Изменил с 16px на 15px */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 240px;
    min-height: 60px;
    font-family: 'Montserrat', sans-serif;
}

.price-eg__button:first-child {
    background: var(--eg-orange);
    color: var(--eg-white);
}

.price-eg__button:first-child:hover {
    background: var(--eg-orange-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}

.price-eg__button--phone {
    background: var(--eg-blue);
    color: var(--eg-white);
}

.price-eg__button--phone:hover {
    background: var(--eg-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

.price-eg__button i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Анимация для выпадающего блока */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-table-eg__specs-dropdown.expanded {
    animation: slideDown 0.4s ease-out;
}

/* Скрытые блоки характеристик */
.hidden-specs {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    visibility: hidden;
}

/* Улучшенная мобильная версия */
@media (max-width: 968px) {
    .price-eg {
        padding: 80px 0;
    }
    
    .price-eg__title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .price-eg__subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .price-table-eg {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        border: none;
    }
    
    .price-table-eg__header {
        display: none;
    }
    
    .price-table-eg__row {
        display: block !important;
        grid-template-columns: 1fr !important;
        padding: 0;
        margin-bottom: 25px;
        border-bottom: none;
        background: var(--eg-white);
        border-radius: 12px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        border: 1px solid var(--eg-gray-dark);
    }
    
    .price-table-eg__cell {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid var(--eg-gray-dark);
        border-right: none;
        min-height: auto;
        flex-wrap: wrap;
        gap: 10px;
        background: var(--eg-white) !important;
    }
    
    .price-table-eg__cell:last-child {
        border-bottom: none;
    }
    
    .price-table-eg__cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--eg-blue);
        min-width: 120px;
        margin-right: 10px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    
    .price-table-eg__cell[data-label=""]::before {
        content: none;
    }
    
    .price-table-eg__cell[data-label=""] {
        background: var(--eg-white) !important;
        color: var(--eg-blue) !important;
        font-weight: 700;
        font-size: 1.1rem;
        justify-content: flex-start;
        text-align: left;
        padding: 20px;
        border-bottom: 2px solid var(--eg-blue);
    }
    
    /* В мобильной версии кнопка характеристик выглядит как обычно */
    .price-table-eg__cell:nth-child(5) {
        grid-column: initial;
        border-top: none;
        justify-content: space-between;
        background-color: var(--eg-white) !important;
        padding: 16px 20px;
    }
    
    .price-table-eg__cell:nth-child(5)::before {
        content: attr(data-label);
    }
    
    .price-table-eg__product-name {
        color: var(--eg-blue);
        font-size: 1.05rem;
        margin: 0;
        text-align: left;
        flex: 1;
        font-weight: 700;
    }
    
    .price-table-eg__standard,
    .price-table-eg__temp,
    .price-table-eg__price {
        text-align: right;
        width: auto;
        flex: none;
        font-size: 0.95rem;
    }
    
    .price-table-eg__specs-btn {
        min-width: 100%;
        width: 100%;
        margin-top: 10px;
        order: 1;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .price-eg__actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .price-eg__button {
        width: 100%;
        max-width: 300px;
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .price-table-eg__specs-dropdown.expanded {
        padding: 20px;
    }
    
    .specs-content-eg {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .specs-category-eg {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .price-eg {
        padding: 60px 0;
    }
    
    .price-eg__title {
        font-size: 1.7rem;
        padding: 0 10px;
    }
    
    .price-eg__subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .price-table-eg__cell {
        flex-direction: row;
        align-items: center;
        padding: 18px 15px;
        gap: 8px;
    }
    
    .price-table-eg__cell::before {
        min-width: 100px;
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .price-table-eg__cell[data-label=""] {
        padding: 22px 15px;
        font-size: 1rem;
        background: var(--eg-white) !important;
        color: var(--eg-blue) !important;
    }
    
    .price-table-eg__product-name {
        font-size: 1rem;
        text-align: left;
        color: var(--eg-blue);
    }
    
    .price-table-eg__standard,
    .price-table-eg__temp,
    .price-table-eg__price {
        text-align: right;
        font-size: 0.9rem;
    }
    
    .price-table-eg__specs-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
        margin-top: 8px;
    }
    
    .price-eg__actions {
        gap: 12px;
    }
    
    .price-eg__button {
        min-width: auto;
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .specs-category-eg {
        padding: 15px;
    }
    
    .specs-category-eg h4 {
        font-size: 1rem;
    }
    
    .specs-category-eg li {
        font-size: 0.9rem;
    }
}

/* Адаптивность для средних экранов */
@media (max-width: 1077px) and (min-width: 769px) {
    .price-table-eg__header {
       grid-template-columns: minmax(180px, 2fr) minmax(100px, 1fr) minmax(120px, 1.2fr) minmax(80px, 0.8fr);
    }
    
    .price-table-eg__row {
        grid-template-columns: minmax(180px, 2fr) minmax(100px, 1fr) minmax(120px, 1.2fr) minmax(80px, 0.8fr);
    }
    
    .price-table-eg__cell {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
    
    .price-table-eg__product-name {
        font-size: 0.9rem;
    }
    
    .price-table-eg__specs-btn {
        min-width: 180px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .price-eg__title {
        font-size: 1.5rem;
    }
    
    .price-table-eg__cell {
        padding: 15px 12px;
    }
    
    .price-table-eg__cell::before {
        min-width: 90px;
        font-size: 0.85rem;
    }
    
    .price-table-eg__product-name {
        font-size: 0.95rem;
    }
    
    .price-eg__button {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .price-table-eg__cell[data-label=""] {
        padding: 20px 15px;
    }
}