/* Стилове за страницата Техническа поддръжка - Минималистичен луксозен дизайн */

/* Hero секция */
.technical-hero {
    position: relative;
    height: 55vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.technical-hero .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.3)
    );
    z-index: 1;
}

.technical-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.technical-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.technical-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Пакети секция */
.packages-section {
    padding: 60px 0 100px;
    background: #fafafa;
}

.packages-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 1rem;
    margin-top: 4rem;
    letter-spacing: 1px;
}

/* Toggle Switch за цени */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.pricing-toggle-label {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.pricing-toggle-label.active {
    color: #1a1a1a;
    font-weight: 500;
}

.pricing-toggle-label.active::after {
    content: '';
    position: absolute;
    bottom: -0.4rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
    transform: scaleX(1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Еднократно (ляво) - чертичката се появява от дясно към ляво */
#one-time-label.active::after {
    transform-origin: right;
}

#one-time-label:not(.active)::after {
    transform-origin: right;
}

/* Месечно (дясно) - чертичката се появява от ляво към дясно */
#monthly-label.active::after {
    transform-origin: left;
}

#monthly-label:not(.active)::after {
    transform-origin: left;
}

.pricing-toggle-label:not(.active)::after {
    content: '';
    position: absolute;
    bottom: -0.4rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-toggle.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.pricing-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-toggle.active .pricing-toggle-slider {
    transform: translateX(28px);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Карта за пакет */
.package-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease;
    position: relative;
    overflow: visible;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 700px;
    animation: fadeInUp 0.6s ease-out;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: -1;
}

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

.package-card:hover {
    transform: translateY(-5px);
    border-color: #e0e0e0;
}

.package-card:hover::before {
    opacity: 1;
}

.package-header {
    text-align: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.package-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #065f46, #047857, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-card:hover .package-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #047857, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-header h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.package-subtitle {
    font-size: 0.85rem;
    color: #999;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ценообразуване */
.package-pricing {
    margin-bottom: 2.5rem;
    margin-top: 0;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Максимален брой посещения */
.max-visits-info {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
}

.max-visits-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.max-visits-info strong {
    color: #1a1a1a;
    font-weight: 600;
}

.pricing-option {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: transparent;
    border-radius: 0;
    margin: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    pointer-events: none;
}

.pricing-option.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.pricing-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 200;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -2px;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0;
    white-space: nowrap;
    flex-wrap: nowrap;
}

/* Намаляване на размера за диапазони (когато има "от" и "до") */
.pricing-amount.price-range {
    font-size: 2.6rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 0;
}

.currency-secondary {
    font-size: 1.2rem;
    font-weight: 300;
    color: #999;
    margin-left: 0.5rem;
    letter-spacing: 0;
}

.pricing-amount .currency-secondary {
    font-size: 1rem;
}

.price-cell .currency-secondary {
    font-size: 0.9rem;
    margin-left: 0.3rem;
}

.discount-badge {
    display: inline-block;
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding: 0.35rem 0.9rem;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Спестявания */
.package-savings {
    text-align: center;
    padding: 1.25rem;
    background: #fff9e6;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #ffe69c;
}

.package-savings p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #856404;
    font-weight: 400;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 0.5rem;
}

.savings-text {
    font-weight: 500;
    font-size: 1rem;
}

.savings-percent {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Характеристики */
.package-features {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.features-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.package-features h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.device-count-label {
    text-align: right;
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 120px;
    text-align: right;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid #f5f5f5;
    gap: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li.hidden-item {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.features-list li.show-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.features-list li i {
    color: #28a745;
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.features-list li span:first-of-type {
    flex: 1;
    color: #333;
    line-height: 1.6;
    font-size: 0.9rem;
    font-weight: 400;
}

.device-count {
    background: transparent;
    color: #666;
    padding: 0.25rem 0;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 40px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.15rem;
}

.device-count:empty {
    display: none;
}

/* Виж още бутон */
.view-more-btn {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.view-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

.view-more-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

/* Бутон за пакет */
.package-btn {
    display: block;
    width: 100%;
    padding: 1.125rem 2rem;
    background: #1a1a1a;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.package-btn:hover {
    background: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Таблица с цени */
.pricing-table-wrapper {
    margin-top: 4rem;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    min-width: 600px;
}

.pricing-table thead {
    background: linear-gradient(135deg, #1f2937, #374151, #4b5563);
    color: white;
}

.pricing-table th {
    padding: 1.25rem 1.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
}

.pricing-table th:first-child {
    text-align: left;
    border-top-left-radius: 12px;
}

.pricing-table th:last-child {
    text-align: center;
}

.pricing-table th:last-child {
    border-top-right-radius: 12px;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

.pricing-table tbody tr:hover {
    background: #fafafa;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table td {
    padding: 1.25rem 1.5rem;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.pricing-table td:first-child {
    font-weight: 400;
    color: #1a1a1a;
}

.pricing-table td:last-child {
    text-align: center;
}

.price-cell {
    font-weight: 500;
    color: #007bff;
    font-size: 1.1rem;
    text-align: center;
}

.price-cell .currency {
    font-size: 0.9rem;
    margin-left: 0.2rem;
}

.price-note {
    display: block;
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
    margin-top: 0.3rem;
    font-style: italic;
}

/* Responsive дизайн */
@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .package-card {
        min-height: 650px;
    }
}

@media (max-width: 768px) {
    .technical-hero {
        height: 45vh;
        min-height: 350px;
    }

    .technical-hero h1 {
        font-size: 2.5rem;
    }

    .technical-hero p {
        font-size: 1.1rem;
    }

    .packages-section,
    .pricing-table-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .package-card {
        padding: 2rem;
        min-height: auto;
    }

    .package-header h3 {
        font-size: 1.35rem;
    }

    .pricing-amount {
        font-size: 2.8rem;
    }
    
    .pricing-amount.price-range {
        font-size: 2.4rem;
    }
    
    .currency {
        font-size: 1.4rem;
    }

    .pricing-toggle-wrapper {
        margin: 2rem 0 3rem;
    }

    .pricing-table-wrapper {
        border-radius: 8px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .features-list li {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .features-list li i {
        margin-top: 0.2rem;
        flex-shrink: 0;
    }
    
    .features-list li span {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .technical-hero h1 {
        font-size: 1.75rem;
    }

    .technical-hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .package-card {
        padding: 1.5rem;
    }

    .package-pricing {
        min-height: 110px;
    }

    .pricing-option {
        padding: 1.5rem 1rem;
    }

    .pricing-amount {
        font-size: 2.4rem;
    }
    
    .pricing-amount.price-range {
        font-size: 2rem;
    }
    
    .currency {
        font-size: 1.3rem;
    }
    
    .pricing-label {
        font-size: 0.7rem;
        margin-bottom: 0.875rem;
    }

    .features-list li {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .features-list li i {
        margin-top: 0.2rem;
        flex-shrink: 0;
    }
    
    .features-list li span {
        flex: 1;
    }

    .device-count {
        align-self: flex-start;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.875rem;
        font-size: 0.85rem;
    }
}
