/* ========================================
   TARIFS PAGE
   ======================================== */

/* Hero Section */
.pricing-hero {
    padding: 140px 0 80px;
    background: var(--background);
    text-align: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 24px;
    line-height: 1.4;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: var(--background-secondary);
}

.pricing-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 60px;
    overflow: hidden;
}

.pricing-grid {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0 20px 0 0;
}

.pricing-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 400px;
    width: 400px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.pricing-card:first-child {
    margin-left: max(calc((100vw - 1264px) / 2), 20px);
}


.pricing-card.featured {
    background: linear-gradient(145deg, #f8f8f8, #ffffff);
    border: 2px solid var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--background-secondary);
}

.plan-name {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 0;
}

.card-features {
    flex: 1;
    margin-bottom: 40px;
}

.features-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.check-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.card-footer {
    text-align: center;
}

.total-price {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Billing Info */
.billing-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.billing-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.billing-card.highlight {
    background: linear-gradient(145deg, #fff9f0, #ffffff);
    border: 2px solid var(--primary-color);
}

.billing-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.billing-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.billing-content p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* Comparison Calculator Section */
.comparison-section {
    padding: 120px 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 21px;
    line-height: 1.4;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.calculator-form {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid var(--background-secondary);
    border-radius: 12px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-suffix {
    position: absolute;
    right: 20px;
    font-size: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

.input-hint {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.module-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-option {
    background: var(--background-secondary);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
}

.module-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.module-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.module-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.module-option input[type="checkbox"]:disabled + label {
    cursor: not-allowed;
}

.module-name {
    font-size: 16px;
    color: var(--text-primary);
}

.module-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.calculate-btn {
    width: 100%;
    margin-top: 8px;
    border: none;
    outline: none;
}

/* Calculator Results */
.calculator-results {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 100px;
}

.result-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.result-placeholder h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.result-placeholder p {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.result-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 32px 0;
    text-align: center;
}

.comparison-breakdown {
    background: var(--background-secondary);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
}

.breakdown-row:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.breakdown-row.businessme {
    font-weight: 600;
    color: var(--primary-color);
}

.breakdown-row.discount {
    color: #34c759;
    font-size: 15px;
}

.breakdown-label {
    color: var(--text-secondary);
}

.breakdown-row.businessme .breakdown-label {
    color: var(--primary-color);
}

.breakdown-value {
    font-weight: 600;
    color: var(--text-primary);
}

.result-summary {
    background: linear-gradient(145deg, #f0f9ff, #ffffff);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
}

.result-summary.negative {
    background: linear-gradient(145deg, #fff5f5, #ffffff);
    border-color: #ff3b30;
}

.savings-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.result-summary.negative .savings-amount {
    color: #ff3b30;
}

.savings-label {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 500;
}

.result-note {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background: var(--background-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.faq-item {
    background: white;
    border-radius: 16px;
    padding: 32px;
}

.faq-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.faq-item p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-grid {
        padding: 0 20px 0 20px;
        scroll-padding-left: 20px;
        scroll-padding-right: 20px;
    }

    .pricing-card {
        flex: 0 0 calc(100vw - 80px);
        width: calc(100vw - 80px);
    }

    .pricing-card:first-child {
        margin-left: 0;
    }

    .billing-info,
    .calculator-container,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .calculator-results {
        position: static;
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 18px;
    }

    .pricing-section,
    .comparison-section,
    .faq-section {
        padding: 80px 0;
    }

    .pricing-card,
    .calculator-form,
    .calculator-results {
        padding: 32px 24px;
    }

    .price-amount {
        font-size: 42px;
    }

    .plan-name {
        font-size: 24px;
    }

    .billing-card {
        padding: 24px;
    }

    .faq-item {
        padding: 24px;
    }

    .faq-item h4 {
        font-size: 18px;
    }
}
