/* ===== ТАРИФЫ С КАРУСЕЛЬЮ ===== */
.tariffs-section {
    margin: 80px 0;
    background: #a43ccf;
    border-radius: 60px;
    padding: 70px 40px;
    position: relative;
}

.tariffs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* Заголовок с кнопками управления */
.tariffs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.tariffs-section h2 {
    font-size: 56px;
    font-weight: 500;
    color: white;
    margin: 0;
    padding: 0;
}

/* ===== ИСПРАВЛЕНИЕ #3: СТРЕЛКИ В ПРАВОМ ВЕРХНЕМ УГЛУ ===== */
/* Кнопки управления каруселью - в правом верхнем углу */
.tariffs-carousel-controls {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 20 !important;
}

.tariffs-carousel-controls .carousel-arrow {
    position: relative !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: #a43ccf;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.tariffs-carousel-controls .carousel-arrow.tariffs-prev {
    left: auto !important;
}

.tariffs-carousel-controls .carousel-arrow.tariffs-next {
    right: auto !important;
}

.tariffs-carousel-controls .carousel-arrow:hover:not(:disabled) {
    background: #a43ccf;
    color: white;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(164, 60, 207, 0.3);
}

.tariffs-carousel-controls .carousel-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.tariffs-carousel-controls .carousel-arrow:disabled:hover {
    background: white;
    color: #a43ccf;
}

.tariffs-carousel-wrapper {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.tariffs-carousel-container {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.tariffs-carousel {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.tariff-card {
    flex: 0 0 calc(50% - 30px);
    min-width: 280px;
    background: white;
    border-radius: 30px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tariff-card:hover {
    transform: translateY(-8px);
}

.tariff-card.recommended {
    border: 2px solid #a43ccf;
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: 10px;
    left: 80%;
    transform: translateX(-50%);
    background: #a43ccf;
    color: white;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 2;
}

.tariff-card h3 {
    font-size: 28px;
    font-weight: 600;
    color: #a43ccf;
    margin: 0 0 10px 0;
    text-align: center;
}

.tariff-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 0 0 0;
    flex-wrap: wrap;
}

.tariff-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tariff-info-item i {
    font-size: 20px;
    color: #666;
}

.tariff-price {
    font-size: 24px;
    font-weight: bold;
    color: #433f45;
}

.tariff-speed {
    font-size: 18px;
    font-weight: 500;
    color: #433f45;
}

.tariff-divider {
    width: 1px;
    height: 30px;
    background: #e0e0e0;
}

.tariff-period-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0;
    margin: 0 20px;
    flex-wrap: wrap;
}

.period-wrapper {
    flex: 1;
    text-align: center;
}

.unlimited-wrapper {
    flex: 1;
    text-align: center;
}

.period {
    font-size: 14px;
    color: #666;
}

.unlimited {
    font-size: 14px;
    font-weight: 500;
    color: #a43ccf;
}

.iconTariffs {
    text-align: center;
    margin-bottom: 10px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iconTariffs img {
    max-width: 60px;
    height: auto;
}

.tariff-features {
    margin: 20px 0;
    text-align: center;
    flex: 1;
}

.tariff-features h4 {
    font-size: 16px;
    font-weight: 600;
    color: #433f45;
    margin-bottom: 12px;
    text-align: center;
}

.tariff-features ul {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    text-align: left;
    max-width: 280px;
    display: inline-block;
    width: 100%;
}

.tariff-features li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    text-align: left;
}

.tariff-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #a43ccf;
    font-weight: bold;
}

.tariff-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 20px;
    flex-wrap: wrap;
}

.btn-small {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-connect {
    background: #a43ccf;
    color: white;
    border: 2px solid #a43ccf;
}

.btn-connect:hover {
    background: #8a2eb8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(164, 60, 207, 0.3);
}

.btn-outline {
    background: transparent;
    color: #a43ccf;
    border: 2px solid #a43ccf;
}

.btn-outline:hover {
    background: rgba(164, 60, 207, 0.1);
    transform: translateY(-2px);
}

.tariff-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: left;
}

/* Адаптив */
@media (max-width: 992px) {
    .tariffs-section {
        border-radius: 40px;
        padding: 40px 20px;
    }
    .tariffs-section h2 {
        font-size: 42px;
    }
    .tariffs-container {
        padding: 0 20px;
    }
    .tariff-card {
        flex: 0 0 calc(50% - 28px);
    }
    .tariffs-carousel-controls {
        position: relative !important;
        justify-content: flex-end !important;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 768px) {
    .tariffs-section {
        border-radius: 30px;
        padding: 30px 15px;
        margin: 60px 0;
    }
    .tariffs-section h2 {
        font-size: 32px;
    }
    .tariffs-container {
        padding: 0 15px;
    }
    .tariffs-header {
        flex-wrap: wrap;
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    .tariffs-carousel-controls .carousel-arrow {
        display: flex !important;
    }
    .tariff-card {
        padding: 20px;
        flex: 0 0 calc(100% - 20px);
    }
    .tariff-card h3 {
        font-size: 24px;
    }
    .tariff-price {
        font-size: 20px;
    }
    .tariff-speed {
        font-size: 16px;
    }
    .tariff-buttons {
        flex-direction: column;
        margin-top: 20px;
    }
    .btn-small {
        padding: 12px;
    }
    .tariff-period-row {
        margin: 0 10px;
        padding: 12px 0;
    }
    .period, .unlimited {
        font-size: 12px;
    }
}