/* pricing.css */
/* Шрифты уже подключены в index.php - Montserrat для текста и Unbounded для заголовков */

/* Секция цен */
.pricing-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 152, 70, 0.15) 0%, transparent 50%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #009846);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
}

/* Калькулятор */
.calculator-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    padding: 60px 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 80px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 152, 70, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.calculator-container.animated {
    opacity: 1;
    transform: translateY(0);
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: #ffffff;
    text-align: center;
    position: relative;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
}

.calculator-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #009846, #007c3a);
    border-radius: 2px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-bottom: 50px;
}

.calculator-field {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calculator-field::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 152, 70, 0.1), transparent);
    transition: left 0.6s ease;
}

.calculator-field:hover::before {
    left: 100%;
}

.calculator-field:hover {
    border-color: rgba(0, 152, 70, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 152, 70, 0.1);
}

.calculator-field.full-width {
    grid-column: 1 / -1;
    background: rgba(0, 152, 70, 0.05);
    border-color: rgba(0, 152, 70, 0.2);
}

.field-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
}

.label-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.01em;
}

.label-subtext {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 4px;
    font-weight: 500;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.label-price {
    font-size: 1rem;
    color: #009846;
    font-weight: 700;
    background: rgba(0, 152, 70, 0.1);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 152, 70, 0.3);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.field-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.quantity-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #009846;
    background: rgba(0, 152, 70, 0.1);
    color: #009846;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quantity-btn:hover {
    background: #009846;
    color: #ffffff;
    transform: scale(1.05);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.quantity-btn:disabled:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    transform: none;
}

.quantity-display-container {
    position: relative;
    width: 100px;
}

.quantity-display {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: text;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quantity-display:focus {
    outline: none;
    border-color: #009846;
    background: rgba(0, 152, 70, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 152, 70, 0.2);
    transform: scale(1.02);
}

.quantity-display:not(:focus) {
    cursor: default;
}

.quantity-display.invalid {
    border-color: #E31E24;
    background: rgba(227, 30, 36, 0.05);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.2);
}

.quantity-hidden {
    display: none;
}

.quantity-display::-webkit-outer-spin-button,
.quantity-display::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-display[type=number] {
    -moz-appearance: textfield;
}

.field-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: #009846;
    text-align: right;
    background: rgba(0, 152, 70, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 152, 70, 0.2);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Периоды обслуживания */
.time-periods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.period-option {
    position: relative;
}

.period-option input[type="radio"] {
    display: none;
}

.period-label {
    display: block;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.period-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 152, 70, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.period-option input[type="radio"]:checked + .period-label {
    border-color: #009846;
    background: rgba(0, 152, 70, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 152, 70, 0.2);
}

.period-option input[type="radio"]:checked + .period-label::before {
    opacity: 1;
}

.period-time {
    display: block;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.period-price {
    display: block;
    font-size: 1rem;
    color: #009846;
    font-weight: 600;
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Итоговая стоимость */
.calculator-total {
    background: linear-gradient(135deg, rgba(0, 152, 70, 0.1), rgba(0, 152, 70, 0.05));
    border-radius: 25px;
    padding: 40px;
    border: 2px solid rgba(0, 152, 70, 0.3);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.calculator-total::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}

.total-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.total-category {
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

.category-header span:last-child {
    color: #009846;
    font-weight: 700;
}

.period-surcharge-line {
    margin-bottom: 15px;
    padding: 12px 0;
}

.period-surcharge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

.period-surcharge-header span:last-child {
    color: #009846;
    font-weight: 700;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.total-line.main-total {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 15px;
    padding-top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#final-total {
    font-size: 1.8rem;
    color: #009846;
    font-weight: 800;
    background: linear-gradient(135deg, #009846, #007c3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.minimum-notice {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    background: rgba(0, 152, 70, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 152, 70, 0.3);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.calculator-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cta-button.primary {
    background: linear-gradient(135deg, #009846, #007c3a);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 152, 70, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 152, 70, 0.4);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Аккордеон прайса - добавленные стили */
.pricing-accordion {
    margin-top: 80px;
}

.accordion-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: #ffffff;
    text-align: center;
    position: relative;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
}

.accordion-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #009846, #007c3a);
    border-radius: 2px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.accordion-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.accordion-item:nth-child(1) { transition-delay: 0.1s; }
.accordion-item:nth-child(2) { transition-delay: 0.2s; }
.accordion-item:nth-child(3) { transition-delay: 0.3s; }

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.01em;
}

.accordion-header i {
    color: #009846;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: #007c3a;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
}

/* Таблицы цен в аккордеоне */
.price-info {
    padding: 25px 35px;
    background: rgba(0, 152, 70, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-info p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.price-table {
    padding: 25px 35px;
}

.table-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px 120px;
    gap: 25px;
    padding: 18px 0;
    border-bottom: 2px solid #009846;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 152, 70, 0.1);
    margin: 0 -35px;
    padding-left: 35px;
    padding-right: 35px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.table-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 120px;
    gap: 25px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.table-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table-row:hover {
    background: rgba(0, 152, 70, 0.08);
    transform: translateX(5px);
}

/* Стили для PDF-уведомлений */
#pdf-notification,
#pdf-success {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    z-index: 10000;
}

#pdf-notification {
    background: #009846;
    color: white;
}

#pdf-success {
    background: #38a169;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .time-periods {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 40px 1fr 80px 80px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .calculator-container {
        padding: 40px 25px;
        border-radius: 20px;
        margin-bottom: 60px;
    }
    
    .calculator-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .calculator-field {
        padding: 25px 20px;
    }
    
    .field-controls {
        gap: 10px;
    }
    
    .quantity-btn {
        width: 45px;
        height: 45px;
    }
    
    .quantity-display-container {
        width: 80px;
    }
    
    .quantity-display {
        width: 100%;
        height: 45px;
    }
    
    .calculator-total {
        padding: 30px 25px;
    }
    
    .calculator-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .accordion-title {
        font-size: 2rem;
    }
    
    .accordion-item {
        margin-bottom: 20px;
    }
    
    .accordion-header {
        padding: 25px 20px;
    }
    
    .accordion-header h4 {
        font-size: 1.2rem;
    }
    
    .price-info,
    .price-table {
        padding: 20px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 30px 1fr 70px 70px;
        gap: 12px;
        font-size: 0.9rem;
        padding: 12px 0;
    }
    
    .label-text {
        font-size: 1.1rem;
    }
    
    .label-subtext {
        font-size: 0.8rem;
    }
    
    .total-title {
        font-size: 1.2rem;
    }
    
    .category-header,
    .period-surcharge-header {
        font-size: 0.9rem;
    }
    
    .minimum-notice {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .cta-button {
        padding: 16px 30px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    #pdf-notification,
    #pdf-success {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .calculator-container {
        padding: 30px 20px;
    }
    
    .calculator-title {
        font-size: 1.8rem;
    }
    
    .field-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .label-price {
        align-self: flex-start;
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    
    .label-text {
        font-size: 1rem;
    }
    
    .label-subtext {
        font-size: 0.75rem;
    }
    
    .calculator-field {
        padding: 20px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 25px 1fr 60px 60px;
        gap: 8px;
        font-size: 0.8rem;
        padding: 10px 0;
    }
    
    .accordion-header {
        padding: 20px 15px;
    }
    
    .accordion-header h4 {
        font-size: 1.1rem;
    }
    
    .price-info,
    .price-table {
        padding: 15px;
    }
    
    .time-periods {
        grid-template-columns: 1fr;
    }
    
    .period-label {
        padding: 20px 15px;
    }
    
    .period-time {
        font-size: 1rem;
    }
    
    .period-price {
        font-size: 0.9rem;
    }
    
    .total-title {
        font-size: 1.1rem;
    }
    
    .total-line.main-total {
        font-size: 1.3rem;
    }
    
    #final-total {
        font-size: 1.5rem;
    }
    
    .category-header,
    .period-surcharge-header {
        font-size: 0.85rem;
    }
    
    .minimum-notice {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .calculator-total {
        padding: 25px 20px;
    }
}

/* Стили для печати чисел */
.quantity-display,
.field-total,
#final-total {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Анимация изменения полей */
@keyframes fieldPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 152, 70, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 152, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 152, 70, 0); }
}

.calculator-field.changed {
    animation: fieldPulse 0.6s ease;
}

.logo-pdf {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

.logo-aiti-pdf {
    color: #009846 !important;
}

.logo-tiket-pdf {
    color: #E31E24 !important;
}