/* 🚀 PRICES PAGE CSS - СТИЛИ СТРАНИЦЫ ЦЕН! */

.prices-section {
    padding: 80px 0;
    background: var(--white);
}

/* ===== PRICES LAYOUT ===== */
.prices-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 40px;
    align-items: start;
}

.prices-content {
    min-height: 500px;
}

.price-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
    padding: 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: static;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Sticky behavior removed - menu is now static */

/* ===== VERTICAL PRICE TABS ===== */
.price-tabs-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
    padding: 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.price-tab-btn {
    padding: 12px 24px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* ===== VERTICAL TAB BUTTONS ===== */
.price-tabs-vertical .price-tab-btn {
    padding: 16px 20px;
    text-align: left;
    width: 100%;
    font-size: 14px;
    border-radius: 8px;
}

.price-tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.price-tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

#priceTablesContainer {
    max-width: 1200px;
    margin: 0 auto;
}

.price-table {
    display: none;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.price-table.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.price-table h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 8px 12px;
    margin: 0;
    font-size: calc(var(--text-2xl) * 1.3);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.table-container {
    overflow-x: auto;
    background: var(--white);
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
    min-width: 600px;
}

.prices-table thead {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.prices-table th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--gray-900);
    border-bottom: 2px solid var(--primary-color);
    font-size: var(--text-base);
}

.prices-table td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
    transition: background-color 0.2s ease;
}

.prices-table tbody tr:hover {
    background: var(--gray-50);
}

.prices-table tbody tr:hover td {
    background: var(--gray-50);
}

.prices-table th:nth-child(1),
.prices-table td:nth-child(1) {
    width: 80px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 6px 8px;
}

.prices-table th:nth-child(2),
.prices-table td:nth-child(2) {
    width: auto;
    padding-right: 12px;
}

.prices-table th:nth-child(3),
.prices-table td:nth-child(3) {
    width: 120px;
    text-align: right;
    font-weight: 700;
    color: var(--primary-color);
    font-size: var(--text-base);
    padding: 6px 8px;
}

.price-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: var(--text-base);
}

.price-value.free {
    color: var(--green-600);
}

.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--accent-color));
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    text-align: center;
    color: var(--white);
}

.contact-content h2 {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-content p {
    font-size: var(--text-xl);
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    padding: 16px 32px;
    font-size: var(--text-lg);
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.contact-buttons .btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.contact-buttons .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.contact-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.price-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.price-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .prices-section {
        padding: 60px 0;
    }
    
    .prices-layout {
        grid-template-columns: 1fr 180px;
        gap: 30px;
    }
    
    .price-tabs {
        margin-bottom: 40px;
    }
    
    .contact-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .prices-section {
        padding: 40px 0;
    }
    
    .prices-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .price-tabs-vertical {
        position: static;
        max-height: none;
        order: -1;
    }
    
    .price-tabs {
        gap: 8px;
        margin-bottom: 30px;
        padding: 15px 10px;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .price-tab-btn {
        padding: 10px 16px;
        font-size: var(--text-sm);
    }
    
    .price-table h3 {
        padding: 6px 10px;
        font-size: calc(var(--text-xl) * 1.3);
    }
    
    .prices-table {
        font-size: var(--text-sm);
        min-width: 500px;
    }
    
    .prices-table th,
    .prices-table td {
        padding: 4px 6px;
    }
    
    .prices-table th:nth-child(1),
    .prices-table td:nth-child(1) {
        width: 60px;
        padding: 4px 4px;
    }
    
    .prices-table th:nth-child(3),
    .prices-table td:nth-child(3) {
        width: 100px;
        padding: 4px 4px;
    }
    
    .contact-content h2 {
        font-size: var(--text-3xl);
    }
    
    .contact-content p {
        font-size: var(--text-lg);
        margin-bottom: 30px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .price-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .price-tab-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .prices-table {
        min-width: 400px;
    }
    
    .prices-table th,
    .prices-table td {
        padding: 3px 4px;
        font-size: var(--text-xs);
    }
    
    .contact-content h2 {
        font-size: var(--text-2xl);
    }
    
    .contact-content p {
        font-size: var(--text-base);
    }
}

.price-tab-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.prices-table tbody tr:focus-within {
    background: var(--primary-50);
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

@media print {
    .price-tabs {
        display: none;
    }
    
    .price-table {
        display: block;
        box-shadow: none;
        border: 1px solid var(--gray-300);
        margin-bottom: 20px;
    }
    
    .price-table h3 {
        background: var(--gray-100);
        color: var(--gray-900);
        padding: 4px 8px;
        font-size: calc(var(--text-lg) * 1.3);
    }
    
    .prices-table {
        font-size: 12px;
    }
    
    .contact-section {
        display: none;
    }
}
